Agent Conversations
Get a voice agent conversation response
Retrieves a single response from the specified conversation by its id, including its output items,
usage, and status. Returns 404 when the conversation or response was not persisted (store = false).
Path parameters
agent_name
string
required
The name of the agent.
conversation_id
string
required
The id of the conversation that contains the response.
response_id
string
required
The id of the response to retrieve.
Query parameters
api-version
string
required
The API version to use for this operation.
Responses
The request has succeeded.
Body
id
string
The unique ID of the response, will look like resp_1234.
object
enum
The object type, must be realtime.response.
status
enum
The final status of the response (completed, cancelled, failed, or incomplete, in_progress).
status_details
OpenAI.RealtimeResponseStatusDetails
type
enum
reason
enum
error
OpenAI.RealtimeResponseStatusDetailsError
output
OpenAI.RealtimeConversationItem[]
The list of output items generated by the response.
metadata
OpenAI.Metadata | null
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
usage
OpenAI.RealtimeResponseUsage
input_token_details
OpenAI.RealtimeResponseUsageInputTokenDetails
cached_tokens_details
OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails
output_token_details
OpenAI.RealtimeResponseUsageOutputTokenDetails
conversation_id
string
Which conversation the response is added to, determined by the conversation field in the response.create event. If auto, the response will be added to the default conversation and the value of conversation_id will be an id like conv_1234. If none, the response will not be added to any conversation and the value of conversation_id will be null. If responses are being triggered automatically by VAD the response will be added to the default conversation
output_modalities
enum[]
The set of modalities the model used to respond, currently the only possible values are [\"audio\"], [\"text\"]. Audio output always include a text transcript. Setting the output to mode text will disable audio output from the model.
max_output_tokens
OpenAI.integer | enum
Maximum number of output tokens for a single assistant response, inclusive of tool calls, that was used in this response.
enum
audio
VoiceResponseAudio
Audio configuration for a response. Follows the OpenAI Realtime GA audio object shape.
output
VoiceResponseAudioOutput
The flat response audio-output projection, with optional voice, voice_type, voice_locale, and format fields.
voice
string
The voice name used for the response's audio output.
voice_type
string | enum
The voice implementation. Additional values may be added over time.
enum
voice_locale
string
The BCP-47 locale of the voice used for the response's audio output.
format
audio/pcm | audio/pcmu | audio/pcma
audio/pcm
OpenAI.RealtimeAudioFormatsAudioPcm
type
enum
required
rate
enum
audio/pcmu
OpenAI.RealtimeAudioFormatsAudioPcmu
type
enum
required
audio/pcma
OpenAI.RealtimeAudioFormatsAudioPcma
type
enum
required
temperature
number
The sampling temperature used for the response.
Request
GET /agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses/{response_id} HTTP/1.1
Response
Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json