Get a model response
GET https://api.fastapi.ai/v1/responses/{response_id}
Retrieves a model response with the given ID.
Path parameters
response_id string Required
The ID of the response to retrieve.
Query parameters
include array Optional
Additional fields to include in the response. See the include parameter for Response creation above for more information.
include_obfuscation boolean Optional
When true, stream obfuscation will be enabled. Stream obfuscation adds random characters to an obfuscation field on streaming delta events to normalize payload sizes as a mitigation to certain side-channel attacks. These obfuscation fields are included by default, but add a small amount of overhead to the data stream. You can set include_obfuscation to false to optimize for bandwidth if you trust the network links between your application and the OpenAI API.
starting_after integer Optional
The sequence number of the event after which to start streaming.
stream boolean Optional
If set to true, the model response data will be streamed to the client as it is generated using server-sent events.
Returns
The Response object matching the specified ID.
Returns the Response object.
Example
curl https://api.fastapi.ai/v1/responses/resp_123 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $FAST_API_KEY"