Agent Conversations
Get a voice agent conversation item
Retrieves a single item from the specified conversation by its id, including its transcript. An
input_audio/output_audio content part indicates that audio is available for the item; the canonical per-item
audio metadata is the /items/{item_id}/audio resource, and the bytes are streamed by
/items/{item_id}/audio/content. Returns 404 when the conversation or item was not persisted
(store = false).
Pfadparameter
agent_name
string
Erforderlich
The name of the agent.
conversation_id
string
Erforderlich
The id of the conversation that contains the item.
item_id
string
Erforderlich
The id of the conversation item to retrieve.
Abfrageparameter
api-version
string
Erforderlich
The API version to use for this operation.
Antworten
The request has succeeded.
Text
system_tool
VoiceAgentSystemToolItem
Service-generated system-tool intent, not a provider result. Clients cannot create it or complete it with function_call_output.
type
enum
Erforderlich
The output-item kind. Always system_tool.
id
string
The identifier of the generated item.
object
enum
The realtime item marker.
status
string | enum
Erforderlich
The generation status of a system-tool item. It does not indicate provider success.
enum
name
string | enum
Erforderlich
A service-managed voice-session control action. Known values are stable; additional values may be added over time.
enum
call_id
string
Erforderlich
The invocation identifier used for correlation and duplicate suppression.
arguments
string
Erforderlich
Original JSON-encoded intent: literals remain visible and references stay unexpanded. Excludes private values, resolved arguments and executor-only settings.
response_id
string
The id of the response that produced this item, when applicable.
message
system | user | assistant
system
OpenAI.RealtimeConversationItemMessageSystem
A system message in a Realtime conversation can be used to provide additional context or instructions to the model. This is similar but distinct from the instruction prompt provided at the start of a conversation, as system messages can be added at any point in the conversation. For major changes to the conversation's behavior, use instructions, but for smaller updates (e.g. "the user is now asking about a different topic"), use system messages.
id
string
The unique ID of the item. This may be provided by the client or generated by the server.
object
enum
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
type
enum
Erforderlich
The type of the item. Always message.
status
enum
The status of the item. Has no effect on the conversation.
role
enum
Erforderlich
The role of the message sender. Always system.
content
OpenAI.RealtimeConversationItemMessageSystemContent[]
Erforderlich
The content of the message.
response_id
string
The id of the response that produced this item, when applicable.
user
OpenAI.RealtimeConversationItemMessageUser
A user message item in a Realtime conversation.
id
string
The unique ID of the item. This may be provided by the client or generated by the server.
object
enum
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
type
enum
Erforderlich
The type of the item. Always message.
status
enum
The status of the item. Has no effect on the conversation.
role
enum
Erforderlich
The role of the message sender. Always user.
content
OpenAI.RealtimeConversationItemMessageUserContent[]
Erforderlich
The content of the message.
response_id
string
The id of the response that produced this item, when applicable.
assistant
OpenAI.RealtimeConversationItemMessageAssistant
An assistant message item in a Realtime conversation.
id
string
The unique ID of the item. This may be provided by the client or generated by the server.
object
enum
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
type
enum
Erforderlich
The type of the item. Always message.
status
enum
The status of the item. Has no effect on the conversation.
role
enum
Erforderlich
The role of the message sender. Always assistant.
content
OpenAI.RealtimeConversationItemMessageAssistantContent[]
Erforderlich
The content of the message.
response_id
string
The id of the response that produced this item, when applicable.
function_call
OpenAI.RealtimeConversationItemFunctionCall
A function call item in a Realtime conversation.
id
string
The unique ID of the item. This may be provided by the client or generated by the server.
object
enum
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
type
enum
Erforderlich
The type of the item. Always function_call.
status
enum
The status of the item. Has no effect on the conversation.
call_id
string
The ID of the function call.
name
string
Erforderlich
The name of the function being called.
arguments
string
Erforderlich
The arguments of the function call. This is a JSON-encoded string representing the arguments passed to the function, for example {"arg1": "value1", "arg2": 42}.
response_id
string
The id of the response that produced this item, when applicable.
function_call_output
OpenAI.RealtimeConversationItemFunctionCallOutput
A function call output item in a Realtime conversation.
id
string
The unique ID of the item. This may be provided by the client or generated by the server.
object
enum
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
type
enum
Erforderlich
The type of the item. Always function_call_output.
status
enum
The status of the item. Has no effect on the conversation.
call_id
string
Erforderlich
The ID of the function call this output is for.
output
string
Erforderlich
The output of the function call, this is free text and can contain any information or simply be empty.
response_id
string
The id of the response that produced this item, when applicable.
name
string
The name of the function that was called. A Foundry extension: OpenAI's function_call_output does not carry the function name, only call_id.
mcp_approval_response
OpenAI.RealtimeMCPApprovalResponse
A Realtime item responding to an MCP approval request.
type
enum
Erforderlich
The type of the item. Always mcp_approval_response.
id
string
Erforderlich
The unique ID of the approval response.
approval_request_id
string
Erforderlich
The ID of the approval request being answered.
approve
boolean
Erforderlich
Whether the request was approved.
response_id
string
The id of the response that produced this item, when applicable.
mcp_list_tools
OpenAI.RealtimeMCPListTools
A Realtime item listing tools available on an MCP server.
type
enum
Erforderlich
The type of the item. Always mcp_list_tools.
id
string
The unique ID of the list.
server_label
string
Erforderlich
The label of the MCP server.
tools
OpenAI.MCPListToolsTool[]
Erforderlich
The tools available on the server.
response_id
string
The id of the response that produced this item, when applicable.
mcp_call
OpenAI.RealtimeMCPToolCall
A Realtime item representing an invocation of a tool on an MCP server.
type
enum
Erforderlich
The type of the item. Always mcp_call.
id
string
Erforderlich
The unique ID of the tool call.
server_label
string
Erforderlich
The label of the MCP server running the tool.
name
string
Erforderlich
The name of the tool that was run.
arguments
string
Erforderlich
A JSON string of the arguments passed to the tool.
error
protocol_error | tool_execution_error | http_error
protocol_error
OpenAI.RealtimeMCPProtocolError
type
enum
Erforderlich
tool_execution_error
OpenAI.RealtimeMCPToolExecutionError
type
enum
Erforderlich
http_error
OpenAI.RealtimeMCPHTTPError
type
enum
Erforderlich
response_id
string
The id of the response that produced this item, when applicable.
mcp_approval_request
OpenAI.RealtimeMCPApprovalRequest
A Realtime item requesting human approval of a tool invocation.
type
enum
Erforderlich
The type of the item. Always mcp_approval_request.
id
string
Erforderlich
The unique ID of the approval request.
server_label
string
Erforderlich
The label of the MCP server making the request.
name
string
Erforderlich
The name of the tool to run.
arguments
string
Erforderlich
A JSON string of arguments for the tool.
response_id
string
The id of the response that produced this item, when applicable.
Anfordern
GET /agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id} HTTP/1.1
Antwort
Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json