Skip to content

GET /v1/agent/requests/{support_reference}

Bearer self-service. Resolve one of your own requests by the UUID in X-Pzero-Support-Reference from the inference response.

X-Pzero-Request-Id is on every inference response. X-Pzero-Support-Reference appears only where a lookupable attempt row exists (not on video readiness polls, and not on failures before the key resolves). Buffered responses also carry cost headers; streams emit cost as a pzero.cost frame (see POST /v1/chat/completions).

Request

bash
curl "https://api.pzero.studio/v1/agent/requests/<support_reference>" \
  -H "Authorization: Bearer pzero_..."

Response

FieldMeaning
supportReferenceSame UUID as X-Pzero-Support-Reference
requestIdSame UUID as X-Pzero-Request-Id
occurredAtWhen the attempt was recorded (RFC3339)
modelRequested model id
modalitytext, image, or video
statussuccess, no_capacity, insufficient_balance, provider_error, or system_error
httpStatusHTTP status of the inference call
errorCodeStructured error code when present
errorMessageHuman-readable error when present
costUsdcSettled cost; absent when nothing cleared
clearingPriceCentsAsk cleared at; absent when nothing cleared
diemClearedDIEM cleared
totalMs / inferenceMsTimings when recorded

Primary use: recover streamed completion cost after the fact.

Unknown UUID, malformed UUID, or a reference owned by another account → 404 (foreign refs look the same as missing). Invalid UUID format → 400.

Next

PZERO Your AI Studio. Top up. Do your thing. Repeat.