> For the complete documentation index, see [llms.txt](https://docs.currents.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.currents.dev/api/resources/tests.md).

# Tests

## List Jira and Linear tickets linked to tests

> Returns the Jira and Linear tickets linked to each test, the same tickets the dashboard shows on a test. Name the tests either by \`signatures\`, or by \`runId\` with the \`testIds\` of that run. Tickets are linked to the test signature, so a ticket linked from an earlier run is returned for the same test in every later run. A test with no linked tickets is returned with an empty \`tickets\` array. Results are paged over the tests named in the body: send the same body with the next \`page\` until \`nextPage\` is false. With \`includeDetails\` (default true), each ticket also carries its current title, status and assignee, read from Jira or Linear the same way the dashboard reads them; a ticket whose details cannot be read is still returned, with \`details: null\` and the reason in \`detailsError\`. Send \`includeDetails: false\` to skip those calls when you only need to know whether a test has a ticket. The request is a POST because a page of signatures does not fit in a query string; it does not change test data. On 404, the \`error\` field says whether the project, the run, or which test IDs were not found.

```json
{"openapi":"3.0.2","info":{"title":"Currents REST API","version":"1.0.0"},"tags":[],"servers":[{"url":"https://api.currents.dev/v1","description":"Production API"},{"url":"https://api-staging.currents.dev/v1","description":"Staging API"},{"url":"http://localhost:4000/v1","description":"Local development"}],"security":[{"BearerAuth":[]},{"OAuth2":["results:read"]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"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."},"OAuth2":{"type":"oauth2","description":"An access token from the Currents authorization server, for an application acting as a user in one organization. Unlike an API key it is confined per endpoint: the operation lists the scope it needs, and a token that was not granted that scope gets 403.\n\n**The endpoints below are production's.** They are written out so this specification can be exercised against production, and they are wrong for every other deployment — a token minted by `id.currents.dev` is refused by a staging or on-premise API, whose `OAUTH_ISSUER` and `OAUTH_API_AUDIENCE` are its own. Against anything but production, and in a client generated from this document, discover them instead: `GET {api origin}/.well-known/oauth-protected-resource`, then the `authorization_servers[0]` document.\n\n**The audience named here is the REST API's.** `POST /mcp` is a second resource server on the same origin, identified by `{api origin}/mcp` and described by its own document at `/.well-known/oauth-protected-resource/mcp`. Every operation below refuses a token minted for it, and it refuses every token minted for these, so a client of this specification wants the audience above and not that one.","flows":{"authorizationCode":{"authorizationUrl":"https://id.currents.dev/api/auth/oauth2/authorize","tokenUrl":"https://id.currents.dev/api/auth/oauth2/token","refreshUrl":"https://id.currents.dev/api/auth/oauth2/token","scopes":{"projects:read":"See which projects exist and their names","projects:write":"Change project configuration, including a project's tags","results:read":"See runs, specs and failure detail — errors, stacks and artifacts","analytics:read":"See aggregate metrics: flake and failure rates, error counts, durations and trends","actions:read":"See quarantine and skip rules, and the tests they affect","actions:write":"Create, edit, enable, disable and archive quarantine and skip rules","issues:write":"Create and link issues in a connected issue tracker, and list its projects and issue types","runs:write":"Cancel and reset runs, and permanently delete runs and their artifacts","webhooks:read":"See webhook configuration, including destination URLs and headers","webhooks:write":"Create, edit and delete webhooks","shares:write":"Create public links to test results that anyone with the link can open until they expire"}}}}},"parameters":{"ProjectIdPath":{"name":"projectId","in":"path","required":true,"description":"The project ID","schema":{"type":"string"}}},"schemas":{"TestIssuesRequest":{"type":"object","description":"Send `signatures`, or `runId` with `testIds`; not both. At most 500 values per request.","properties":{"signatures":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"description":"Test signatures to look up."},"runId":{"type":"string","description":"Run the `testIds` belong to."},"testIds":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"description":"Test IDs within `runId`. Every ID must belong to the run, otherwise the request fails with 404 and lists the IDs that were not found."},"includeDetails":{"type":"boolean","default":true,"description":"Read each ticket's current title, status and assignee from Jira or Linear."},"page":{"type":"integer","minimum":0,"default":0,"description":"Page index, 0-based."},"limit":{"type":"integer","minimum":1,"maximum":50,"default":25,"description":"Tests per page."}}},"TestIssuesResponse":{"type":"object","required":["status","data"],"properties":{"status":{"type":"string","enum":["OK"]},"data":{"type":"object","required":["list","count","total","nextPage"],"properties":{"list":{"type":"array","items":{"$ref":"#/components/schemas/TestIssuesItem"}},"count":{"type":"integer","description":"Tests in this page."},"total":{"type":"integer","description":"Distinct tests named in the request, across all pages."},"nextPage":{"oneOf":[{"type":"integer"},{"type":"boolean","enum":[false]}],"description":"Next page index, or false on the last page."}}}}},"TestIssuesItem":{"type":"object","required":["signature","testId","tickets"],"properties":{"signature":{"type":"string","description":"Test signature."},"testId":{"type":"string","nullable":true,"description":"Test ID within the run, when the request named tests by `runId` and `testIds`."},"tickets":{"type":"array","description":"Linked tickets, newest link first.","items":{"$ref":"#/components/schemas/TestIssueTicket"}}}},"TestIssueTicket":{"type":"object","required":["type","key","url","addedAt","details","detailsError"],"properties":{"type":{"type":"string","enum":["jira","linear"]},"key":{"type":"string","description":"Jira issue key (e.g. PROJ-123) or Linear identifier (e.g. ENG-42). When details were read, the current key, which differs from the linked one if the issue moved."},"url":{"type":"string","nullable":true,"description":"Link to the ticket. For Linear, only set when details were read."},"addedAt":{"type":"string","format":"date-time","description":"When the ticket was linked to the test."},"details":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/TestIssueTicketDetails"}],"description":"Current state of the ticket in Jira or Linear. Null when `includeDetails` is false or the details could not be read."},"detailsError":{"type":"string","nullable":true,"description":"Why `details` is null although details were requested, e.g. the issue was deleted or the integration is no longer connected."}}},"TestIssueTicketDetails":{"type":"object","required":["title","status","assignee","updatedAt"],"properties":{"title":{"type":"string"},"status":{"type":"string","description":"Status name as shown in Jira or Linear."},"assignee":{"type":"string","nullable":true,"description":"Display name of the assignee."},"updatedAt":{"type":"string","nullable":true,"description":"When the ticket was last updated in Jira or Linear."}}},"ErrorResponse":{"type":"object","required":["status","error"],"properties":{"status":{"type":"string","enum":["FAILED"]},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Stable machine-readable discriminator, present on refusals a client is expected to branch on (for example `AI_CONSENT_REQUIRED`). The `error` text is free-form; branch on `code`."},"candidates":{"type":"array","description":"With `code: ambiguous_target`: the runs, spec files or tests the request matched. Send one of their IDs.","items":{"type":"object","properties":{"runId":{"type":"string"},"ciBuildId":{"type":"string"},"instanceId":{"type":"string"},"groupId":{"type":"string"},"spec":{"type":"string"},"machineId":{"type":"string","nullable":true},"testId":{"type":"string"},"title":{"type":"array","items":{"type":"string"}}}}}}}},"responses":{"BadRequest":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"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.","headers":{"WWW-Authenticate":{"description":"Present on the `insufficient_scope` refusal only, naming the scope to re-authorize for (RFC 6750 3.1): `Bearer error=\"insufficient_scope\", scope=\"webhooks:read\"`. Absent on `insufficient_role`, where the scope is already granted, and on `api_key_required` and `user_credential_required`, where no scope would help.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"TooManyRequests":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"InternalServerError":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/projects/{projectId}/test-issues":{"post":{"summary":"List Jira and Linear tickets linked to tests","description":"Returns the Jira and Linear tickets linked to each test, the same tickets the dashboard shows on a test. Name the tests either by `signatures`, or by `runId` with the `testIds` of that run. Tickets are linked to the test signature, so a ticket linked from an earlier run is returned for the same test in every later run. A test with no linked tickets is returned with an empty `tickets` array. Results are paged over the tests named in the body: send the same body with the next `page` until `nextPage` is false. With `includeDetails` (default true), each ticket also carries its current title, status and assignee, read from Jira or Linear the same way the dashboard reads them; a ticket whose details cannot be read is still returned, with `details: null` and the reason in `detailsError`. Send `includeDetails: false` to skip those calls when you only need to know whether a test has a ticket. The request is a POST because a page of signatures does not fit in a query string; it does not change test data. On 404, the `error` field says whether the project, the run, or which test IDs were not found.","operationId":"listTestIssues","tags":["Tests"],"parameters":[{"$ref":"#/components/parameters/ProjectIdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestIssuesRequest"}}}},"responses":{"200":{"description":"Linked tickets for each test in the page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestIssuesResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}}}
```

## Get test metrics

> Duration percentiles, the duration histogram and the pass, failure and flakiness rates for the tests matching the filters, over the date range and the range of the same length before it. Pass \`signature\` for a single test. The filters and \`metric\_settings\` behave as they do on \`GET /tests/{projectId}\`, so the numbers agree with the rows there.

```json
{"openapi":"3.0.2","info":{"title":"Currents REST API","version":"1.0.0"},"tags":[],"servers":[{"url":"https://api.currents.dev/v1","description":"Production API"},{"url":"https://api-staging.currents.dev/v1","description":"Staging API"},{"url":"http://localhost:4000/v1","description":"Local development"}],"security":[{"BearerAuth":[]},{"OAuth2":["analytics:read"]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"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."},"OAuth2":{"type":"oauth2","description":"An access token from the Currents authorization server, for an application acting as a user in one organization. Unlike an API key it is confined per endpoint: the operation lists the scope it needs, and a token that was not granted that scope gets 403.\n\n**The endpoints below are production's.** They are written out so this specification can be exercised against production, and they are wrong for every other deployment — a token minted by `id.currents.dev` is refused by a staging or on-premise API, whose `OAUTH_ISSUER` and `OAUTH_API_AUDIENCE` are its own. Against anything but production, and in a client generated from this document, discover them instead: `GET {api origin}/.well-known/oauth-protected-resource`, then the `authorization_servers[0]` document.\n\n**The audience named here is the REST API's.** `POST /mcp` is a second resource server on the same origin, identified by `{api origin}/mcp` and described by its own document at `/.well-known/oauth-protected-resource/mcp`. Every operation below refuses a token minted for it, and it refuses every token minted for these, so a client of this specification wants the audience above and not that one.","flows":{"authorizationCode":{"authorizationUrl":"https://id.currents.dev/api/auth/oauth2/authorize","tokenUrl":"https://id.currents.dev/api/auth/oauth2/token","refreshUrl":"https://id.currents.dev/api/auth/oauth2/token","scopes":{"projects:read":"See which projects exist and their names","projects:write":"Change project configuration, including a project's tags","results:read":"See runs, specs and failure detail — errors, stacks and artifacts","analytics:read":"See aggregate metrics: flake and failure rates, error counts, durations and trends","actions:read":"See quarantine and skip rules, and the tests they affect","actions:write":"Create, edit, enable, disable and archive quarantine and skip rules","issues:write":"Create and link issues in a connected issue tracker, and list its projects and issue types","runs:write":"Cancel and reset runs, and permanently delete runs and their artifacts","webhooks:read":"See webhook configuration, including destination URLs and headers","webhooks:write":"Create, edit and delete webhooks","shares:write":"Create public links to test results that anyone with the link can open until they expire"}}}}},"parameters":{"ProjectIdPath":{"name":"projectId","in":"path","required":true,"description":"The project ID","schema":{"type":"string"}},"DateStartQuery":{"name":"date_start","in":"query","required":true,"description":"Start date in ISO 8601 format","schema":{"type":"string","format":"date-time"}},"DateEndQuery":{"name":"date_end","in":"query","required":true,"description":"End date in ISO 8601 format","schema":{"type":"string","format":"date-time"}},"TagsQuery":{"name":"tags[]","in":"query","required":false,"description":"Filter by tags (can be specified multiple times using bracket notation, e.g., tags[]=value1&tags[]=value2)","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},"BranchesQuery":{"name":"branches[]","in":"query","required":false,"description":"Filter by git branch. Use trailing `*` for prefix match (e.g. `release/*`). Max 250 characters per value.","schema":{"type":"array","items":{"$ref":"#/components/schemas/BranchFilterQueryValue"}},"style":"form","explode":true},"GroupsQuery":{"name":"groups[]","in":"query","required":false,"description":"Filter by groups (can be specified multiple times using bracket notation, e.g., groups[]=group1&groups[]=group2)","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},"AuthorsQuery":{"name":"authors[]","in":"query","required":false,"description":"Filter by git authors (can be specified multiple times using bracket notation, e.g., authors[]=author1&authors[]=author2)","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},"EnvironmentsQuery":{"name":"environments[]","in":"query","required":false,"description":"Filter by environment (can be specified multiple times using bracket notation, e.g., environments[]=staging&environments[]=production)","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true}},"schemas":{"BranchFilterQueryValue":{"description":"Branch filter value: an exact branch name, or a trailing `*` for prefix match (e.g. `release/*`). Max 250 characters.","oneOf":[{"type":"string","description":"Exact branch name (must not contain `*` or spaces).","pattern":"^[!-)+-~]+$","maxLength":250},{"type":"string","description":"Prefix match: branch prefix followed by `*`.","pattern":"^[!-)+-~]+\\*$","maxLength":250}]},"RecordedTestOutcome":{"type":"string","description":"Final per-test outcome stored in Currents.\n\n- **passed** — Runner reported success.\n- **failed** — Runner reported failure (assertions, errors, timeouts, etc.).\n- **pending** — Intentional skip or disabled test (e.g. `test.skip()` / `it.skip()`). In **Tests Explorer** (`GET /tests/{projectId}`) this increments `metrics.ignored` and does **not** increment `metrics.failures`.\n- **skipped** — Runner reported a skip without a normal pass/fail (often interrupted or never executed as pass/fail). In **Tests Explorer** this increments `metrics.failures` together with `failed` (there is no separate `skipped` counter in that response). On **run and spec** payloads, `stats.skipped` is still reported separately from `stats.failures` and `stats.pending`.","enum":["passed","failed","pending","skipped"]},"TestsExplorerMetricSettings":{"type":"object","additionalProperties":false,"description":"Per-metric outcome filters for Tests Explorer (`metric_settings` query parameter).","properties":{"executions":{"type":"array","items":{"$ref":"#/components/schemas/RecordedTestOutcome"}},"avgDuration":{"type":"array","items":{"$ref":"#/components/schemas/RecordedTestOutcome"}},"flakinessRate":{"type":"array","items":{"$ref":"#/components/schemas/RecordedTestOutcome"}},"failureRate":{"type":"array","items":{"$ref":"#/components/schemas/RecordedTestOutcome"}}}},"MetricsSummary":{"type":"object","description":"Duration percentiles and outcome rates for a selection of tests or spec files, plus the duration histogram.","required":["current","previous","minMs","maxMs","distribution"],"properties":{"current":{"$ref":"#/components/schemas/PeriodMetrics"},"previous":{"allOf":[{"$ref":"#/components/schemas/PeriodMetrics"}],"description":"The range of the same length before the one asked for."},"minMs":{"type":"number","nullable":true,"description":"Shortest execution in the current range."},"maxMs":{"type":"number","nullable":true,"description":"Longest execution in the current range."},"distribution":{"type":"array","description":"Executions per duration bucket, in the current range. Buckets widen with duration; empty buckets between the first and last are included.","items":{"type":"object","required":["minMs","maxMs","executions"],"properties":{"minMs":{"type":"number"},"maxMs":{"type":"number"},"executions":{"type":"number"}}}}}},"PeriodMetrics":{"type":"object","required":["executions","overallExecutions","avgMs","p50Ms","p90Ms","p95Ms","passRate","failureRate","flakinessRate","suiteSize","testsPerExecution"],"properties":{"executions":{"type":"number","description":"Executions the duration metrics are calculated over. Narrower than `overallExecutions` when the average-duration metric setting excludes a status."},"overallExecutions":{"type":"number","description":"Executions the rates are calculated over."},"avgMs":{"type":"number","nullable":true},"p50Ms":{"type":"number","nullable":true},"p90Ms":{"type":"number","nullable":true},"p95Ms":{"type":"number","nullable":true},"passRate":{"type":"number","nullable":true,"description":"Rate as a 0-1 float. Tests only."},"failureRate":{"type":"number","nullable":true,"description":"Rate as a 0-1 float. Failures are failed and interrupted executions together."},"flakinessRate":{"type":"number","nullable":true},"suiteSize":{"type":"number","nullable":true,"description":"Tests in the most recent execution of a spec file. Null unless the metrics describe a single spec file."},"testsPerExecution":{"type":"number","nullable":true,"description":"Average tests per spec execution. Spec files only."}}},"ErrorResponse":{"type":"object","required":["status","error"],"properties":{"status":{"type":"string","enum":["FAILED"]},"error":{"type":"string","description":"Error message"},"code":{"type":"string","description":"Stable machine-readable discriminator, present on refusals a client is expected to branch on (for example `AI_CONSENT_REQUIRED`). The `error` text is free-form; branch on `code`."},"candidates":{"type":"array","description":"With `code: ambiguous_target`: the runs, spec files or tests the request matched. Send one of their IDs.","items":{"type":"object","properties":{"runId":{"type":"string"},"ciBuildId":{"type":"string"},"instanceId":{"type":"string"},"groupId":{"type":"string"},"spec":{"type":"string"},"machineId":{"type":"string","nullable":true},"testId":{"type":"string"},"title":{"type":"array","items":{"type":"string"}}}}}}}},"responses":{"BadRequest":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"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.","headers":{"WWW-Authenticate":{"description":"Present on the `insufficient_scope` refusal only, naming the scope to re-authorize for (RFC 6750 3.1): `Bearer error=\"insufficient_scope\", scope=\"webhooks:read\"`. Absent on `insufficient_role`, where the scope is already granted, and on `api_key_required` and `user_credential_required`, where no scope would help.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/tests/{projectId}/metrics":{"get":{"summary":"Get test metrics","description":"Duration percentiles, the duration histogram and the pass, failure and flakiness rates for the tests matching the filters, over the date range and the range of the same length before it. Pass `signature` for a single test. The filters and `metric_settings` behave as they do on `GET /tests/{projectId}`, so the numbers agree with the rows there.","operationId":"getTestsMetrics","tags":["Tests"],"parameters":[{"$ref":"#/components/parameters/ProjectIdPath"},{"$ref":"#/components/parameters/DateStartQuery"},{"$ref":"#/components/parameters/DateEndQuery"},{"$ref":"#/components/parameters/TagsQuery"},{"$ref":"#/components/parameters/BranchesQuery"},{"$ref":"#/components/parameters/GroupsQuery"},{"$ref":"#/components/parameters/AuthorsQuery"},{"$ref":"#/components/parameters/EnvironmentsQuery"},{"name":"signature","in":"query","required":false,"description":"Limit the metrics to one test","schema":{"type":"string","minLength":1}},{"name":"spec","in":"query","required":false,"description":"Filter tests by spec file name (partial match)","schema":{"type":"string","minLength":1}},{"name":"title","in":"query","required":false,"description":"Filter tests by title (partial match)","schema":{"type":"string","minLength":1}},{"name":"test_state[]","in":"query","required":false,"description":"Restrict default **executions** and **avg duration** slices (unless `metric_settings` overrides). Each value is a `RecordedTestOutcome` (see components/schemas). Example: `test_state[]=passed&test_state[]=failed`.","schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordedTestOutcome"}},"style":"form","explode":true},{"name":"metric_settings","in":"query","required":false,"description":"Overrides which outcomes feed each metric. Keys: `executions`, `avgDuration`, `flakinessRate`, `failureRate` — each value is an array of `RecordedTestOutcome`. Omitted keys use defaults. Pass as a JSON value (same encoding as `content: application/json` for this parameter).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestsExplorerMetricSettings"}}}},{"name":"annotations","in":"query","required":false,"description":"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.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["status","data"],"properties":{"status":{"type":"string","enum":["OK"]},"data":{"$ref":"#/components/schemas/MetricsSummary"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.currents.dev/api/resources/tests.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
