Public read. The underlying table is capped at the 50 most recent runs in the current implementation; this endpoint adds full pagination. Sorted by -created_at by default (newest first).
Query parameters
-
Maximum number of results to return (1–100)
Minimum value is
1, maximum value is100. Default value is50. -
Number of results to skip for pagination
Minimum value is
0. Default value is0. -
Normalized run status. Derived from TestProgress rows and TestResult outcomes. The underlying TestStatus model stores only preparation, testing, completed, and canceled (where canceled covers both canceled and error). This enum is the normalized API contract.
Values are
queued,running,pass,fail,canceled,error, orincomplete. -
Maximum length is
100. -
Full 40-character SHA-1 commit hash
Format should match the following pattern:
^[a-fA-F0-9]{40}$. -
GitHub repository in owner/repo format
Maximum length is
100. Format should match the following pattern:^[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+$. -
Values are
linuxorwindows. -
ISO 8601 datetime. Returns runs created after this time.
-
ISO 8601 datetime. Returns runs created before this time.
-
Sort field. Prefix with - for descending order.
Values are
created_at,-created_at,started_at,-started_at,run_id, or-run_id. Default value is-created_at.
curl \
--request GET 'https://sampleplatform.ccextractor.org/api/v1/runs' \
--header "Authorization: Bearer $ACCESS_TOKEN"
# Headers
# Payload
{
"data": [],
"pagination": {
"limit": 42,
"offset": 42,
"total": 42,
"next_offset": 42
}
}
{
"code": "validation_error",
"message": "Request failed schema validation.",
"details": {
"fields": {
"commit_sha": "Must match pattern ^[a-fA-F0-9]{40}$",
"platform": "Must be one of [linux, windows]"
}
}
}
{
"code": "unauthorized",
"message": "Bearer token is missing, expired, or invalid.",
"details": {}
}
{
"code": "rate_limited",
"message": "Rate limit exceeded. Retry after 30 seconds.",
"details": {
"retry_after": 30,
"limit": 120,
"window": "60s"
}
}
{
"code": "not_found",
"message": "Run 9317 not found.",
"details": {}
}