{"openapi":"3.1.0","info":{"title":"TestOrchestrator API","version":"1.0.0","description":"The public, versioned API of TestOrchestrator. Authenticate with a workspace service key (Authorization: Bearer <key>); the key decides the workspace, so never send X-Tenant-Workspace. Each operation states the scope it needs (x-required-scope).\n\nProjects are named by their public id (prj_ + 12 characters), never by a numeric id.\n\nErrors share one shape: {errorCode, message, status, details, path, timestamp}.\n\nLists are cursor-paged: {data, next_cursor}; pass next_cursor back as ?cursor= until it is null. ?limit= sets the page size (1-100, default 50, unless the operation says otherwise)."},"servers":[{"url":"https://api.testorchestrator.com"}],"security":[{"serviceKey":[]}],"paths":{"/api/v1/attachments":{"post":{"operationId":"createAttachment","summary":"Create an attachment from an upload","description":"Step 2: registers the file PUT to upload_url as an attachment of the project (source AUTOMATED) and returns its attachment_id. Reference it from a to-results-json upload as results[].artifacts[].attachment_id; the run result then lists the file. An attachment_id that is not an attachment of the upload's project refuses that upload (400 RESULTS_FILE_INVALID naming the field). Repeating this call with the same file_key returns the same attachment (Idempotent-Replay: true).","x-required-scope":"ingest:results","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAttachmentRequest"}}}},"responses":{"201":{"description":"The attachment (or, on a repeat, the same one).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}},"400":{"description":"TENANT_HEADER_NOT_ALLOWED: Do not send X-Tenant-Workspace or X-Tenant-Subdomain: the key decides the workspace. | PROJECT_REQUIRED: This key is for all projects: pass project=prj_... to say which one. | INVALID_PROJECT_ID: project must be a project id like prj_8kd2hq0vxc1a, from GET /api/v1/projects or the project's settings page. | INVALID_PARAMETER: A request parameter is invalid. | ATTACHMENT_REJECTED: This file cannot be attached: its type is not allowed or it is too large. | ATTACHMENT_UPLOAD_NOT_FOUND: No uploaded file for this file_key. Call prepare-upload, PUT the file to upload_url, then retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API_KEY_UNAUTHORIZED: A valid workspace service key is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"SCOPE_REQUIRED: This key does not have the scope this endpoint requires. | KEY_PROJECT_MISMATCH: This key cannot report to that project, or the project was not found or access is denied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"INGEST_NOT_AVAILABLE: Automated result upload is temporarily unavailable. Try again later.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/attachments/prepare-upload":{"post":{"operationId":"prepareAttachmentUpload","summary":"Prepare an attachment upload","description":"Step 1 of attaching a test artifact (screenshot, Playwright trace or video, log): returns a presigned upload_url. PUT the raw file bytes to it with the listed headers before it expires, then call POST /api/v1/attachments with the file_key. Same size caps and media types as attachments in the app (images 10 MB, other files 50 MB), plus application/zip and video/webm.","x-required-scope":"ingest:results","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareAttachmentUploadRequest"}}}},"responses":{"200":{"description":"Where and how to PUT the file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreparedAttachmentUpload"}}}},"400":{"description":"TENANT_HEADER_NOT_ALLOWED: Do not send X-Tenant-Workspace or X-Tenant-Subdomain: the key decides the workspace. | PROJECT_REQUIRED: This key is for all projects: pass project=prj_... to say which one. | INVALID_PROJECT_ID: project must be a project id like prj_8kd2hq0vxc1a, from GET /api/v1/projects or the project's settings page. | INVALID_PARAMETER: A request parameter is invalid. | ATTACHMENT_REJECTED: This file cannot be attached: its type is not allowed or it is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API_KEY_UNAUTHORIZED: A valid workspace service key is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"SCOPE_REQUIRED: This key does not have the scope this endpoint requires. | KEY_PROJECT_MISMATCH: This key cannot report to that project, or the project was not found or access is denied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"STORAGE_QUOTA_EXCEEDED: This workspace's attachment storage is full. Delete old attachments or upgrade the plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"INGEST_NOT_AVAILABLE: Automated result upload is temporarily unavailable. Try again later.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/ingest/jobs/{ingest_id}":{"get":{"operationId":"getIngestJob","summary":"Get an upload's status","description":"Status, counts, error summary and run of one upload, by the ingest_id the upload returned. Needs the read or the ingest:results scope; a project key sees only its project's uploads.","x-required-scope":"read","x-accepted-scopes":["read","ingest:results"],"parameters":[{"name":"ingest_id","in":"path","required":true,"description":"The ingest_id returned by POST /api/v1/ingest/results (ing_...).","schema":{"type":"string"}}],"responses":{"200":{"description":"The upload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestJob"}}}},"400":{"description":"TENANT_HEADER_NOT_ALLOWED: Do not send X-Tenant-Workspace or X-Tenant-Subdomain: the key decides the workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API_KEY_UNAUTHORIZED: A valid workspace service key is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"SCOPE_REQUIRED: This key does not have the scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"INGEST_JOB_NOT_FOUND: No such ingest job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/ingest/results":{"post":{"operationId":"ingestResults","summary":"Upload automated test results","description":"Send one results file (JUnit XML, Playwright JSON or TestOrchestrator JSON) as multipart/form-data. A project key needs no project parameter; an all-projects key passes project=prj_... Without run_key or run_id every upload creates a run; uploads with the same run_key append to one run (a re-uploaded test replaces its earlier result); complete=true closes it. Results link to cases by a C-123 reference in the title, tags or annotations, then by the case's automation key, then (if the project turned it on) by title; the rest are kept as unmatched (at most 500 per run). The whole file is processed in one transaction before the answer. Same Idempotency-Key within 24 hours returns the first response and writes nothing twice. Rate limit per key: a token bucket of 60 that refills at 1 per second (a burst of up to 60, so up to about 120 uploads in the first minute and 60 a minute after that); over it, 429 with Retry-After.","x-required-scope":"ingest:results","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"1-255 visible ASCII characters, e.g. <ci run id>-<attempt>-<shard>.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"multipart/form-data fields of an upload.","properties":{"file":{"type":"string","description":"The results file. Up to 25 MB and 20000 results; may be empty for a final complete=true call.","format":"binary"},"format":{"type":"string","description":"File format.","enum":["junit-xml","playwright-json","to-results-json"],"examples":["playwright-json"]},"project":{"type":"string","description":"Only with an all-projects key: the project's public id. A project key may omit it; if sent it must be that key's own project.","pattern":"^prj_[0-9a-hjkmnp-tv-z]{12}$","examples":["prj_8kd2hq0vxc1a"]},"run_key":{"type":"string","description":"Your stable id for the logical run (e.g. the CI run id). Uploads with the same key append to the same run (shards, matrix jobs); a re-upload of a test replaces its earlier result. Once the run is closed the key takes no more uploads (409 RUN_CLOSED).","maxLength":200,"examples":["gha-9876543210"]},"run_id":{"type":"string","description":"Append to this existing open run instead (the number in the run's URL). With run_key, the run must hold that key.","examples":["4182"]},"run_name":{"type":"string","description":"Run name for a new run. Defaults to CI · <branch> · #<build>.","maxLength":255},"cycle_id":{"type":"string","description":"Cycle for a new run (the number in the cycle's URL).","examples":["77"]},"environment":{"type":"string","description":"An Environment name or id for the whole upload. Without it each result's configuration (Playwright project, params.browser) is matched to an Environment by name; nothing is created.","maxLength":120},"complete":{"type":"string","description":"true closes the run after this upload, through the same close path as the app (unmatched failures do not block it).","enum":["true","false"],"examples":["false"]},"tags":{"type":"string","description":"Comma-separated names of Automation tags.","maxLength":1000,"examples":["e2e,team-core"]},"ci_branch":{"type":"string","description":"CI fact: branch.","maxLength":255,"examples":["main"]},"ci_commit":{"type":"string","description":"CI fact: commit SHA.","maxLength":64,"examples":["4f2c9a1"]},"ci_actor":{"type":"string","description":"CI fact: who triggered the job.","maxLength":255},"ci_job_url":{"type":"string","description":"CI fact: link to the job (http or https).","format":"uri","maxLength":2048},"ci_provider":{"type":"string","description":"CI fact: provider (github, gitlab, circleci...).","maxLength":64,"examples":["github"]},"ci_build_number":{"type":"string","description":"CI fact: build or pipeline number.","maxLength":64,"examples":["512"]}},"required":["file","format"],"additionalProperties":false}}}},"responses":{"202":{"description":"Processed. A replay of an earlier Idempotency-Key returns the first body and carries the header Idempotent-Replay: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestAccepted"}}}},"400":{"description":"TENANT_HEADER_NOT_ALLOWED: Do not send X-Tenant-Workspace or X-Tenant-Subdomain: the key decides the workspace. | PROJECT_REQUIRED: This key is for all projects: pass project=prj_... to say which one. | INVALID_PROJECT_ID: project must be a project id like prj_8kd2hq0vxc1a, from GET /api/v1/projects or the project's settings page. | INVALID_FORMAT: format must be one of junit-xml, playwright-json, to-results-json. | FILE_REQUIRED: Send the results as multipart/form-data with a file part. | INVALID_PARAMETER: A request parameter is invalid. | IDEMPOTENCY_KEY_INVALID: The Idempotency-Key header is malformed. | RESULTS_FILE_INVALID: The results file could not be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API_KEY_UNAUTHORIZED: A valid workspace service key is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"SCOPE_REQUIRED: This key does not have the scope this endpoint requires. | KEY_PROJECT_MISMATCH: This key cannot report to that project, or the project was not found or access is denied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RUN_NOT_FOUND: No such run in this project. | CYCLE_NOT_FOUND: No such cycle in this project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RUN_CLOSED: That run is closed. Upload with a new run_key. | BUSY: Another upload is writing to this run. Retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"FILE_TOO_LARGE: The results file is over 25 MB. Split it by shard or drop stdout from the report. | TOO_MANY_RESULTS: The file holds more than 20000 results. Split it by shard and upload each with the same run_key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"IDEMPOTENCY_KEY_REUSED: This Idempotency-Key was already used for a different upload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: Too many requests with this key. Wait for Retry-After, then retry (upload once per CI job). | INGEST_DAILY_CAP: This workspace has reached its plan's daily volume of uploaded results. | INGEST_MONTHLY_CAP: This workspace has reached its plan's monthly number of result uploads.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"INGEST_NOT_AVAILABLE: Automated result upload is temporarily unavailable. Try again later.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/openapi.json":{"get":{"operationId":"getOpenApiDocument","summary":"This document","description":"The OpenAPI 3.1 description of the public API. No key required.","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"An OpenAPI 3.1 document.","type":"object"}}}}}}},"/api/v1/projects":{"get":{"operationId":"listProjects","summary":"List projects","description":"The projects this key can act on, by public id. A project key lists its one project; an all-projects key lists every project of its workspace. Never returns numeric ids.","x-required-scope":"read","parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from a previous page's next_cursor.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1-100 (default 50).","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPage"}}}},"400":{"description":"TENANT_HEADER_NOT_ALLOWED: Do not send X-Tenant-Workspace or X-Tenant-Subdomain: the key decides the workspace. | INVALID_PARAMETER: A request parameter is invalid. | INVALID_CURSOR: The cursor is invalid. Start again without one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API_KEY_UNAUTHORIZED: A valid workspace service key is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"SCOPE_REQUIRED: This key does not have the scope this endpoint requires.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/projects/{project}/automated-results":{"get":{"operationId":"listAutomatedResults","summary":"List automated results","description":"The automated results of a project, cursor-paged (limit 1-500, default 100). Filters combine with AND: since (ISO-8601 date-time or date, UTC midnight; results received at or after it), environment (an Environment's name or the raw configuration label, case-insensitive), outcome (comma-separated canonical outcomes), fingerprint (8-64 hex, prefix match), case (C-123, or unmatched), run (TR-12, or the run id an upload returned). Ordered by received_at, then id, oldest first; every result is listed, including re-runs that a later upload replaced (current=false), unmatched and dismissed ones. Results of deleted runs are not listed. Rate limit: 60 requests per minute per key (a burst of 60, then one per second), separate from the CSV export's; over it, 429 RATE_LIMIT_EXCEEDED with Retry-After.","x-required-scope":"read","parameters":[{"name":"project","in":"path","required":true,"description":"The project's public id (prj_...).","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Results received at or after this ISO-8601 date-time or date (UTC).","schema":{"type":"string"}},{"name":"environment","in":"query","required":false,"description":"An Environment's name or the raw configuration label (case-insensitive).","schema":{"type":"string"}},{"name":"outcome","in":"query","required":false,"description":"One or more of passed, failed, errored, timed_out, skipped, flaky_passed, inconclusive, comma-separated.","schema":{"type":"string"}},{"name":"fingerprint","in":"query","required":false,"description":"A failure fingerprint: 64 hex, or a prefix of at least 8.","schema":{"type":"string"}},{"name":"case","in":"query","required":false,"description":"A case reference (C-123), or unmatched for results linked to no case.","schema":{"type":"string"}},{"name":"run","in":"query","required":false,"description":"A run reference (TR-12), or the run id an upload returned.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from a previous page's next_cursor (or a CSV file's X-Next-Cursor).","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1-500 (default 100).","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomatedResultPage"}}}},"400":{"description":"TENANT_HEADER_NOT_ALLOWED: Do not send X-Tenant-Workspace or X-Tenant-Subdomain: the key decides the workspace. | INVALID_PROJECT_ID: project must be a project id like prj_8kd2hq0vxc1a, from GET /api/v1/projects or the project's settings page. | INVALID_PARAMETER: A request parameter is invalid. | INVALID_CURSOR: The cursor is invalid. Start again without one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API_KEY_UNAUTHORIZED: A valid workspace service key is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"SCOPE_REQUIRED: This key does not have the scope this endpoint requires. | KEY_PROJECT_MISMATCH: This key cannot report to that project, or the project was not found or access is denied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: Too many requests with this key. Wait for Retry-After, then retry (upload once per CI job).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/projects/{project}/automated-results.csv":{"get":{"operationId":"exportAutomatedResults","summary":"Export automated results as CSV","description":"The same results as listAutomatedResults, as one CSV file (RFC 4180: header row, CRLF line ends, UTF-8 without a byte-order mark), at most 50000 rows per file. When more match, the response carries X-Next-Cursor and a Link: <...>; rel=\"next\" header: request that URL for the next file (the cursor is also accepted by listAutomatedResults). Text cells beginning with = + - @ are prefixed with ' (spreadsheet formula guard). Filters combine with AND: since (ISO-8601 date-time or date, UTC midnight; results received at or after it), environment (an Environment's name or the raw configuration label, case-insensitive), outcome (comma-separated canonical outcomes), fingerprint (8-64 hex, prefix match), case (C-123, or unmatched), run (TR-12, or the run id an upload returned). Ordered by received_at, then id, oldest first; every result is listed, including re-runs that a later upload replaced (current=false), unmatched and dismissed ones. Results of deleted runs are not listed. Rate limit: 10 exports per minute per key (a burst of 10, then one every 6 seconds), separate from listAutomatedResults'; over it, 429 RATE_LIMIT_EXCEEDED with Retry-After.","x-required-scope":"read","parameters":[{"name":"project","in":"path","required":true,"description":"The project's public id (prj_...).","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Results received at or after this ISO-8601 date-time or date (UTC).","schema":{"type":"string"}},{"name":"environment","in":"query","required":false,"description":"An Environment's name or the raw configuration label (case-insensitive).","schema":{"type":"string"}},{"name":"outcome","in":"query","required":false,"description":"One or more of passed, failed, errored, timed_out, skipped, flaky_passed, inconclusive, comma-separated.","schema":{"type":"string"}},{"name":"fingerprint","in":"query","required":false,"description":"A failure fingerprint: 64 hex, or a prefix of at least 8.","schema":{"type":"string"}},{"name":"case","in":"query","required":false,"description":"A case reference (C-123), or unmatched for results linked to no case.","schema":{"type":"string"}},{"name":"run","in":"query","required":false,"description":"A run reference (TR-12), or the run id an upload returned.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor: a previous file's X-Next-Cursor (or a JSON page's next_cursor).","schema":{"type":"string"}}],"responses":{"200":{"description":"The CSV file.","content":{"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"TENANT_HEADER_NOT_ALLOWED: Do not send X-Tenant-Workspace or X-Tenant-Subdomain: the key decides the workspace. | INVALID_PROJECT_ID: project must be a project id like prj_8kd2hq0vxc1a, from GET /api/v1/projects or the project's settings page. | INVALID_PARAMETER: A request parameter is invalid. | INVALID_CURSOR: The cursor is invalid. Start again without one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API_KEY_UNAUTHORIZED: A valid workspace service key is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"SCOPE_REQUIRED: This key does not have the scope this endpoint requires. | KEY_PROJECT_MISMATCH: This key cannot report to that project, or the project was not found or access is denied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED: Too many requests with this key. Wait for Retry-After, then retry (upload once per CI job).","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"serviceKey":{"description":"A workspace service key (to_svc_...), sent as Authorization: Bearer <key>. Created by a Tenant Admin in Personal > API keys > Workspace service keys. Personal keys (MCP) are refused on this API.","scheme":"bearer","type":"http"}},"schemas":{"Attachment":{"type":"object","description":"An attachment of the project, ready to reference from to-results-json (results[].artifacts[].attachment_id).","properties":{"attachment_id":{"type":"integer","format":"int64","description":"Reference it as artifacts[].attachment_id in a to-results-json upload."},"file_name":{"type":"string"},"content_type":{"type":"string"},"size_bytes":{"type":"integer","format":"int64"},"source":{"type":"string","description":"AUTOMATED for files uploaded with a service key."}},"required":["attachment_id","file_name","content_type","size_bytes","source"],"additionalProperties":false},"AutomatedResult":{"type":"object","description":"One test execution an upload reported, as stored.","properties":{"id":{"type":"integer","format":"int64","description":"The result's id; stable, unique across the workspace."},"received_at":{"type":"string","format":"date-time","description":"When the upload carrying it was received (UTC). The list is ordered by this, then id."},"reported_at":{"type":["string","null"],"format":"date-time","description":"The time the reporter gave for the test, when it sent one (UTC)."},"run":{"$ref":"#/components/schemas/AutomatedResultRun","description":"The run the result belongs to."},"case":{"description":"The case the result is linked to; null for an unmatched result.","oneOf":[{"$ref":"#/components/schemas/AutomatedResultCase"},{"type":"null"}]},"test_id":{"type":"string","description":"The reporter's stable test id (e.g. the Playwright title path)."},"title":{"type":"string","description":"The test's title."},"params":{"type":"array","items":{"$ref":"#/components/schemas/AutomatedResultParam"},"description":"The parameters of a parametrised test, sorted by name; empty when none."},"environment":{"type":["string","null"],"description":"The Environment the result's configuration resolved to, by name."},"configuration_label":{"type":["string","null"],"description":"The raw configuration label the reporter sent (e.g. Playwright project chromium)."},"outcome":{"type":"string","description":"The canonical outcome.","enum":["passed","failed","errored","timed_out","skipped","flaky_passed","inconclusive"]},"status":{"type":["string","null"],"description":"The workspace status the outcome mapped to (Admin > Statuses aliases); null when unmapped."},"flaky":{"type":"boolean","description":"True when the test passed after a failed attempt (framework retries)."},"attempt":{"type":"integer","format":"int32","description":"The attempt this result is (1-based)."},"attempts_total":{"type":"integer","format":"int32","description":"How many attempts the framework made."},"duration_ms":{"type":["integer","null"],"format":"int64","description":"Duration in milliseconds, when reported."},"location_file":{"type":["string","null"],"description":"The source file the reporter located the test in."},"location_line":{"type":["integer","null"],"format":"int32","description":"The line in that file."},"failure":{"description":"The failure, for a failed, errored or timed-out result.","oneOf":[{"$ref":"#/components/schemas/AutomatedResultFailure"},{"type":"null"}]},"ci":{"description":"The CI facts the upload sent; null when none.","oneOf":[{"$ref":"#/components/schemas/AutomatedResultCi"},{"type":"null"}]},"match_reason":{"type":"string","description":"How the result was linked to its case.","enum":["key","hint","title","linked","none"]},"supersedes_id":{"type":["integer","null"],"format":"int64","description":"The earlier result this one replaced (a re-run of the same test and configuration)."},"superseded_by_id":{"type":["integer","null"],"format":"int64","description":"The later result that replaced this one; null while it is current."},"current":{"type":"boolean","description":"False once a later upload replaced it."},"dismissed":{"type":"boolean","description":"True when someone dismissed it on the run's Unmatched tab."},"ingest_id":{"type":["string","null"],"description":"The upload that carried it (ing_...), as returned by POST /api/v1/ingest/results."}},"required":["id","received_at","reported_at","run","case","test_id","title","params","environment","configuration_label","outcome","status","flaky","attempt","attempts_total","duration_ms","location_file","location_line","failure","ci","match_reason","supersedes_id","superseded_by_id","current","dismissed","ingest_id"],"additionalProperties":false},"AutomatedResultCase":{"type":"object","description":"The case a result is linked to.","properties":{"case_ref":{"type":"string","description":"The case's reference as the app shows it.","examples":["C-123"]},"title":{"type":"string","description":"The case's title."},"deleted":{"type":"boolean","description":"True when the case was deleted after the result was linked."}},"required":["case_ref","title","deleted"],"additionalProperties":false},"AutomatedResultCi":{"type":"object","description":"The CI facts an upload sent.","properties":{"provider":{"type":["string","null"],"description":"ci_provider."},"branch":{"type":["string","null"],"description":"ci_branch."},"commit":{"type":["string","null"],"description":"ci_commit."},"job":{"type":["string","null"],"description":"ci_job."},"job_url":{"type":["string","null"],"description":"ci_job_url."},"actor":{"type":["string","null"],"description":"ci_actor."},"build_number":{"type":["string","null"],"description":"ci_build_number."}},"required":["provider","branch","commit","job","job_url","actor","build_number"],"additionalProperties":false},"AutomatedResultFailure":{"type":"object","description":"A result's failure.","properties":{"type":{"type":["string","null"],"description":"The error type or class."},"message":{"type":["string","null"],"description":"The failure message (at most 4000 characters)."},"fingerprint":{"type":["string","null"],"description":"The failure fingerprint (64 hex): same message shape + first stack frame."}},"required":["type","message","fingerprint"],"additionalProperties":false},"AutomatedResultPage":{"type":"object","description":"A page of results with an opaque cursor to the next page.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AutomatedResult"},"description":"The page's items."},"next_cursor":{"type":["string","null"],"description":"Opaque cursor for the next page; null on the last page.","examples":["djE6cHJqXzhrZDJocTB2eGMxYQ"]}},"required":["data","next_cursor"],"additionalProperties":false},"AutomatedResultParam":{"type":"object","description":"One parameter of a parametrised test.","properties":{"name":{"type":"string","description":"Parameter name."},"value":{"type":["string","null"],"description":"Parameter value, as text."}},"required":["name","value"],"additionalProperties":false},"AutomatedResultRun":{"type":"object","description":"The run a result belongs to.","properties":{"run_id":{"type":"integer","format":"int64","description":"The run id (the number in the run's URL, as uploads return it)."},"run_ref":{"type":["string","null"],"description":"The run's reference as the app shows it.","examples":["TR-12"]},"run_key":{"type":["string","null"],"description":"The run key the uploads sent."}},"required":["run_id","run_ref","run_key"],"additionalProperties":false},"CreateAttachmentRequest":{"type":"object","description":"Step 2: register the uploaded file as an attachment of the project.","properties":{"file_key":{"type":"string","description":"file_key from prepare-upload."},"file_name":{"type":"string","description":"The file's name.","maxLength":255,"examples":["trace.zip"]},"content_type":{"type":"string","description":"The file's media type (as prepared).","examples":["application/zip"]},"size_bytes":{"type":"integer","format":"int64","description":"The size declared at prepare-upload.","examples":["184320"]},"project":{"type":"string","description":"prj_ id; required for an all-projects key, optional (must match) for a project key.","examples":["prj_8kd2hq0vxc1a"]}},"required":["file_key","file_name","content_type","size_bytes"],"additionalProperties":false},"Error":{"type":"object","description":"The error body of every refusal on the public API.","properties":{"errorCode":{"description":"Machine-readable error code.","enum":["API_KEY_UNAUTHORIZED","SCOPE_REQUIRED","TENANT_HEADER_NOT_ALLOWED","PROJECT_REQUIRED","INVALID_PROJECT_ID","KEY_PROJECT_MISMATCH","INVALID_FORMAT","FILE_REQUIRED","FILE_TOO_LARGE","INVALID_PARAMETER","IDEMPOTENCY_KEY_INVALID","IDEMPOTENCY_KEY_REUSED","INVALID_CURSOR","RATE_LIMIT_EXCEEDED","INGEST_NOT_AVAILABLE","RESULTS_FILE_INVALID","TOO_MANY_RESULTS","RUN_NOT_FOUND","CYCLE_NOT_FOUND","RUN_CLOSED","BUSY","INGEST_DAILY_CAP","INGEST_MONTHLY_CAP","ATTACHMENT_REJECTED","ATTACHMENT_UPLOAD_NOT_FOUND","STORAGE_QUOTA_EXCEEDED","INGEST_JOB_NOT_FOUND"],"type":"string"},"message":{"description":"What went wrong, for a person.","type":"string"},"status":{"description":"The HTTP status.","type":"integer"},"details":{"description":"Extra detail, e.g. the offending field or the retry hint.","type":["string","null"]},"path":{"description":"The request path.","type":"string"},"timestamp":{"description":"When the error occurred (UTC).","type":"string"}},"required":["errorCode","message","status"]},"IngestAccepted":{"type":"object","description":"The upload was processed: the run it went to and what it counted.","properties":{"ingest_id":{"type":"string","description":"Opaque id of the upload; poll GET /api/v1/ingest/jobs/{ingest_id}.","examples":["ing_7f3k9q2m4x8z1c5v"]},"status":{"type":"string","description":"Always accepted.","enum":["accepted"],"examples":["accepted"]},"run_id":{"type":["integer","null"],"format":"int64","description":"The run the results went to; null when the file held no results and named no run.","examples":["4182"]},"run_ref":{"type":["string","null"],"description":"The run's reference as the app shows it.","examples":["TR-12"]},"run_key":{"type":["string","null"],"description":"The run's key, when it has one.","examples":["gha-9876543210"]},"run_url":{"type":["string","null"],"description":"The run's page in the app; null when there is no run or no app URL is configured.","examples":["https://testorchestrator.com/acme/projects/12/test-runs/4182"]},"counts":{"$ref":"#/components/schemas/IngestCounts","description":"What was read and written."},"complete":{"type":"boolean","description":"True when the run is closed after this upload (complete=true)."},"warnings":{"type":"array","items":{"type":"string"},"description":"Non-fatal notes about this upload."}},"required":["ingest_id","status","run_id","run_ref","run_key","run_url","counts","complete","warnings"],"additionalProperties":false},"IngestCounts":{"type":"object","description":"What one upload read and wrote.","properties":{"total":{"type":"integer","format":"int32","description":"Results in the file."},"matched":{"type":"integer","format":"int32","description":"Results linked to a case."},"unmatched":{"type":"integer","format":"int32","description":"Results that matched no case (stored and overflow)."},"unmatched_overflow":{"type":"integer","format":"int32","description":"Unmatched results not stored: a run keeps at most 500."},"superseded":{"type":"integer","format":"int32","description":"Results that replaced an earlier result of the same test in this run (a re-run)."},"by_outcome":{"$ref":"#/components/schemas/IngestOutcomeCounts","description":"Results per outcome."}},"required":["total","matched","unmatched","unmatched_overflow","superseded","by_outcome"],"additionalProperties":false},"IngestJob":{"type":"object","description":"One upload: its status, counts, error summary and run.","properties":{"ingest_id":{"type":"string","description":"Opaque id of the upload.","examples":["ing_7f3k9q2m4x8z1c5v"]},"status":{"type":"string","description":"completed once processed; queued only for uploads recorded before processing shipped.","enum":["queued","processing","completed","failed"],"examples":["completed"]},"format":{"type":"string","description":"File format.","enum":["junit-xml","playwright-json","to-results-json"]},"received_at":{"type":"string","format":"date-time","description":"When the upload arrived (UTC)."},"completed_at":{"type":["string","null"],"format":"date-time","description":"When it finished processing (UTC)."},"run_id":{"type":["integer","null"],"format":"int64","description":"The run the results went to (the number in the run's URL)."},"run_ref":{"type":["string","null"],"description":"The run's reference as the app shows it.","examples":["TR-12"]},"run_key":{"type":["string","null"],"description":"The run key sent with the upload."},"complete":{"type":"boolean","description":"Whether the upload asked to close the run."},"counts":{"$ref":"#/components/schemas/IngestCounts","description":"What the upload read and wrote."},"error":{"type":["string","null"],"description":"A one-line summary of what was not kept (unmatched overflow, dropped references)."}},"required":["ingest_id","status","format","received_at","completed_at","run_id","run_ref","run_key","complete","counts","error"],"additionalProperties":false},"IngestOutcomeCounts":{"type":"object","description":"Results per outcome.","properties":{"passed":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"},"skipped":{"type":"integer","format":"int32"},"errored":{"type":"integer","format":"int32"},"timed_out":{"type":"integer","format":"int32"},"flaky_passed":{"type":"integer","format":"int32"},"inconclusive":{"type":"integer","format":"int32"}},"required":["passed","failed","skipped","errored","timed_out","flaky_passed","inconclusive"],"additionalProperties":false},"PrepareAttachmentUploadRequest":{"type":"object","description":"Step 1: ask where to PUT the file.","properties":{"file_name":{"type":"string","description":"The file's name (path parts are dropped).","maxLength":255,"examples":["trace.zip"]},"content_type":{"type":"string","description":"The file's media type; must be allowed (images, PDF, text, CSV, Office, plus application/zip and video/webm for automation artifacts).","examples":["application/zip"]},"size_bytes":{"type":"integer","format":"int64","description":"The file's size in bytes (the upload may not be larger).","examples":["184320"]},"project":{"type":"string","description":"prj_ id; required for an all-projects key, optional (must match) for a project key.","examples":["prj_8kd2hq0vxc1a"]}},"required":["file_name","content_type","size_bytes"],"additionalProperties":false},"PreparedAttachmentUpload":{"type":"object","description":"Where and how to PUT the file, then pass file_key to POST /api/v1/attachments.","properties":{"upload_url":{"type":"string","description":"Presigned URL; PUT the raw file bytes to it before it expires."},"method":{"type":"string","description":"HTTP method for upload_url.","examples":["PUT"]},"headers":{"type":"array","items":{"$ref":"#/components/schemas/UploadHeader"},"description":"Headers to send with the PUT, exactly as given (e.g. Content-Type)."},"file_key":{"type":"string","description":"The storage key; send it to POST /api/v1/attachments."},"expires_in_seconds":{"type":"integer","format":"int32","description":"Seconds until upload_url expires."}},"required":["upload_url","method","headers","file_key","expires_in_seconds"],"additionalProperties":false},"Project":{"type":"object","description":"A project the key can act on.","properties":{"public_id":{"type":"string","description":"Opaque public project id; pass it as project= with an all-projects key.","pattern":"^prj_[0-9a-hjkmnp-tv-z]{12}$","examples":["prj_8kd2hq0vxc1a"]},"name":{"type":"string","description":"Project name.","examples":["Checkout Web"]}},"required":["public_id","name"],"additionalProperties":false},"ProjectPage":{"type":"object","description":"A page of results with an opaque cursor to the next page.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"},"description":"The page's items."},"next_cursor":{"type":["string","null"],"description":"Opaque cursor for the next page; null on the last page.","examples":["djE6cHJqXzhrZDJocTB2eGMxYQ"]}},"required":["data","next_cursor"],"additionalProperties":false},"UploadHeader":{"type":"object","description":"One header of the presigned PUT.","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false}}}}