Agent Telephony
Cancel an outbound telephony call job
Requests cancellation of a durable outbound call job. A connected call is allowed to finish.
Header parameters
Foundry-Features
enum
A feature flag opt-in required when using preview operations or modifying persisted preview resources.
If-Match
string
required
The entity tag returned by the latest read. The request fails if the resource changed since that read.
Path parameters
Query parameters
api-version
string
required
The API version to use for this operation.
Responses
The request has succeeded.
Headers
ETag
string
required
The ETag (or entity tag) HTTP response header is an identifier for a specific version of a resource. It lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content was not changed. It is a string of ASCII characters placed between double quotes, like "675af34563dc-tr34".
Body
destination
TelephonyOutboundDestination
required
The destination of an outbound call.
type
string | enum
required
The type of destination for an outbound call.
enum
value
string
required
The destination E.164 phone number.
connection_name
string
required
The Foundry connection name in the current project used to originate the call. Its category selects Twilio or Azure Communication Services / Teams Phone Extension. No inbound telephony binding is required.
source
string
required
An outbound caller identity: an E.164 phone number or a non-empty Teams Resource Account UUID. The connection category determines which form is accepted.
purpose
string
An optional customer-declared purpose for placing the call.
structured_inputs
object
Structured input values available to the agent and greeting for this call. Agent-declared inputs are validated against their schemas; omitted optional inputs may use their Agent-defined default values, while omitted required inputs are rejected. Additional inputs remain available as dynamic template variables.
schedule
TelephonyCallJobSchedule
The optional execution window for a direct outbound call.
id
string
required
A service-generated durable outbound call-job identifier.
object
enum
required
The object type. Always telephony.call_job.
agent_name
string
required
The name of the voice agent used at execution time.
status
string | enum
required
The lifecycle status of a durable outbound call job.
enum
cancellation
TelephonyCallJobCancellation
A cancellation request recorded for an outbound call job.
requested_by
string
required
The authenticated principal that requested cancellation.
mode
string
required
The cancellation mode applied to the call job.
revision
integer
required
The call-job revision at which cancellation was recorded.
retry_policy
fixed_interval
required
The retry policy for one durable outbound call intent. max_attempts includes the first attempt. Strategy-specific settings are defined by the derived policy.
fixed_interval
TelephonyOutboundFixedIntervalRetryPolicy
The frozen fixed-interval retry policy returned for an outbound call or campaign.
type
enum
required
The fixed-interval retry strategy.
interval
integer
required
A duration encoded as an integer number of seconds.
attempt_count
integer
required
The number of provider attempts created so far.
terminal_reason
string | enum
Known terminal reasons for an overall outbound call job, which can span multiple provider attempts. These are distinct from individual call lifecycle reasons. Additional string codes may be returned.
enum
revision
integer
required
The monotonically increasing optimistic-concurrency revision.
Request
POST /agents/{agent_name}/telephony/call_jobs/{call_job_id}:cancel HTTP/1.1
Response
Status: 200
Content-Type: application/json
Status: 202
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json