Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
microsoft-foundry.rest.security.o-auth2-auth

Agent Conversations

Get a voice agent conversation response

GET /agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses/{response_id}

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

Content-Type: application/json
id string

The unique ID of the response, will look like resp_1234.

object enum

The object type, must be realtime.response.

realtime.response
status enum

The final status of the response (completed, cancelled, failed, or incomplete, in_progress).

completedcancelledfailedincompletein_progress
status_details OpenAI.RealtimeResponseStatusDetails
type enum
completedcancelledfailedincomplete
reason enum
turn_detectedclient_cancelledmax_output_tokenscontent_filter
error OpenAI.RealtimeResponseStatusDetailsError
type string
code string
message string
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.

[key: string] string
usage OpenAI.RealtimeResponseUsage
total_tokens integer
input_tokens integer
output_tokens integer
input_token_details OpenAI.RealtimeResponseUsageInputTokenDetails
cached_tokens integer
text_tokens integer
image_tokens integer
audio_tokens integer
cached_tokens_details OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails
text_tokens integer
image_tokens integer
audio_tokens integer
output_token_details OpenAI.RealtimeResponseUsageOutputTokenDetails
text_tokens integer
audio_tokens integer
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.

One of the following:
integer
enum
inf
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.

Any of the following:
string
enum
openaiazure-standardazure-customazure-personalavatar-voice-syncazure-realtime-native
voice_locale string

The BCP-47 locale of the voice used for the response's audio output.

format audio/pcm | audio/pcmu | audio/pcma
One of the following:
audio/pcm OpenAI.RealtimeAudioFormatsAudioPcm
type enum required
audio/pcm
rate enum
24000
audio/pcmu OpenAI.RealtimeAudioFormatsAudioPcmu
type enum required
audio/pcmu
audio/pcma OpenAI.RealtimeAudioFormatsAudioPcma
type enum required
audio/pcma
temperature number

The sampling temperature used for the response.

created_at integer
completed_at integer

Client error

Body

Content-Type: application/json
error OpenAI.Error required
code string | null required
message string required
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Any of the following:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string required

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Server error

Body

Content-Type: application/json
error OpenAI.Error required
code string | null required
message string required
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Any of the following:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string required

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

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
en-us
Your Privacy Choices
  • AI Disclaimer
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Consumer Health Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2026