Skip to main content
GET
Get approval status and callback delivery

Authorizations

X-Agent-Id
string
header
required

The agent's UUID, from the agent's page in the web dashboard or GET /v1/agents.

X-Api-Key
string
header
required

A workspace API key (starts with hitl_). Shown once when an owner or admin creates it.

Path Parameters

requestId
string
required

The request_id returned when you created the approval (yours, or the one the server generated).

Required string length: 1 - 120

Response

Status and delivery state

request_id
string
required
status
enum<string>
required

pending: waiting. selected_option: someone picked an option. custom_instruction: someone wrote an answer. expired: nobody answered in time.

Available options:
pending,
selected_option,
custom_instruction,
expired
expires_at
string<date-time>
required
result_delivery_status
enum<string>
required

delivered: your callback URL returned 2xx. failed: every attempt failed. pending: not delivered yet, or no callback was set.

Available options:
pending,
delivered,
failed
result_delivery_error
string | null
required

The last delivery error, such as an HTTP status and the start of the response body.