API Reference
Get customer-facing request state
GET
Returns the authorised state of an inference execution. The id is the gateway execution id from X-Request-Id or the completion id. Internal state-machine names are never exposed.
bearerAuthheader
AuthorizationBearer <ntw_<43 base64url characters>>Project API key. Format ntw_ followed by 43 base64url characters. Keys carry operation scopes and a model allowlist; they are not user session tokens.
id*stringGateway execution id.
Match
^[a-f0-9-]{36}$Request state
application/json- response
id*stringFormat
uuidstatus*stringValue in
"queued""processing""completed""failed""cancelled""requires_review"status_detail*stringCustomer-facing explanation; internal state names are not exposed.
input_tokens?integer|nulloutput_tokens?integer|nullfinish_reason?string|nulldispatched_at?|Format
date-timefirst_token_at?|Format
date-timecompleted_at?|Format
date-timecreated_at*stringFormat
date-timecurl -X GET 'https://api.ninetwos.com/v1/requests/string' \ -H 'Authorization: Bearer 'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "queued", "status_detail": "string", "input_tokens": 0, "output_tokens": 0, "finish_reason": "string", "dispatched_at": "2019-08-24T14:15:22Z", "first_token_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}