Skip to Content
NineTwo's
API Reference

Get customer-facing request state

GET
/v1/requests/{id}

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.

Authorization

bearerAuth
headerAuthorizationBearer <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.

Path Parameters

id*string

Gateway execution id.

Match^[a-f0-9-]{36}$

Response Body

Request state

application/json
  1. response
id*string
Formatuuid
status*string
Value in"queued""processing""completed""failed""cancelled""requires_review"
status_detail*string

Customer-facing explanation; internal state names are not exposed.

input_tokens?integer|null
output_tokens?integer|null
finish_reason?string|null
dispatched_at?|
Formatdate-time
first_token_at?|
Formatdate-time
completed_at?|
Formatdate-time
created_at*string
Formatdate-time
Example Request
curl -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"}