- Bucket
- IP Addresses
- IP Ranges
- SIM Cards
- Purchase eSIMs
- Register SIM cards
- List SIM card data usage notifications
- Create a new SIM card data usage notification
- Delete SIM card data usage notifications
- Get a single SIM card data usage notification
- Updates information for a SIM Card Data Usage Notification
- Get all SIM cards
- Request bulk setting SIM card public IPs.
- Validate SIM cards registration codes
- Deletes a SIM card
- Get SIM card
- Update a SIM card
- Request a SIM card disable
- Request a SIM card enable
- Request removing a SIM card public IP
- Request setting a SIM card public IP
- Request setting a SIM card to standby
- Get activation code for an eSIM
- Get SIM card device details
- Get SIM card public IP definition
- List wireless connectivity logs
- Addresses
- Advanced Number Orders
- Assistants
- Audio
- Chat
- Clusters
- Conversations
- Embeddings
- Fine Tuning
- Audit Logs
- Authentication Providers
- Phone Number Search
- Billing
- Billing Groups
- Brands
- SIM Card Actions
- Bundles
- User Bundles
- Call Control Applications
- Debugging
- Call Commands
- DialPOST
- Start AI AssistantPOST
- Stop AI AssistantPOST
- Answer callPOST
- Bridge callsPOST
- Update client statePUT
- Enqueue callPOST
- Forking startPOST
- Forking stopPOST
- GatherPOST
- Gather stopPOST
- Gather using AIPOST
- Gather using audioPOST
- Gather using speakPOST
- Hangup callPOST
- Remove call from a queuePOST
- Play audio URLPOST
- Stop audio playbackPOST
- Record pausePOST
- Record resumePOST
- Recording startPOST
- Recording stopPOST
- SIP Refer a callPOST
- Reject a callPOST
- Send DTMFPOST
- Send SIP infoPOST
- SIPREC startPOST
- SIPREC stopPOST
- Speak textPOST
- Streaming startPOST
- Streaming stopPOST
- Noise Suppression Start (BETA)POST
- Noise Suppression Stop (BETA)POST
- Transcription startPOST
- Transcription stopPOST
- Transfer callPOST
- Call Information
- Campaign
- Voice Channels
- Phone Number Orders
- Retrieve all comments
- Create a comment
- Retrieve a comment
- Mark a comment as read
- Retrieve a list of phone numbers associated to orders
- Retrieve a single phone number within a number order.
- Update requirements for a single phone number within a number order.
- List number orders
- Create a number order
- Retrieve a number order
- Update a number order
- List sub number orders
- Retrieve a sub number order
- Update a sub number order's requirements
- Cancel a sub number order
- Create a sub number orders report
- Retrieve a sub number orders report
- Download a sub number orders report
- Conference Commands
- List conferences
- Create conference
- List conference participants
- Retrieve a conference
- Hold conference participants
- Join a conference
- Leave a conference
- Mute conference participants
- Play audio to conference participants
- Conference recording pause
- Conference recording resume
- Conference recording start
- Conference recording stop
- Speak text to conference participants
- Stop audio being played on the conference
- Unhold conference participants
- Unmute conference participants
- Update conference participant
- Connections
- Country Coverage
- Credential Connections
- Call Recordings
- Delete a stored credential
- Retrieve a stored credential
- Create a custom storage credential
- Update a stored credential
- List all recording transcriptions
- Delete a recording transcription
- Retrieve a recording transcription
- List all call recordings
- Delete a list of call recordings
- Delete a call recording
- Retrieve a call recording
- Customer Service Record
- Detail Records
- Dialogflow Integration
- Documents
- Dynamic Emergency Addresses
- Dynamic Emergency Endpoints
- Enum
- External Connections
- List all External Connections
- Creates an External Connection
- List all log messages
- Dismiss a log message
- Retrieve a log message
- Deletes an External Connection
- Retrieve an External Connection
- Update an External Connection
- List all civic addresses and locations
- Retrieve a Civic Address
- Update a location's static emergency address
- List all phone numbers
- Retrieve a phone number
- Update a phone number
- List all Releases
- Retrieve a Release request
- List all Upload requests
- Creates an Upload request
- Refresh the status of all Upload requests
- Get the count of pending upload requests
- Retrieve an Upload request
- Retry an Upload request
- Refresh Operator Connect integration
- Programmable Fax Applications
- Programmable Fax Commands
- FQDN Connections
- FQDNs
- Global IPs
- List all Global IP Allowed Ports
- Global IP Assignment Health Check Metrics
- List all Global IP assignments
- Create a Global IP assignment
- Delete a Global IP assignment
- Retrieve a Global IP
- Update a Global IP assignment
- Global IP Assignment Usage Metrics
- List all Global IP Health check types
- List all Global IP health checks
- Create a Global IP health check
- Delete a Global IP health check
- Retrieve a Global IP health check
- Global IP Latency Metrics
- List all Global IP Protocols
- Global IP Usage Metrics
- List all Global IPs
- Create a Global IP
- Delete a Global IP
- Retrieve a Global IP
- Integration Secrets
- Inventory Level
- IP Connections
- IPs
- Reports
- Managed Accounts
- Lists accounts managed by the current user.
- Create a new managed account.
- Display information about allocatable global outbound channels for the current user.
- Retrieve a managed account
- Update a managed account
- Disables a managed account
- Enables a managed account
- Update the amount of allocatable global outbound channels allocated to a specific managed account.
- Media Storage API
- Messages
- Messaging Hosted Number
- List messaging hosted number orders
- Create a messaging hosted number order
- Check eligibility of phone numbers for hosted messaging
- Retrieve a messaging hosted number order
- Upload file required for a messaging hosted number order
- Validate the verification codes for the hosted numbers order
- Create verification codes for the hosted numbers order
- Delete a messaging hosted number
- Number Configurations
- Advanced OptIn
- Messaging Profiles
- Messaging Tollfree Verification
- Messaging URL Domains
- RCS messaging
- Mobile Network Operators
- Push Credentials
- Coverage
- Networks
- Notifications
- List notification channels
- Create a notification channel
- Delete a notification channel
- Get a notification channel
- Update a notification channel
- List all Notifications Events Conditions
- List all Notifications Events
- List all Notifications Profiles
- Create a notification profile
- Delete a notification profile
- Get a notification profile
- Update a notification profile
- List notification settings
- Add a Notification Setting
- Delete a notification setting
- Get a notification setting
- Phone Number Block Orders
- Number Lookup
- Requirement Groups
- Update requirement group for a phone number order
- List requirement groups
- Create a new requirement group
- Delete a requirement group by ID
- Get a single requirement group by ID
- Update requirement values in requirement group
- Submit a Requirement Group for Approval
- Update requirement group for a sub number order
- Phone Number Reservations
- numbers features
- OTA updates
- Outbound Voice Profiles
- Shared Campaigns
- AutoRechargePreferences
- Bulk Phone Number Campaigns
- Phone Number Blocks Background Jobs
- Phone Number Campaigns
- Phone Number Configurations
- List phone numbers
- Slim List phone numbers
- List phone numbers with voice settings
- Delete a phone number
- Retrieve a phone number
- Update a phone number
- Change the bundle status for a phone number (set to being in a bundle or remove from a bundle)
- Enable emergency for a phone number
- Retrieve a phone number with voice settings
- Update a phone number with voice settings
- CSV Downloads
- Bulk Phone Number Operations
- Voicemail
- Regulatory Requirements
- Phone Number Porting
- Porting Orders
- List all porting events
- Show a porting event
- Republish a porting event
- Preview the LOA configuration parameters
- List LOA configurations
- Create a LOA configuration
- Delete a LOA configuration
- Retrieve a LOA configuration
- Update a LOA configuration
- Preview a LOA configuration
- List porting related reports
- Create a porting related report
- Retrieve a report
- List all porting orders
- Create a porting order
- List all exception types
- List all phone number configurations
- Create a list of phone number configurations
- Delete a porting order
- Retrieve a porting order
- Edit a porting order
- Activate every number in a porting order asynchronously.
- Cancel a porting order
- Submit a porting order.
- Share a porting order
- List all porting activation jobs
- Retrieve a porting activation job
- Update a porting activation job
- List additional documents
- Create a list of additional documents
- Delete an additional document
- List allowed FOC dates
- List all comments of a porting order
- Create a comment for a porting order
- Download a porting order loa template
- List porting order requirements
- Retrieve the associated V1 sub_request_id and port_request_id
- List verification codes
- Send the verification codes
- Verify the verification code for a list of phone numbers
- List all phone number blocks
- Create a phone number block
- Delete a phone number block
- List all phone number extensions
- Create a phone number extension
- Delete a phone number extension
- List all porting phone numbers
- Number Portout
- List portout requests
- List all port-out events
- Show a port-out event
- Republish a port-out event
- List eligible port-out rejection codes for a specific order
- List port-out related reports
- Create a port-out related report
- Retrieve a report
- Get a portout request
- List all comments for a portout request
- Create a comment on a portout request
- List supporting documents on a portout request
- Create a list of supporting documents on a portout request
- Update Status
- Private Wireless Gateways
- Public Internet Gateways
- Queue Commands
- Regions
- CDR Usage Reports
- MDR Usage Reports
- MDR Detail Reports
- WDR Detail Reports
- Requirement Types
- Requirements
- Room Compositions
- Room Participants
- Room Recordings
- Room Sessions
- Rooms
- Rooms Client Tokens
- Short Codes
- SIM Card Group Actions
- SIM Card Groups
- SIM Card Orders
- SIPREC Connectors
- Bucket SSL Certificate
- Bucket Usage
- Presigned Object URLs
- Data Migration
- Credentials
- Access Tokens
- TeXML REST Commands
- Fetch multiple call resources
- Initiate an outbound call
- Fetch a call
- Update call
- Fetch recordings for a call
- Request recording for a call
- Update recording on a call
- Request siprec session for a call
- Updates siprec session for a call
- Start streaming media from a call.
- Update streaming on a call
- List conference resources
- Fetch a conference resource
- Update a conference resource
- List conference participants
- Dial a new conference participant
- Delete a conference participant
- Get conference participant resource
- Update a conference participant
- List conference recordings
- Fetch recordings for a conference
- Fetch multiple recording resources
- Delete recording resource
- Fetch recording resource
- List recording transcriptions
- Delete a recording transcription
- Fetch a recording transcription resource
- (Deprecated) Initiate an outbound call
- (Deprecated) Update call
- Create a TeXML secret
- TeXML Applications
- Text to Speech Commands
- Usage Reports (BETA)
- UserAddresses
- User Tags
- Verify
- List verifications by phone number
- Verify verification code by phone number
- Trigger Call verification
- Trigger Flash call verification
- Trigger SMS verification
- Retrieve verification
- Verify verification code by ID
- List all Verify profiles
- Create a Verify profile
- Retrieve Verify profile message templates
- Delete Verify profile
- Retrieve Verify profile
- Update Verify profile
- Verified Numbers
- Virtual Cross Connects
- Webhooks
- WireGuard Interfaces
- Reporting
- Wireless Regions
- Object
Transfer call
POST
/calls/{call_control_id}/actions/transfer
Call Commands
call.hangup
webhook for the other call (Leg B) will be sent indicating that the transfer could not be completed. The original call will remain active and may be issued additional commands, potentially transfering the call to an alternate destination.call.initiated
call.bridged
to Leg Bcall.answered
or call.hangup
call.machine.detection.ended
if answering_machine_detection
was requestedcall.machine.greeting.ended
if answering_machine_detection
was requested to detect the end of machine greetingcall.machine.premium.detection.ended
if answering_machine_detection=premium
was requestedcall.machine.premium.greeting.ended
if answering_machine_detection=premium
was requested and a beep was detectedRequest Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/calls//actions/transfer' \
--header 'Content-Type: application/json' \
--data-raw '{
"answering_machine_detection": "detect",
"answering_machine_detection_config": {
"after_greeting_silence_millis": 1000,
"between_words_silence_millis": 1000,
"greeting_duration_millis": 1000,
"greeting_silence_duration_millis": 2000,
"greeting_total_analysis_time_millis": 50000,
"initial_silence_millis": 1000,
"maximum_number_of_words": 1000,
"maximum_word_length_millis": 2000,
"silence_threshold": 512,
"total_analysis_time_millis": 5000
},
"audio_url": "http://www.example.com/sounds/greeting.wav",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"custom_headers": [
{
"name": "head_1",
"value": "val_1"
},
{
"name": "head_2",
"value": "val_2"
}
],
"early_media": true,
"from": "+18005550101",
"from_display_name": "Company Name",
"media_encryption": "SRTP",
"sip_auth_password": "password",
"sip_auth_username": "username",
"sip_headers": [
{
"name": "User-to-User",
"value": "value"
}
],
"sip_transport_protocol": "TLS",
"stream_track": "both_tracks",
"stream_url": "wss://www.example.com/websocket",
"timeout_limit_secs": 60,
"timeout_secs": 60,
"to": "+18005550100 or sip:username@sip.telnyx.com",
"webhook_url": "https://www.example.com/server-b/",
"webhook_url_method": "POST"
}'
Response Response Example
200 - Example 1
{
"data": {
"result": "ok"
}
}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
call_control_id
stringÂ
required
Body Params application/json
answering_machine_detection
enum<string>Â
optional
call.machine.detection.ended
webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' webhook when the answering machine greeting ends with a beep or silence. If detect_beep
is used, you will only receive 'call.machine.greeting.ended' if a beep is detected.Allowed values:
premiumdetectdetect_beepdetect_wordsgreeting_enddisabled
Default:
disabled
answering_machine_detection_config
objectÂ
optional
after_greeting_silence_millis
integer <int32>
optional
Default:
800
Example:
1000
between_words_silence_millis
integer <int32>
optional
Default:
50
Example:
100
greeting_duration_millis
integer <int32>
optional
Default:
3500
Example:
1500
greeting_silence_duration_millis
integer <int32>
optional
Default:
1500
Example:
2000
greeting_total_analysis_time_millis
integer <int32>
optional
Default:
5000
Example:
7500
initial_silence_millis
integer <int32>
optional
Default:
3500
Example:
1800
maximum_number_of_words
integer <int32>
optional
Default:
5
Example:
3
maximum_word_length_millis
integer <int32>
optional
Default:
3500
Example:
2000
silence_threshold
integer <int32>
optional
Default:
256
Example:
512
total_analysis_time_millis
integer <int32>
optional
Default:
3500
Example:
5000
audio_url
stringÂ
optional
Example:
http://example.com/message.wav
client_state
stringÂ
optional
Example:
aGF2ZSBhIG5pY2UgZGF5ID1d
command_id
stringÂ
optional
command_id
for the same call_control_id
.Example:
891510ac-f3e4-11e8-af5b-de00688a4901
custom_headers
array[object (Custom SIP Header) {2}]Â
optional
Example:
[{"name":"head_1","value":"val_1"},{"name":"head_2","value":"val_2"}]
name
stringÂ
required
Example:
head_1
value
stringÂ
required
Example:
val_1
early_media
booleanÂ
optional
Default:
true
Example:
false
from
stringÂ
optional
from
number to be used as the caller id presented to the destination (to
number). The number should be in +E164 format. This attribute will default to the to
number of the original call if omitted.Example:
+18005550101
from_display_name
stringÂ
optional
from_display_name
string to be used as the caller id name (SIP From Display Name) presented to the destination (to
number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be the same as the number in the from
field.Example:
Company Name
media_encryption
enum<string>Â
optional
Allowed values:
disabledSRTPDTLS
Default:
disabled
media_name
stringÂ
optional
Example:
my_media_uploaded_to_media_storage_api
mute_dtmf
enum<string>Â
optional
Allowed values:
nonebothselfopposite
Default:
none
Example:
opposite
sip_auth_password
stringÂ
optional
Example:
password
sip_auth_username
stringÂ
optional
Example:
username
sip_headers
array[object (SIP Header) {2}]Â
optional
Example:
[{"name":"User-to-User","value":"value"}]
name
enum<string>Â
required
Allowed value:
User-to-User
Example:
User-to-User
value
stringÂ
required
Example:
value
sip_transport_protocol
enum<string>Â
optional
Allowed values:
UDPTCPTLS
Default:
UDP
sound_modifications
object (Sound modifications)Â
optional
Example:
{"octaves":0.1,"pitch":"0.8","semitone":-2,"track":"both"}
octaves
number <double>
optional
Example:
-0.5
pitch
number <double>
optional
Example:
0.8
semitone
number <double>
optional
Example:
-10
track
stringÂ
optional
inbound
or outbound
Default:
outbound
Example:
inbound
target_leg_client_state
stringÂ
optional
Example:
aGF2ZSBhIG5pY2UgZGF5ID1d
time_limit_secs
integer <int32>
optional
call.hangup
webhook with a hangup_cause
of time_limit
will be sent. For example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also the maximum allowed call length.>= 30<= 14400
Default:
14400
Example:
600
timeout_secs
integer <int32>
optional
call.hangup
webhook with a hangup_cause
of timeout
will be sent. Minimum value is 5 seconds. Maximum value is 600 seconds.Default:
30
Example:
60
to
stringÂ
required
Example:
+18005550100 or sip:username@sip.telnyx.com
webhook_url
stringÂ
optional
Example:
https://www.example.com/server-b/
webhook_url_method
enum<string>Â
optional
webhook_url
.Allowed values:
POSTGET
Default:
POST
Example:
GET
Examples
Responses
🟢200OK
application/json
Body
data
object (Call Control Command Result)Â
optional
Example:
{"result":"ok"}
result
stringÂ
optional
Example:
ok
🔴500Server Error
Modified at 2025-06-16 19:14:41