Projects
Manage and query projects in your organization.
Projects are the top-level containers for test runs, specs, and test results. Each project has a unique project ID and can be configured with various settings.
Get all projects for your organization with optional pagination
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.
Maximum number of items to return (default: 10, max: 50)
10Cursor for pagination. Returns items after this cursor value.
Cursor for pagination. Returns items before this cursor value.
Successful response
Whether there are more items to fetch
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.
GET /v1/projects HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "OK",
"has_more": true,
"data": [
{
"projectId": "text",
"name": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"failFast": true,
"inactivityTimeoutSeconds": 1,
"defaultBranchName": "text",
"cursor": "text"
}
]
}Get a single project by ID
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 project ID
proj_abc123Successful 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
GET /v1/projects/{projectId} HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "OK",
"data": {
"projectId": "text",
"name": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"failFast": true,
"inactivityTimeoutSeconds": 1,
"defaultBranchName": "text"
}
}Get all runs for a project with optional pagination and filtering. Supports filtering by branch, tags, environment, status, completion state, date range, search text, author, and pull request id (pr_id maps to meta.pr.id).
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 project ID
proj_abc123Maximum number of items to return (default: 10, max: 50)
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 environment (can be specified multiple times using bracket notation, e.g., environments[]=staging&environments[]=production)
["staging","production"]Branch filter value: an exact branch name, or a trailing * for prefix match (e.g. release/*). Max 250 characters.
mainExact branch name (must not contain * or spaces).
^[!-)+-~]+$Prefix match: branch prefix followed by *.
^[!-)+-~]+\*$Deprecated. Use tags[] instead. Filter runs by tags (can be specified multiple times). Use tag_operator to control matching behavior.
["workflow-master","nightly"]Logical operator for tag filtering. AND requires all tags to be present (default), OR requires any tag to be present.
ANDExample: ANDPossible values: Case-insensitive substring search over a run's CI build id, commit message, branch, sha, author name and email, pull request id/title/source/destination, tags, environments, framework and browser. The raw value must be printable ASCII only (no control characters). Leading and trailing whitespace is trimmed before length checks; whitespace-only values are rejected. After trimming, the value must be 1–200 characters.
fix login bugPattern: ^[ -~]+$Filter runs by normalized pull request id (stored as meta.pr.id). Printable ASCII only, max 128 characters.
42Pattern: ^[!-~]+$Deprecated. Use authors[] instead. Filter runs by git commit author name (can be specified multiple times).
["John Doe"]Filter runs created on or after this ISO 8601 date-time. A date without a time (2024-01-01) means midnight UTC of that day.
2024-01-01T00:00:00ZFilter runs created before this ISO 8601 date-time. A date without a time (2024-12-31) means midnight UTC of that day, so the range ends before that day.
2024-12-31T23:59:59ZSuccessful response
Whether there are more items to fetch
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
GET /v1/projects/{projectId}/runs HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "OK",
"has_more": true,
"data": [
{
"runId": "text",
"projectId": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"durationMs": 1,
"tags": [
"text"
],
"environments": [
"text"
],
"previousRunId": "text",
"isSession": true,
"cursor": "text",
"timeout": {
"isTimeout": true,
"timeoutValueMs": 1
},
"cancellation": {},
"groups": [
{
"groupId": "text",
"platform": {
"osName": "text",
"osVersion": "text",
"browserName": "text",
"browserVersion": "text"
},
"tags": [
"text"
],
"environment": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"coverageEnabled": true,
"durationMs": 1,
"specCount": 1,
"instances": {
"overall": 1,
"claimed": 1,
"complete": 1,
"passes": 1,
"failures": 1
},
"tests": {
"total": 1,
"recorded": 1,
"passes": 1,
"failures": 1,
"pending": 1,
"retries": 1,
"skipped": 1,
"flaky": 1
}
}
],
"meta": {
"ciBuildId": "text",
"pr": {
"id": "text",
"link": "text",
"title": "text",
"source": "text",
"destination": "text"
},
"commit": {
"sha": "text",
"branch": "text",
"authorName": "text",
"authorEmail": "text",
"message": "text",
"remoteOrigin": "text"
},
"framework": {
"name": "text",
"version": "text"
}
},
"completionState": "COMPLETE",
"status": "PASSED"
}
]
}Lists pull requests for this project together with summarized run activity. Each result includes rollup stats for the PR, its most recent run, and an optional preview of additional runs (runs_per_pr: 0 to 10, default 1). Each result also has recentRuns: up to 10 of its latest runs, newest first, whatever runs_per_pr is, each with its id, creation time, status, completion state, duration, commit and number of failed tests. Optional filters choose which runs count: branches[], tags[], authors[], environments[], pr_id, a date_start/date_end range on run creation time (no range by default), or search (case-insensitive substring match on ciBuildId or commit message); pull requests with no runs matching the applied filters are omitted. status, completion_state and pr_search (title, number or source branch) are checked on each pull request's latest run among the runs that match the other filters. For each remaining pull request, the status shown corresponds to its latest run that matches your filters. Branch values may end with * for a prefix match. Results are sorted by order (last_run, first_run or run_count; default last_run) in the direction set by dir (default desc). Pagination uses opaque tokens: advance with starting_after, go back with ending_before; use the returned cursor from each item as the token and keep the same filters, order and dir across pages. A cursor returned for another order or dir is rejected with 400. Sending both cursor parameters at once is not supported. Because new runs can arrive while you page, a pull request can occasionally move between pages or appear twice in sequence—repeat the same filters on every request so results stay consistent.
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 project ID
proj_abc123Maximum number of items to return (default: 10, max: 50)
10Cursor for pagination. Returns items after this cursor value.
Cursor for pagination. Returns items before this cursor value.
How many most recent runs to include in each card’s timelinePreview (does not cap total stats). 0 returns an empty timelinePreview.
1Filter by tags (can be specified multiple times using bracket notation, e.g., tags[]=value1&tags[]=value2)
["tag1","tag2"]Logical operator for tag filtering. AND requires all tags to be present (default), OR requires any tag to be present.
ANDExample: ANDPossible values: Case-insensitive substring search over a run's CI build id and commit message. Narrower than the run feed's search: pull request title and source branch are matched by pr_search on this endpoint. The raw value must be printable ASCII only (no control characters). Leading and trailing whitespace is trimmed before length checks; whitespace-only values are rejected. After trimming, the value must be 1–200 characters.
fix login bugPattern: ^[ -~]+$Find pull requests by title, number or source branch. Checked on each pull request's latest run among the runs that match the run filters (dates, branches, tags, authors, environments, pr_id, search), so a renamed pull request is found by its latest title. Matches when that run's pull request title or source branch contains the text (case-insensitive), or when the text is a pull request number (123 or #123) equal to the number in the pull request id. When more than one of status, completion_state and pr_search is sent, that one run must match all of them. Unlike search, the value may have any characters except control characters. Leading and trailing whitespace is trimmed before length checks; whitespace-only values are rejected. After trimming, the value must be 1–200 characters.
#3665Pattern: ^[^\x00-\x1F\x7F-\x9F]+$Filter by environment (can be specified multiple times using bracket notation, e.g., environments[]=staging&environments[]=production)
["staging","production"]Filter runs by normalized pull request id (stored as meta.pr.id). Printable ASCII only, max 128 characters.
42Pattern: ^[!-~]+$Filter runs created on or after this ISO 8601 date-time. A date without a time (2024-01-01) means midnight UTC of that day.
2024-01-01T00:00:00ZFilter runs created before this ISO 8601 date-time. A date without a time (2024-12-31) means midnight UTC of that day, so the range ends before that day.
2024-12-31T23:59:59ZSort pull requests by last_run (creation time of the latest run), first_run (creation time of the oldest run) or run_count (number of runs), in the direction set by dir. Only runs that match the run filters (dates, branches, tags, authors, environments, pr_id, search) count, so with date_start the first run is the oldest run in the range. Pull requests with the same value are sorted by pull request id, in the same direction.
last_runPossible values: Sort direction: desc (default) or asc.
descPossible values: Successful response
Whether more PR rows exist after this page
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
The runs of every pull request on the page changed while the page loaded. Retry the request after the number of seconds in Retry-After.
GET /v1/projects/{projectId}/pull-requests HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "OK",
"has_more": true,
"data": [
{
"pr": {
"id": "text",
"prNumber": "text",
"link": "text",
"title": "text",
"source": "text",
"destination": "text",
"repository": "text"
},
"stats": {
"total": 1,
"passed": 1,
"failed": 1,
"running": 1,
"failing": 1,
"canceled": 1,
"timedOut": 1
},
"latestRun": {
"runId": "text",
"projectId": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"durationMs": 1,
"tags": [
"text"
],
"environments": [
"text"
],
"previousRunId": "text",
"isSession": true,
"cursor": "text",
"timeout": {
"isTimeout": true,
"timeoutValueMs": 1
},
"cancellation": {},
"groups": [
{
"groupId": "text",
"platform": {
"osName": "text",
"osVersion": "text",
"browserName": "text",
"browserVersion": "text"
},
"tags": [
"text"
],
"environment": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"coverageEnabled": true,
"durationMs": 1,
"specCount": 1,
"instances": {
"overall": 1,
"claimed": 1,
"complete": 1,
"passes": 1,
"failures": 1
},
"tests": {
"total": 1,
"recorded": 1,
"passes": 1,
"failures": 1,
"pending": 1,
"retries": 1,
"skipped": 1,
"flaky": 1
}
}
],
"meta": {
"ciBuildId": "text",
"pr": {
"id": "text",
"link": "text",
"title": "text",
"source": "text",
"destination": "text"
},
"commit": {
"sha": "text",
"branch": "text",
"authorName": "text",
"authorEmail": "text",
"message": "text",
"remoteOrigin": "text"
},
"framework": {
"name": "text",
"version": "text"
}
},
"completionState": "COMPLETE",
"status": "PASSED"
},
"timelinePreview": [
{
"runId": "text",
"projectId": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"durationMs": 1,
"tags": [
"text"
],
"environments": [
"text"
],
"previousRunId": "text",
"isSession": true,
"cursor": "text",
"timeout": {
"isTimeout": true,
"timeoutValueMs": 1
},
"cancellation": {},
"groups": [
{
"groupId": "text",
"platform": {
"osName": "text",
"osVersion": "text",
"browserName": "text",
"browserVersion": "text"
},
"tags": [
"text"
],
"environment": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"coverageEnabled": true,
"durationMs": 1,
"specCount": 1,
"instances": {
"overall": 1,
"claimed": 1,
"complete": 1,
"passes": 1,
"failures": 1
},
"tests": {
"total": 1,
"recorded": 1,
"passes": 1,
"failures": 1,
"pending": 1,
"retries": 1,
"skipped": 1,
"flaky": 1
}
}
],
"meta": {
"ciBuildId": "text",
"pr": {
"id": "text",
"link": "text",
"title": "text",
"source": "text",
"destination": "text"
},
"commit": {
"sha": "text",
"branch": "text",
"authorName": "text",
"authorEmail": "text",
"message": "text",
"remoteOrigin": "text"
},
"framework": {
"name": "text",
"version": "text"
}
},
"completionState": "COMPLETE",
"status": "PASSED"
}
],
"recentRuns": [
{
"runId": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"status": "PASSED",
"completionState": "COMPLETE",
"durationMs": 1,
"commit": {
"sha": "text",
"message": "text",
"authorName": "text"
},
"failures": 1
}
],
"hasMoreRuns": true,
"cursor": "text",
"stackedOn": {
"id": "text",
"prNumber": "text",
"title": "text"
}
}
]
}Get aggregated run and test metrics for a project within a date range
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 project ID
proj_abc123Start date in ISO 8601 format
2024-01-01T00:00:00.000ZEnd date in ISO 8601 format
2024-01-31T23:59:59.999ZTime resolution for histogram data
1dPossible values: Filter by tags (can be specified multiple times using bracket notation, e.g., tags[]=value1&tags[]=value2)
["tag1","tag2"]Filter by groups (can be specified multiple times using bracket notation, e.g., groups[]=group1&groups[]=group2)
["group1","group2"]Filter by git authors (can be specified multiple times using bracket notation, e.g., authors[]=author1&authors[]=author2)
["author1","author2"]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
GET /v1/projects/{projectId}/insights?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",
"data": {
"projectId": "text",
"orgId": "text",
"dateStart": "2026-01-01T00:00:00.000Z",
"dateEnd": "2026-01-01T00:00:00.000Z",
"resolution": "text",
"results": {
"overall": {
"runs": {
"total": 1,
"cancelled": 1,
"timeouts": 1,
"completed": 1,
"failed": 1,
"passed": 1,
"nonFullyReported": 1,
"avgDurationSeconds": 1,
"avgSuccessRate": 1
},
"tests": {
"total": 1,
"failed": 1,
"passed": 1,
"pending": 1,
"skipped": 1,
"flaky": 1
}
},
"timeline": [
{
"ANY_ADDITIONAL_PROPERTY": {
"runs": {
"total": 1,
"cancelled": 1,
"timeouts": 1,
"completed": 1,
"failed": 1,
"passed": 1,
"nonFullyReported": 1,
"avgDurationSeconds": 1,
"avgSuccessRate": 1
},
"tests": {
"total": 1,
"failed": 1,
"passed": 1,
"pending": 1,
"skipped": 1,
"flaky": 1
}
}
}
]
},
"metrics": {
"tests": {
"current": {
"executions": 1,
"overallExecutions": 1,
"avgMs": 1,
"p50Ms": 1,
"p90Ms": 1,
"p95Ms": 1,
"passRate": 1,
"failureRate": 1,
"flakinessRate": 1,
"suiteSize": 1,
"testsPerExecution": 1
},
"previous": {
"executions": 1,
"overallExecutions": 1,
"avgMs": 1,
"p50Ms": 1,
"p90Ms": 1,
"p95Ms": 1,
"passRate": 1,
"failureRate": 1,
"flakinessRate": 1,
"suiteSize": 1,
"testsPerExecution": 1
},
"minMs": 1,
"maxMs": 1,
"distribution": [
{
"minMs": 1,
"maxMs": 1,
"executions": 1
}
]
},
"specs": {
"current": {
"executions": 1,
"overallExecutions": 1,
"avgMs": 1,
"p50Ms": 1,
"p90Ms": 1,
"p95Ms": 1,
"passRate": 1,
"failureRate": 1,
"flakinessRate": 1,
"suiteSize": 1,
"testsPerExecution": 1
},
"previous": {
"executions": 1,
"overallExecutions": 1,
"avgMs": 1,
"p50Ms": 1,
"p90Ms": 1,
"p95Ms": 1,
"passRate": 1,
"failureRate": 1,
"flakinessRate": 1,
"suiteSize": 1,
"testsPerExecution": 1
},
"minMs": 1,
"maxMs": 1,
"distribution": [
{
"minMs": 1,
"maxMs": 1,
"executions": 1
}
]
}
}
}
}Returns cursor-paginated terms for one kind (tag, branch, authorName, etc.). Rows are ordered by each term's last update time; use dir as asc or desc (default desc, most recently updated first). Page with starting_after or ending_before using the opaque cursor value from a returned item; do not send both cursors in one request. Reuse the same dir, limit, search filter, and path when requesting additional pages.
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 project ID
proj_abc123Term kind to list
Maximum number of terms to return (default: 100, max: 100)
100Sort direction: desc (default) or asc.
descPossible values: Cursor for pagination. Returns items after this cursor value.
Cursor for pagination. Returns items before this cursor value.
Optional case-insensitive prefix filter on term values (up to 128 characters)
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
GET /v1/projects/{projectId}/terms/{termType} HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "OK",
"has_more": true,
"data": [
{
"id": "text",
"name": "text",
"count": 1,
"updated_at": "2026-01-01T00:00:00.000Z",
"cursor": "text"
}
]
}Permanently removes a term from the project filter list. Only terms of type tag can be deleted; other term types return 404. This does not remove the term from historical runs; it only deletes the term metadata document. Requires a write-scoped API key.
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 project ID
proj_abc123Term kind to list
Unique identifier of the term to delete. Only terms of type tag can be deleted.
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
DELETE /v1/projects/{projectId}/terms/{termType}/{termId} HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "OK",
"data": {
"id": "text",
"name": "text",
"count": 1,
"updated_at": "2026-01-01T00:00:00.000Z",
"cursor": "text"
}
}Last updated
Was this helpful?