OpenAPI 3.1.02026-08-19170397506.7 KB

f66774ddecfc

responses

Retrieve a response

Retrieve a stored response by ID.

get/v1/responses/{response_id}

Path parameters

response_idstring required

ID of the response

ID of the response

Query parameters

include[]string[] nullable

Additional response fields to include; unsupported values are ignored

Additional response fields to include; unsupported values are ignored

streamboolean

Replay the stored response as server-sent events

Replay the stored response as server-sent events

starting_afterinteger nullable

Sequence number the caller already received; the replay resumes after it and always ends with the terminal event

Sequence number the caller already received; the replay resumes after it and always ends with the terminal event

Response

The stored response or a replayed semantic event stream

idstring required
object'response'
created_atnumber required
status'completed' | 'failed' | 'in_progress' | 'cancelled' | 'queued' | 'incomplete' required
completed_atnumber nullable
instructionsstring nullable
modelstring
parallel_tool_callsboolean
temperaturenumber nullable
top_pnumber nullable
backgroundboolean
max_output_tokensinteger nullable
max_tool_callsinteger nullable
previous_response_idstring nullable
service_tier'auto' | 'default' | 'flex' | 'scale' | 'priority'
truncation'auto' | 'disabled'
metadataobject nullable
safety_identifierstring nullable
prompt_cache_keystring nullable
userstring nullable
titlestring nullable

Example response

{
  "hosted_tools": [
    {
      "filters": {
        "all": [
          {
            "key": "price",
            "operator": "gt",
            "value": "100"
          },
          {
            "key": "color",
            "operator": "eq",
            "value": "red"
          }
        ],
        "any": [
          {
            "key": "price",
            "operator": "gt",
            "value": "100"
          },
          {
            "key": "color",
            "operator": "eq",
            "value": "red"
          }
        ],
        "none": [
          {
            "key": "price",
            "operator": "gt",
            "value": "100"
          },
          {
            "key": "color",
            "operator": "eq",
            "value": "red"
          }
        ]
      }
    }
  ]
}