Spec Files

Query spec file metrics and statistics.

Get aggregated metrics for spec files within a project, including execution counts, failure rates, flakiness rates, and duration statistics.

Get spec files

get
/spec-files/{projectId}

Get spec file metrics and statistics for a project within a date range

Authorizations
AuthorizationstringRequired

API key authentication using Bearer token

Path parameters
projectIdstringRequired

The project ID

Example: proj_abc123
Query parameters
date_startstring · date-timeRequired

Start date in ISO 8601 format

Example: 2024-01-01T00:00:00.000Z
date_endstring · date-timeRequired

End date in ISO 8601 format

Example: 2024-01-31T23:59:59.999Z
pageintegerOptional

Page number (0-indexed)

Default: 0
limitinteger · min: 1 · max: 50Optional

Maximum number of items to return (default: 50, max: 50)

Default: 50
tagsstring[]Optional

Filter by tags (can be specified multiple times)

branchesstring[]Optional

Filter by branches (can be specified multiple times)

groupsstring[]Optional

Filter by groups (can be specified multiple times)

authorsstring[]Optional

Filter by git authors (can be specified multiple times)

orderstring · enumOptional

Field to order results by

Default: avgDurationPossible values:
dirstring · enumOptional

Sort direction

Default: descPossible values:
specNameFilterstringOptional

Filter spec files by name (partial match)

includeFailedInDurationbooleanOptional

Include failed executions in duration calculation

Default: false
Responses
200

Successful response

application/json
get
/spec-files/{projectId}

Last updated

Was this helpful?