Requires runs:write scope and contributor role or above. The regression_test_ids set is validated against active tests only. If omitted, all active regression tests are used.
Body
Required
-
Maximum length is
100. Format should match the following pattern:^[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+$. -
Maximum length is
100. Format should match the following pattern:^[A-Za-z0-9._\/-]+$. -
Format should match the following pattern:
^[a-fA-F0-9]{40}$. -
Minimum value is
1. -
Values are
linuxorwindows. -
Optional subset of active regression test IDs. If omitted, all active tests are used. Inactive test IDs are rejected with 422.
Not more than
500elements. Minimum value of each is1. -
Maximum length is
50.
Responses
-
Run queued. Poll /runs/{run_id}/progress for status.
-
Request body or query parameters failed schema validation
-
Missing, expired, or invalid bearer token
-
Token is valid but lacks the required scope or role
-
Request is valid JSON but semantically invalid
-
Too many requests. Retry after the indicated number of seconds.
-
Unexpected server error
curl \
--request POST 'https://sampleplatform.ccextractor.org/api/v1/runs' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"repository":"CCExtractor/ccextractor","branch":"master","commit_sha":"0632bff4e382d5f86eff9073b9ddd37f03f9778c","pull_request":2264,"platform":"windows","regression_test_ids":[42],"environment_id":"windows-latest"}'
{
"repository": "CCExtractor/ccextractor",
"branch": "master",
"commit_sha": "0632bff4e382d5f86eff9073b9ddd37f03f9778c",
"pull_request": 2264,
"platform": "windows",
"regression_test_ids": [
42
],
"environment_id": "windows-latest"
}
{
"run_id": 42,
"status": "queued",
"repository": "string",
"branch": "string",
"commit_sha": "string",
"commit_short": "string",
"pull_request": 42,
"platform": "linux",
"run_errors": true,
"triggered_by": "string",
"created_at": "2026-05-04T09:42:00Z",
"queued_at": "2026-05-04T09:42:00Z",
"started_at": "2026-05-04T09:42:00Z",
"completed_at": "2026-05-04T09:42:00Z",
"duration_ms": 42,
"links": {
"additionalProperty1": "https://example.com",
"additionalProperty2": "https://example.com"
}
}
{
"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": "forbidden",
"message": "Token does not have the required scope for this operation.",
"details": {
"required_scope": "runs:write",
"token_scopes": [
"runs:read",
"results:read"
]
}
}
{
"code": "unprocessable",
"message": "regression_test_ids contains inactive test IDs.",
"details": {
"inactive_ids": [
42,
99
]
}
}
{
"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": {}
}