VoiceAgentsTelephonyOperations interface

Operations for managing voice agent telephony.

Properties

cancelCallJob

Requests cancellation of a durable outbound call job. A connected call is allowed to finish.

createBinding

Creates a telephony binding for the voice agent named in the path.

createCallJob

Creates one durable outbound CallJob. Each attempt pins the Agent endpoint's execution version for validation and its voice session.

deleteBinding

Deletes a telephony binding owned by the voice agent named in the path.

deleteCallJob

Deletes a terminal, reconciled job (otherwise 409), without cancelling calls or removing Campaign outcomes/call history. Later GET returns 404; repeated DELETE returns 204. Deleting a SIP call job requires the VoiceAgents=V1Preview opt-in.

endCall

Ends an active inbound call owned by the voice agent named in the path.

getBinding

Retrieves a telephony binding owned by the voice agent named in the path.

getCall

Retrieves a durable inbound call record owned by the voice agent named in the path.

getCallJob

Retrieves a durable direct or campaign-created outbound call job.

getTransferTargets

Returns all transfer targets configured for the voice agent named in the path.

listBindings

Returns the telephony bindings owned by the voice agent named in the path.

listCallJobs

Lists current direct/Campaign jobs, excluding deleted or superseded rounds. Pages are live. Campaign cursors survive boundary deletion/cancel, not replacement/name reuse (400 invalid_cursor).

listCalls

Returns the durable inbound call history for the voice agent named in the path.

replaceTransferTargets

Replaces all transfer targets configured for the voice agent named in the path.

transferCall

Transfers an active inbound call to a configured target for the voice agent named in the path.

updateBinding

Updates a telephony binding owned by the voice agent named in the path.

Property Details

cancelCallJob

Requests cancellation of a durable outbound call job. A connected call is allowed to finish.

cancelCallJob: (agentName: string, callJobId: string, ifMatch: string, options?: VoiceAgentsTelephonyCancelCallJobOptionalParams) => Promise<TelephonyCallJob>

Property Value

(agentName: string, callJobId: string, ifMatch: string, options?: VoiceAgentsTelephonyCancelCallJobOptionalParams) => Promise<TelephonyCallJob>

createBinding

Creates a telephony binding for the voice agent named in the path.

createBinding: (agentName: string, binding: TelephonyBindingCreateUnion, options?: VoiceAgentsTelephonyCreateBindingOptionalParams) => Promise<TelephonyBindingUnion>

Property Value

(agentName: string, binding: TelephonyBindingCreateUnion, options?: VoiceAgentsTelephonyCreateBindingOptionalParams) => Promise<TelephonyBindingUnion>

createCallJob

Creates one durable outbound CallJob. Each attempt pins the Agent endpoint's execution version for validation and its voice session.

createCallJob: (agentName: string, idempotencyKey: string, job: TelephonyCallJobCreate, options?: VoiceAgentsTelephonyCreateCallJobOptionalParams) => Promise<TelephonyCallJob>

Property Value

(agentName: string, idempotencyKey: string, job: TelephonyCallJobCreate, options?: VoiceAgentsTelephonyCreateCallJobOptionalParams) => Promise<TelephonyCallJob>

deleteBinding

Deletes a telephony binding owned by the voice agent named in the path.

deleteBinding: (agentName: string, bindingId: string, ifMatch: string, options?: VoiceAgentsTelephonyDeleteBindingOptionalParams) => Promise<void>

Property Value

(agentName: string, bindingId: string, ifMatch: string, options?: VoiceAgentsTelephonyDeleteBindingOptionalParams) => Promise<void>

deleteCallJob

Deletes a terminal, reconciled job (otherwise 409), without cancelling calls or removing Campaign outcomes/call history. Later GET returns 404; repeated DELETE returns 204. Deleting a SIP call job requires the VoiceAgents=V1Preview opt-in.

deleteCallJob: (agentName: string, callJobId: string, options?: VoiceAgentsTelephonyDeleteCallJobOptionalParams) => Promise<void>

Property Value

(agentName: string, callJobId: string, options?: VoiceAgentsTelephonyDeleteCallJobOptionalParams) => Promise<void>

endCall

Ends an active inbound call owned by the voice agent named in the path.

endCall: (agentName: string, callId: string, options?: VoiceAgentsTelephonyEndCallOptionalParams) => Promise<TelephonyCallRecord>

Property Value

(agentName: string, callId: string, options?: VoiceAgentsTelephonyEndCallOptionalParams) => Promise<TelephonyCallRecord>

getBinding

Retrieves a telephony binding owned by the voice agent named in the path.

getBinding: (agentName: string, bindingId: string, options?: VoiceAgentsTelephonyGetBindingOptionalParams) => Promise<TelephonyBindingUnion>

Property Value

(agentName: string, bindingId: string, options?: VoiceAgentsTelephonyGetBindingOptionalParams) => Promise<TelephonyBindingUnion>

getCall

Retrieves a durable inbound call record owned by the voice agent named in the path.

getCall: (agentName: string, callId: string, options?: VoiceAgentsTelephonyGetCallOptionalParams) => Promise<TelephonyCallRecord>

Property Value

(agentName: string, callId: string, options?: VoiceAgentsTelephonyGetCallOptionalParams) => Promise<TelephonyCallRecord>

getCallJob

Retrieves a durable direct or campaign-created outbound call job.

getCallJob: (agentName: string, callJobId: string, options?: VoiceAgentsTelephonyGetCallJobOptionalParams) => Promise<TelephonyCallJob>

Property Value

(agentName: string, callJobId: string, options?: VoiceAgentsTelephonyGetCallJobOptionalParams) => Promise<TelephonyCallJob>

getTransferTargets

Returns all transfer targets configured for the voice agent named in the path.

getTransferTargets: (agentName: string, options?: VoiceAgentsTelephonyGetTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>

Property Value

(agentName: string, options?: VoiceAgentsTelephonyGetTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>

listBindings

Returns the telephony bindings owned by the voice agent named in the path.

listBindings: (agentName: string, options?: VoiceAgentsTelephonyListBindingsOptionalParams) => PagedAsyncIterableIterator<TelephonyBindingListItemUnion, TelephonyBindingListItemUnion[], PageSettings>

Property Value

(agentName: string, options?: VoiceAgentsTelephonyListBindingsOptionalParams) => PagedAsyncIterableIterator<TelephonyBindingListItemUnion, TelephonyBindingListItemUnion[], PageSettings>

listCallJobs

Lists current direct/Campaign jobs, excluding deleted or superseded rounds. Pages are live. Campaign cursors survive boundary deletion/cancel, not replacement/name reuse (400 invalid_cursor).

listCallJobs: (agentName: string, options?: VoiceAgentsTelephonyListCallJobsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallJob, TelephonyCallJob[], PageSettings>

Property Value

(agentName: string, options?: VoiceAgentsTelephonyListCallJobsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallJob, TelephonyCallJob[], PageSettings>

listCalls

Returns the durable inbound call history for the voice agent named in the path.

listCalls: (agentName: string, options?: VoiceAgentsTelephonyListCallsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallSummary, TelephonyCallSummary[], PageSettings>

Property Value

(agentName: string, options?: VoiceAgentsTelephonyListCallsOptionalParams) => PagedAsyncIterableIterator<TelephonyCallSummary, TelephonyCallSummary[], PageSettings>

replaceTransferTargets

Replaces all transfer targets configured for the voice agent named in the path.

replaceTransferTargets: (agentName: string, ifMatch: string, transferTargets: TelephonyTransferTarget[], options?: VoiceAgentsTelephonyReplaceTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>

Property Value

(agentName: string, ifMatch: string, transferTargets: TelephonyTransferTarget[], options?: VoiceAgentsTelephonyReplaceTransferTargetsOptionalParams) => Promise<TelephonyTransferTargets>

transferCall

Transfers an active inbound call to a configured target for the voice agent named in the path.

transferCall: (agentName: string, callId: string, target: string, options?: VoiceAgentsTelephonyTransferCallOptionalParams) => Promise<TelephonyCallRecord>

Property Value

(agentName: string, callId: string, target: string, options?: VoiceAgentsTelephonyTransferCallOptionalParams) => Promise<TelephonyCallRecord>

updateBinding

Updates a telephony binding owned by the voice agent named in the path.

updateBinding: (agentName: string, bindingId: string, ifMatch: string, body: UpdateTelephonyBindingRequest, options?: VoiceAgentsTelephonyUpdateBindingOptionalParams) => Promise<TelephonyBindingUnion>

Property Value

(agentName: string, bindingId: string, ifMatch: string, body: UpdateTelephonyBindingRequest, options?: VoiceAgentsTelephonyUpdateBindingOptionalParams) => Promise<TelephonyBindingUnion>