Test Results
Query historical test execution results.
Test results provide detailed information about individual test executions across multiple runs. You can filter by date range, branch, tags, git author, and outcome (status[] values use the RecordedTestOutcome schema).
Get historical test execution results for a specific test signature
An organization API key, sent as Authorization: Bearer <key>. A key carries one scope for the whole API: a read key reaches the GET endpoints, a write key reaches all of them. A crnts_pat_ personal access token is accepted as a Bearer while its owner remains an eligible administrator in its active organization. Each operation requires the corresponding scope stored on that token.
The test signature
abc123def456Start date in ISO 8601 format
2024-01-01T00:00:00.000ZEnd date in ISO 8601 format
2024-01-31T23:59:59.999ZMaximum number of items to return (default: 10, max: 100)
10Cursor for pagination. Returns items after this cursor value.
Cursor for pagination. Returns items before this cursor value.
Filter by tags (can be specified multiple times using bracket notation, e.g., tags[]=value1&tags[]=value2)
["tag1","tag2"]Filter by git authors (can be specified multiple times using bracket notation, e.g., authors[]=author1&authors[]=author2)
["author1","author2"]Filter by groups (can be specified multiple times using bracket notation, e.g., groups[]=group1&groups[]=group2)
["group1","group2"]Filter by environment (can be specified multiple times using bracket notation, e.g., environments[]=staging&environments[]=production)
["staging","production"]Deprecated. Use tags[] instead. Filter by run tags (can be specified multiple times using bracket notation, e.g., tag[]=tag1&tag[]=tag2)
["tag1","tag2"]Filter by flaky status. When true, returns only flaky tests. When false, returns only non-flaky tests. When omitted, returns all tests regardless of flaky status. Can be combined with status filter using AND logic (e.g., status[]=passed&flaky=true returns only flaky passed tests).
Filter by test annotations. The parameter value must be a JSON-stringified array of objects: [{ "type": "string", "description": "string" | ["string"] or null }]. description is optional; omit or set to null to match any value for that annotation.
[{"type":"owner","description":["John Doe"]},{"type":"skip"}]Successful response
Invalid request parameters
Authentication failed
The credential authenticated but is not permitted to use this endpoint. Five refusals share the status: a read API key on an endpoint that writes, an OAuth token that was not granted the scope the endpoint needs (insufficient_scope), an OAuth token that was granted it but whose holder no longer has a role permitting it (insufficient_role), an OAuth token on an endpoint that accepts an API key and nothing else (api_key_required), and an API key on an endpoint that answers for a user (user_credential_required). Discriminate on code rather than on the message, which is free-form. The first refusal predates the codes and sets none. Only insufficient_scope carries the challenge header, because it is the only one a client can act on by re-authorizing.
Resource not found
Payload Too Large - Response size exceeds limits. Use Accept-Encoding: gzip header.
GET /v1/test-results/{signature}?date_start=2026-01-01T00%3A00%3A00.000Z&date_end=2026-01-01T00%3A00%3A00.000Z HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "OK",
"has_more": true,
"data": [
{
"cursor": "text",
"signature": "text",
"framework": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"projectId": "text",
"groupId": "text",
"runId": "text",
"instanceId": "text",
"spec": "text",
"machineId": "text",
"tags": [
"text"
],
"title": [
"text"
],
"testId": "text",
"displayError": "text",
"commit": {
"branch": "text",
"authorEmail": "text",
"authorName": "text",
"sha": "text",
"message": "text"
},
"duration": 1,
"flaky": true,
"expectedStatus": "text",
"status": "passed",
"attempts": [
{
"attemptId": "text",
"state": "text",
"error": {
"message": "text",
"stack": "text",
"location": {}
},
"startedAt": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"annotations": [
{
"type": "text",
"description": "text"
}
]
}
]
}Last updated
Was this helpful?