Break down why jobs ended without completing
Jobs that ended in the window by failure class: timeout, billing, approval, agent, model, tool, computer, infrastructure or unknown (cancelled jobs are counted apart). Each class lists its most common messages with a count and the latest example job. Filter jobs by class with `GET /jobs?failure_class=`.
/v1/failuresQuery parameters
application_idstringOptional with an application key, which always pins the scope. A different application returns 403.
Min length: 1
rangestringThe window back from `to`, instead of `from`. Defaults to 24h.
Allowed: "1h""24h""7d""30d"
fromstringStart of the window. Defaults to 24 hours before `to`. Windows span at most 31 days, within the 30-day request log.
Format: date-time
tostringEnd of the window, not in the future. Defaults to now.
Format: date-time
Response
200Break down why jobs ended without completing
X-Request-IdstringServer-generated request identifier for logs and support.
application/json
application_idstring | nullrequiredfromstringrequiredtostringrequiredfinishedintegerrequiredMinimum: -9007199254740991 · Maximum: 9007199254740991
failedintegerrequiredMinimum: -9007199254740991 · Maximum: 9007199254740991
cancelledintegerrequiredMinimum: -9007199254740991 · Maximum: 9007199254740991
classesarray<object>requiredItem fields
classstringrequiredAllowed: "cancelled""timeout""billing""approval""agent""model""tool""computer""infrastructure""unknown"
countintegerrequiredMinimum: -9007199254740991 · Maximum: 9007199254740991
messagesarray<object>requiredItem fields
messagestringrequiredcountintegerrequiredMinimum: -9007199254740991 · Maximum: 9007199254740991
latest_job_idstringrequiredlatest_atstringrequiredAdditional keys: any
Additional keys: any
4XX400 invalid input; 401 missing/revoked credentials; 403 disallowed operation/application; 404 missing or inaccessible resource; 409 conflicting submission/version/state; 413 body too large; 415 unsupported content type. Inspect error.code, not message text.
X-Request-IdstringServer-generated request identifier for logs and support.
application/json
errorobjectrequiredObject fields
codestringrequiredmessagestringrequiredrequest_idstringrequiredAdditional keys: any
5XX500 unexpected failure or 503 unavailable dependency. A failed response does not prove that a submission was not committed. Retry job/flow admission with the same key and body.
X-Request-IdstringServer-generated request identifier for logs and support.
application/json
errorobjectrequiredObject fields
codestringrequiredmessagestringrequiredrequest_idstringrequiredAdditional keys: any