List test definitions
const url = 'https://testperch.com/api/public/v1/projects/example/tests?first=50&sort_by=id&sort_order=asc';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://testperch.com/api/public/v1/projects/example/tests?first=50&sort_by=id&sort_order=asc' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of a project visible to the authenticated credential.
ID of a project visible to the authenticated credential.
Query Parameters
Section titled “Query Parameters”Opaque forward-pagination cursor containing only the active sort key and ID.
Opaque forward-pagination cursor containing only the active sort key and ID.
Number of tests to return (maximum 100).
Number of tests to return (maximum 100).
Search expression over id, title, file, created_at, archived_at, quarantined_at, active_issue_types, and success_rate. Mix AND and OR with parentheses: AND binds more tightly than OR, and whitespace means AND. Prefix a clause or group directly with - to negate it. Supports field-specific operators, at most 10 clauses in total, and 10 nested parentheses levels. Archived tests are excluded unless archived_at appears anywhere in the expression, including in a negated group. Use -quarantined_at:null for currently quarantined tests or quarantined_at:null for tests without active quarantine. Example: (title~“checkout” OR file~“checkout”) AND -(quarantined_at:null OR success_rate:null). Timestamps are integer Unix seconds.
Search expression over id, title, file, created_at, archived_at, quarantined_at, active_issue_types, and success_rate. Mix AND and OR with parentheses: AND binds more tightly than OR, and whitespace means AND. Prefix a clause or group directly with - to negate it. Supports field-specific operators, at most 10 clauses in total, and 10 nested parentheses levels. Archived tests are excluded unless archived_at appears anywhere in the expression, including in a negated group. Use -quarantined_at:null for currently quarantined tests or quarantined_at:null for tests without active quarantine. Example: (title~“checkout” OR file~“checkout”) AND -(quarantined_at:null OR success_rate:null). Timestamps are integer Unix seconds.
Field used to order tests.
Field used to order tests.
Sort direction. ID uses the same direction as the deterministic tie-breaker.
Sort direction. ID uses the same direction as the deterministic tie-breaker.
Responses
Section titled “Responses”A forward page of test definitions.
object
object
Stable test identity, latest observed title and file, and current health metadata. Shared by /tests and embedded test definitions.
object
Current unresolved issue types for the test, or null when none are active. Does not determine an execution’s status.
Creation time of the active quarantine, or null when no quarantine is active. Branch allowances do not change this value.
Forward-pagination state for the returned page.
object
Opaque cursor for the last returned edge, or null when the page is empty.
Whether another forward page is available after end_cursor.
Example generated
{ "edges": [ { "cursor": "example", "node": { "active_issue_types": [ "example" ], "quarantined_at": "2026-04-15T12:00:00Z", "archived_at": "2026-04-15T12:00:00Z", "created_at": "2026-04-15T12:00:00Z", "file": "example", "id": "example", "success_rate": 1, "title": "example", "web_url": "https://example.com" } } ], "page_info": { "end_cursor": "example", "has_next_page": true }}Invalid parameters, query, or cursor.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Missing or invalid OAuth bearer token or API key.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The project workspace does not have product access.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The credential lacks the required permission; configuration writes require a Read + write project key.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Configuration conflicts with an existing resource or integration requirements.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Credential or workspace rate limit exceeded.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”Seconds before retrying.
Seconds before retrying.
Internal server error.
object
object
object
Example
{ "error": { "code": "invalid_request" }}