Retrieve a response
A response this key created, whatever its state. A failure is in the object (status, error), never in the HTTP status.
output is empty and sources is [] until the response is completed; there is no partial text. usage appears once it has ended.
bearerAuthAuthorizationBearer <token>response_id*stringThe id of a response of this key.
uuidThe response, as it is now.
application/json- response
A response, in OpenAI's Responses shape plus depth, sources and usage.cost.
Fields OpenAI defines and this API does not use keep their defaults.
completed_at*|Unix seconds at which the response ended, whatever its status.
created_at*integerUnix seconds.
depth*|Echoed from the request; null for a response made before depth existed.
error*|nullid*stringuuidincomplete_details*|nullinstructions*string|nullmetadata*model*stringThe label the request named, echoed.
object*stringoutput*array<>Empty until the response is completed: there is no partial text.
parallel_tool_calls*booleanprevious_response_id*string|nullreasoning*sources*array<>What the answer cites, numbered by first citation. Empty until the response is completed.
status*string"queued""in_progress""completed""failed""cancelled"store*booleantemperature*numbertext*tool_choice*stringtools*array<>top_p*numbertruncation*string"auto""disabled"usage*|Present once the response has ended.
curl -X GET 'https://api.azta.ai/v1/responses/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "completed_at": 0, "created_at": 0, "depth": "standard", "error": { "code": "server_error", "message": "string" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "incomplete_details": { "property1": "string", "property2": "string" }, "instructions": "string", "metadata": { "property1": "string", "property2": "string" }, "model": "string", "object": "response", "output": [ { "content": [ { "annotations": [ { "end_index": 0, "source_number": 1, "start_index": 0, "title": "string", "type": "url_citation", "url": "string" } ], "text": "string", "type": "output_text" } ], "id": "string", "role": "assistant", "status": "completed", "type": "message" } ], "parallel_tool_calls": true, "previous_response_id": "string", "reasoning": { "effort": "string", "summary": "string" }, "sources": [ { "act": { "identifier": "string", "short_title": "string", "title": "string" }, "country": "string", "excerpt": "string", "kind": "provision", "number": 1, "section": "string", "title": "string", "unit_id": "string", "url": "http://example.com", "url_kind": "official", "version": { "effective_from": "2019-08-24", "effective_to": "2019-08-24", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_current": true } } ], "status": "queued", "store": true, "temperature": 0, "text": { "format": { "type": "text" } }, "tool_choice": "string", "tools": [ {} ], "top_p": 0, "truncation": "auto", "usage": { "cost": { "amount": "string", "currency": "EUR" }, "input_tokens": 0, "input_tokens_details": { "cached_tokens": 0 }, "output_tokens": 0, "output_tokens_details": { "reasoning_tokens": 0 }, "total_tokens": 0 }}Fetch provisions POST
Read provisions by `unit_id`, from a source record or a search hit: at most 20 per call. A `unit_id` names a provision, not a version, so it keeps working after the law is amended. `as_of` picks the version in force that day, today in UTC without it; each record echoes the date it used. `text` is cut to 20,000 characters. An id that was not found, or that this API does not serve (`us`, an add-on corpus, a country whose ids are not yet stable), is in `not_found` and free. Charged per provision returned; a call that returns none is not charged. `X-Jurisdiction` is checked as for a search and narrows nothing.
response.cancelled Webhook
A `background: true` response was cancelled. The event names the response and carries no answer: fetch it with `getResponse`.