Agent Telephony
End an active agent telephony call
Ends an active inbound call owned by the voice agent named in the path. Ending a SIP call requires the VoiceAgents=V1Preview opt-in.
Headerparameter
Foundry-Features
enum
A feature flag opt-in required when using preview operations or modifying persisted preview resources.
Pfadparameter
agent_name
string
Erforderlich
The name of the voice agent that owns the active call.
call_id
string
Erforderlich
The service-generated call identifier.
Abfrageparameter
api-version
string
Erforderlich
The API version to use for this operation.
Antworten
The request has succeeded.
Text
id
string
Erforderlich
A service-generated telephony call identifier.
provider
string | enum
Erforderlich
A telephony provider supported by an agent binding. Known values are stable; additional values may be added over time.
enum
provider_call_id
string
The provider-assigned call identifier, when available.
caller_number
string
The caller's phone number, when supplied by the provider.
provider_number
string
The Teams Phone extensibility or Twilio number that received the call.
status
string | enum
Erforderlich
The lifecycle status of an inbound telephony call.
enum
phase
string | enum
Erforderlich
The provider-neutral phase reached by an inbound telephony call.
enum
duration_ms
integer
A duration encoded as an integer number of milliseconds.
end_reason
string | enum
Known service-generated reasons that one telephony call ended, rather than reasons for an overall outbound call job. Additional string codes may be returned.
enum
provider_status_code
integer
The provider status code associated with the terminal result.
provider_sub_code
integer
The provider subcode associated with the terminal result.
provider_message
string
The provider message associated with the terminal result.
timing
TelephonyCallTiming
Erforderlich
Detailed provider-neutral timing for an inbound telephony call.
duration_basis
string | enum
The timestamp used as the basis for call duration.
enum
timestamp_source
string | enum
Erforderlich
The source of a telephony lifecycle timestamp.
enum
trace
TelephonyCallTrace
Correlation from a durable telephony call record to its customer-facing Foundry trace.
status
string | enum
Erforderlich
The availability status of a customer-facing telephony call trace.
enum
trace_id
string
The W3C trace identifier, when a trace was recorded.
root_span_id
string
The root span identifier, when a trace was recorded.
conversation_id
string
The voice-agent conversation identifier, when a conversation was created.
mode
string | enum
The mode used to expose a telephony call as a customer-facing Foundry trace.
enum
events
TelephonyCallLifecycleEvent[]
Erforderlich
The lifecycle timeline.
events_truncated
boolean
Erforderlich
Whether older lifecycle events were omitted from the timeline.
Anfordern
POST /agents/{agent_name}/telephony/calls/{call_id}:end HTTP/1.1
Antwort
Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json