trickroom / Docs
Sign in
API reference/observability

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=`.

GET/v1/failures

Authorization

Authorizationstringrequired

Bearer tak_… — an application API key. Keep it on your backend; all resources are scoped to that application.

Create an application key →

Query parameters

application_idstring

Optional with an application key, which always pins the scope. A different application returns 403.

Min length: 1

rangestring

The window back from `to`, instead of `from`. Defaults to 24h.

Allowed: "1h""24h""7d""30d"

fromstring

Start of the window. Defaults to 24 hours before `to`. Windows span at most 31 days, within the 30-day request log.

Format: date-time

tostring

End of the window, not in the future. Defaults to now.

Format: date-time

Response

200Break down why jobs ended without completing
X-Request-Idstring

Server-generated request identifier for logs and support.

application/json

application_idstring | nullrequired
fromstringrequired
tostringrequired
finishedintegerrequired

Minimum: -9007199254740991 · Maximum: 9007199254740991

failedintegerrequired

Minimum: -9007199254740991 · Maximum: 9007199254740991

cancelledintegerrequired

Minimum: -9007199254740991 · Maximum: 9007199254740991

classesarray<object>required
Item fields
classstringrequired

Allowed: "cancelled""timeout""billing""approval""agent""model""tool""computer""infrastructure""unknown"

countintegerrequired

Minimum: -9007199254740991 · Maximum: 9007199254740991

messagesarray<object>required
Item fields
messagestringrequired
countintegerrequired

Minimum: -9007199254740991 · Maximum: 9007199254740991

latest_job_idstringrequired
latest_atstringrequired

Additional 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-Idstring

Server-generated request identifier for logs and support.

application/json

errorobjectrequired
Object fields
codestringrequired
messagestringrequired
request_idstringrequired

Additional 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-Idstring

Server-generated request identifier for logs and support.

application/json

errorobjectrequired
Object fields
codestringrequired
messagestringrequired
request_idstringrequired

Additional keys: any