Returns a list of your numbers. Append .csv
to the request URL
to retrieve results in CSV format.
Number response
id required | string |
connection_id required | string |
number_val_e164 required | string |
primary_ip required | string |
secondary_ip required | string |
tertiary_ip required | string |
primary_port required | integer Default: 5060 port for the primary ip, defaults to 5060 |
secondary_port required | integer Default: 5060 port for the secondary ip, defaults to 5060 |
tertiary_port required | integer Default: 5060 port for the tertiary ip, defaults to 5060 |
primary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
secondary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
tertiary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
primary_fqdn_port required | integer port for the primary FQDN |
secondary_fqdn_port required | integer port for the secondary FQDN |
tertiary_fqdn_port required | integer port for the tertiary FQDN |
primary_fqdn_dns_record_type required | string the DNS record type for the primary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
secondary_fqdn_dns_record_type required | string the DNS record type for the secondary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
tertiary_fqdn_dns_record_type required | string the DNS record type for the tertiary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
ignore_tech_prefix required | boolean Default: true DEPRECATED - Use enable_tech_prefix on API requests |
enable_tech_prefix required | boolean Default: false |
translated_number required | string |
forwards_to required | string the number that this number should be forwarded to; when this is set, forwarding_type must also be set |
forwarding_type required | string sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure' |
tag_list required | Array of strings |
status required | integer Default: 1 Purchase Pending = 1, Purchase Failed = 2, Port Pending = 3, Active = 4, Deleted = 5, Port Failed = 6, Emergency Only = 7, Ported Out = 8, Port Out Pending = 9 |
purchase_failure_reason required | string reason(s) why the last attempt to purchase this number failed |
e911_enabled | boolean Default: false |
e911_address_id | string |
emergency_status | string Default: "disabled" Enum: "disabled" "active" "provisioning" "deprovisioning" |
address_id | string use this property to reference an Address record if required for a number record |
usage_payment_method required | string Default: "pay-per-minute" setting for whether a number is billed per minute or uses your concurrent channels |
enable_rtp_auto_adjust required | boolean Default: true When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. |
media_handling_mode required | string Default: "default" default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode. |
cnam_listing_enabled required | boolean Default: false Enable CNAM listings for this number. Requires cnam_listing_details to also be filled in. |
cnam_listing_details required | string The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set. |
external_pin | string External PINs are used to ensure that phone numbers on your account cannot be ported to another carrier without your consent. This has an account level default but may also be specified per phone number. External PINs must be 4 numeric digits ('3456'). |
t38_fax_gateway_enabled | boolean Default: false |
accept_any_rtp_packets_enabled | boolean Default: false |
number_val required | string DEPRECATION WARNING! Please use number_val_e164 or contact support@telnyx.com if you depend on this key. |
inbound_call_recording_enabled required | boolean Default: false When enabled, any inbound call to this number will be recorded. |
inbound_call_recording_format required | string Default: "wav" The audio file format for calls being recorded. |
inbound_call_recording_channels | string Default: "single" When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. |
billing_group_id | string The ID of the Billing Group to which the number is assigned. Defaults to null (for no group assigned). |
Unauthorized
Unprocessable entity. Can be caused by invalid values for ordering or filtering. Check message field in response for details.
[- {
- "id": "string",
- "connection_id": "string",
- "number_val_e164": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "primary_fqdn": "string",
- "secondary_fqdn": "string",
- "tertiary_fqdn": "string",
- "primary_fqdn_port": 0,
- "secondary_fqdn_port": 0,
- "tertiary_fqdn_port": 0,
- "primary_fqdn_dns_record_type": "a",
- "secondary_fqdn_dns_record_type": "a",
- "tertiary_fqdn_dns_record_type": "a",
- "ignore_tech_prefix": true,
- "enable_tech_prefix": false,
- "translated_number": "string",
- "forwards_to": "string",
- "forwarding_type": "string",
- "tag_list": [
- "string"
], - "status": 1,
- "purchase_failure_reason": "string",
- "e911_enabled": false,
- "e911_address_id": "string",
- "emergency_status": "disabled",
- "address_id": "string",
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "external_pin": "string",
- "t38_fax_gateway_enabled": false,
- "accept_any_rtp_packets_enabled": false,
- "number_val": "string",
- "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single",
- "billing_group_id": "string"
}
]
Retrieve the details of a number. The ID in the path can either be the telephone number (e.g. +12124567890) or object ID.
Number updated
id required | string |
connection_id required | string |
number_val_e164 required | string |
primary_ip required | string |
secondary_ip required | string |
tertiary_ip required | string |
primary_port required | integer Default: 5060 port for the primary ip, defaults to 5060 |
secondary_port required | integer Default: 5060 port for the secondary ip, defaults to 5060 |
tertiary_port required | integer Default: 5060 port for the tertiary ip, defaults to 5060 |
primary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
secondary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
tertiary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
primary_fqdn_port required | integer port for the primary FQDN |
secondary_fqdn_port required | integer port for the secondary FQDN |
tertiary_fqdn_port required | integer port for the tertiary FQDN |
primary_fqdn_dns_record_type required | string the DNS record type for the primary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
secondary_fqdn_dns_record_type required | string the DNS record type for the secondary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
tertiary_fqdn_dns_record_type required | string the DNS record type for the tertiary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
ignore_tech_prefix required | boolean Default: true DEPRECATED - Use enable_tech_prefix on API requests |
enable_tech_prefix required | boolean Default: false |
translated_number required | string |
forwards_to required | string the number that this number should be forwarded to; when this is set, forwarding_type must also be set |
forwarding_type required | string sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure' |
tag_list required | Array of strings |
status required | integer Default: 1 Purchase Pending = 1, Purchase Failed = 2, Port Pending = 3, Active = 4, Deleted = 5, Port Failed = 6, Emergency Only = 7, Ported Out = 8, Port Out Pending = 9 |
purchase_failure_reason required | string reason(s) why the last attempt to purchase this number failed |
e911_enabled | boolean Default: false |
e911_address_id | string |
emergency_status | string Default: "disabled" Enum: "disabled" "active" "provisioning" "deprovisioning" |
address_id | string use this property to reference an Address record if required for a number record |
usage_payment_method required | string Default: "pay-per-minute" setting for whether a number is billed per minute or uses your concurrent channels |
enable_rtp_auto_adjust required | boolean Default: true When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. |
media_handling_mode required | string Default: "default" default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode. |
cnam_listing_enabled required | boolean Default: false Enable CNAM listings for this number. Requires cnam_listing_details to also be filled in. |
cnam_listing_details required | string The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set. |
external_pin | string External PINs are used to ensure that phone numbers on your account cannot be ported to another carrier without your consent. This has an account level default but may also be specified per phone number. External PINs must be 4 numeric digits ('3456'). |
t38_fax_gateway_enabled | boolean Default: false |
accept_any_rtp_packets_enabled | boolean Default: false |
number_val required | string DEPRECATION WARNING! Please use number_val_e164 or contact support@telnyx.com if you depend on this key. |
inbound_call_recording_enabled required | boolean Default: false When enabled, any inbound call to this number will be recorded. |
inbound_call_recording_format required | string Default: "wav" The audio file format for calls being recorded. |
inbound_call_recording_channels | string Default: "single" When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. |
billing_group_id | string The ID of the Billing Group to which the number is assigned. Defaults to null (for no group assigned). |
Bad request
Unauthorized
Resource not found
{- "id": "string",
- "connection_id": "string",
- "number_val_e164": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "primary_fqdn": "string",
- "secondary_fqdn": "string",
- "tertiary_fqdn": "string",
- "primary_fqdn_port": 0,
- "secondary_fqdn_port": 0,
- "tertiary_fqdn_port": 0,
- "primary_fqdn_dns_record_type": "a",
- "secondary_fqdn_dns_record_type": "a",
- "tertiary_fqdn_dns_record_type": "a",
- "ignore_tech_prefix": true,
- "enable_tech_prefix": false,
- "translated_number": "string",
- "forwards_to": "string",
- "forwarding_type": "string",
- "tag_list": [
- "string"
], - "status": 1,
- "purchase_failure_reason": "string",
- "e911_enabled": false,
- "e911_address_id": "string",
- "emergency_status": "disabled",
- "address_id": "string",
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "external_pin": "string",
- "t38_fax_gateway_enabled": false,
- "accept_any_rtp_packets_enabled": false,
- "number_val": "string",
- "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single",
- "billing_group_id": "string"
}
Updates the specified number with the values of the parameters passed. Any parameters not included in the request will be left unchanged. The ID in the path can either be the telephone number (e.g. +12124567890) or object ID.
Updated number object
Number updated
id required | string |
connection_id required | string |
number_val_e164 required | string |
primary_ip required | string |
secondary_ip required | string |
tertiary_ip required | string |
primary_port required | integer Default: 5060 port for the primary ip, defaults to 5060 |
secondary_port required | integer Default: 5060 port for the secondary ip, defaults to 5060 |
tertiary_port required | integer Default: 5060 port for the tertiary ip, defaults to 5060 |
primary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
secondary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
tertiary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
primary_fqdn_port required | integer port for the primary FQDN |
secondary_fqdn_port required | integer port for the secondary FQDN |
tertiary_fqdn_port required | integer port for the tertiary FQDN |
primary_fqdn_dns_record_type required | string the DNS record type for the primary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
secondary_fqdn_dns_record_type required | string the DNS record type for the secondary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
tertiary_fqdn_dns_record_type required | string the DNS record type for the tertiary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
ignore_tech_prefix required | boolean Default: true DEPRECATED - Use enable_tech_prefix on API requests |
enable_tech_prefix required | boolean Default: false |
translated_number required | string |
forwards_to required | string the number that this number should be forwarded to; when this is set, forwarding_type must also be set |
forwarding_type required | string sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure' |
tag_list required | Array of strings |
status required | integer Default: 1 Purchase Pending = 1, Purchase Failed = 2, Port Pending = 3, Active = 4, Deleted = 5, Port Failed = 6, Emergency Only = 7, Ported Out = 8, Port Out Pending = 9 |
purchase_failure_reason required | string reason(s) why the last attempt to purchase this number failed |
e911_enabled | boolean Default: false |
e911_address_id | string |
emergency_status | string Default: "disabled" Enum: "disabled" "active" "provisioning" "deprovisioning" |
address_id | string use this property to reference an Address record if required for a number record |
usage_payment_method required | string Default: "pay-per-minute" setting for whether a number is billed per minute or uses your concurrent channels |
enable_rtp_auto_adjust required | boolean Default: true When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. |
media_handling_mode required | string Default: "default" default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode. |
cnam_listing_enabled required | boolean Default: false Enable CNAM listings for this number. Requires cnam_listing_details to also be filled in. |
cnam_listing_details required | string The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set. |
external_pin | string External PINs are used to ensure that phone numbers on your account cannot be ported to another carrier without your consent. This has an account level default but may also be specified per phone number. External PINs must be 4 numeric digits ('3456'). |
t38_fax_gateway_enabled | boolean Default: false |
accept_any_rtp_packets_enabled | boolean Default: false |
number_val required | string DEPRECATION WARNING! Please use number_val_e164 or contact support@telnyx.com if you depend on this key. |
inbound_call_recording_enabled required | boolean Default: false When enabled, any inbound call to this number will be recorded. |
inbound_call_recording_format required | string Default: "wav" The audio file format for calls being recorded. |
inbound_call_recording_channels | string Default: "single" When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. |
billing_group_id | string The ID of the Billing Group to which the number is assigned. Defaults to null (for no group assigned). |
Bad request
Unauthorized
Resource not found
{- "connection_id": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "primary_fqdn": "string",
- "secondary_fqdn": "string",
- "tertiary_fqdn": "string",
- "primary_fqdn_port": 0,
- "secondary_fqdn_port": 0,
- "tertiary_fqdn_port": 0,
- "primary_fqdn_dns_record_type": "a",
- "secondary_fqdn_dns_record_type": "a",
- "tertiary_fqdn_dns_record_type": "a",
- "enable_tech_prefix": false,
- "translated_number": "string",
- "forwards_to": "string",
- "forwarding_type": "string",
- "enable_caller_id_name": false,
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "routing_method": "sequential",
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "external_pin": "string",
- "t38_fax_gateway_enabled": false,
- "accept_any_rtp_packets_enabled": false,
- "tag_list": [
- "string"
], - "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single",
- "billing_group_id": "string"
}
{- "id": "string",
- "connection_id": "string",
- "number_val_e164": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "primary_fqdn": "string",
- "secondary_fqdn": "string",
- "tertiary_fqdn": "string",
- "primary_fqdn_port": 0,
- "secondary_fqdn_port": 0,
- "tertiary_fqdn_port": 0,
- "primary_fqdn_dns_record_type": "a",
- "secondary_fqdn_dns_record_type": "a",
- "tertiary_fqdn_dns_record_type": "a",
- "ignore_tech_prefix": true,
- "enable_tech_prefix": false,
- "translated_number": "string",
- "forwards_to": "string",
- "forwarding_type": "string",
- "tag_list": [
- "string"
], - "status": 1,
- "purchase_failure_reason": "string",
- "e911_enabled": false,
- "e911_address_id": "string",
- "emergency_status": "disabled",
- "address_id": "string",
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "external_pin": "string",
- "t38_fax_gateway_enabled": false,
- "accept_any_rtp_packets_enabled": false,
- "number_val": "string",
- "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single",
- "billing_group_id": "string"
}
Permanently deletes a number. The ID in the path can either be the telephone number (e.g. +12124567890) or object ID.
Number deleted
id required | string |
connection_id required | string |
number_val_e164 required | string |
primary_ip required | string |
secondary_ip required | string |
tertiary_ip required | string |
primary_port required | integer Default: 5060 port for the primary ip, defaults to 5060 |
secondary_port required | integer Default: 5060 port for the secondary ip, defaults to 5060 |
tertiary_port required | integer Default: 5060 port for the tertiary ip, defaults to 5060 |
primary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
secondary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
tertiary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
primary_fqdn_port required | integer port for the primary FQDN |
secondary_fqdn_port required | integer port for the secondary FQDN |
tertiary_fqdn_port required | integer port for the tertiary FQDN |
primary_fqdn_dns_record_type required | string the DNS record type for the primary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
secondary_fqdn_dns_record_type required | string the DNS record type for the secondary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
tertiary_fqdn_dns_record_type required | string the DNS record type for the tertiary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
ignore_tech_prefix required | boolean Default: true DEPRECATED - Use enable_tech_prefix on API requests |
enable_tech_prefix required | boolean Default: false |
translated_number required | string |
forwards_to required | string the number that this number should be forwarded to; when this is set, forwarding_type must also be set |
forwarding_type required | string sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure' |
tag_list required | Array of strings |
status required | integer Default: 1 Purchase Pending = 1, Purchase Failed = 2, Port Pending = 3, Active = 4, Deleted = 5, Port Failed = 6, Emergency Only = 7, Ported Out = 8, Port Out Pending = 9 |
purchase_failure_reason required | string reason(s) why the last attempt to purchase this number failed |
e911_enabled | boolean Default: false |
e911_address_id | string |
emergency_status | string Default: "disabled" Enum: "disabled" "active" "provisioning" "deprovisioning" |
address_id | string use this property to reference an Address record if required for a number record |
usage_payment_method required | string Default: "pay-per-minute" setting for whether a number is billed per minute or uses your concurrent channels |
enable_rtp_auto_adjust required | boolean Default: true When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. |
media_handling_mode required | string Default: "default" default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode. |
cnam_listing_enabled required | boolean Default: false Enable CNAM listings for this number. Requires cnam_listing_details to also be filled in. |
cnam_listing_details required | string The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set. |
external_pin | string External PINs are used to ensure that phone numbers on your account cannot be ported to another carrier without your consent. This has an account level default but may also be specified per phone number. External PINs must be 4 numeric digits ('3456'). |
t38_fax_gateway_enabled | boolean Default: false |
accept_any_rtp_packets_enabled | boolean Default: false |
number_val required | string DEPRECATION WARNING! Please use number_val_e164 or contact support@telnyx.com if you depend on this key. |
inbound_call_recording_enabled required | boolean Default: false When enabled, any inbound call to this number will be recorded. |
inbound_call_recording_format required | string Default: "wav" The audio file format for calls being recorded. |
inbound_call_recording_channels | string Default: "single" When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. |
billing_group_id | string The ID of the Billing Group to which the number is assigned. Defaults to null (for no group assigned). |
Unauthorized
Resource not found
{- "id": "string",
- "connection_id": "string",
- "number_val_e164": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "primary_fqdn": "string",
- "secondary_fqdn": "string",
- "tertiary_fqdn": "string",
- "primary_fqdn_port": 0,
- "secondary_fqdn_port": 0,
- "tertiary_fqdn_port": 0,
- "primary_fqdn_dns_record_type": "a",
- "secondary_fqdn_dns_record_type": "a",
- "tertiary_fqdn_dns_record_type": "a",
- "ignore_tech_prefix": true,
- "enable_tech_prefix": false,
- "translated_number": "string",
- "forwards_to": "string",
- "forwarding_type": "string",
- "tag_list": [
- "string"
], - "status": 1,
- "purchase_failure_reason": "string",
- "e911_enabled": false,
- "e911_address_id": "string",
- "emergency_status": "disabled",
- "address_id": "string",
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "external_pin": "string",
- "t38_fax_gateway_enabled": false,
- "accept_any_rtp_packets_enabled": false,
- "number_val": "string",
- "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single",
- "billing_group_id": "string"
}
Update multiple numbers at once with POST/origination/bulk_number_update_requests/
.
Each number's status must be Active (4) or Port Pending (3).
Check the status of your bulk request and the error_messages property with GET/origination/bulk_number_update_requests/{id}
.
Note that only the properties you specified are returned in the GET.
New bulk requests are created in Pending status (1). They move to Complete status (2) after a period of time that varies with the size of the request. If for some reason they can't be processed within 15 minutes then they are moved to Expired status (3).
PLEASE NOTE: Any changes made to a number while a bulk request is pending can and will be overwritten when the bulk request is processed.
Additional note: All parameters are optional except for: ids_or_number_values
. If you want to nullify a property
then you should send an empty value for it. If you want to leave a property unmodified then you should leave its
key out of the request.
Bulk number update request
Bulk Number Update Request
Bad request
Unauthorized
Unprocessable entity. Can be caused by invalid values. Check message field in response for details.
{- "ids_or_number_vals": [
- "string"
], - "connection_id": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "forwards_to": "string",
- "forwarding_type": "string",
- "e911_enabled": true,
- "e911_address_id": "string",
- "address_id": "string",
- "enable_tech_prefix": true,
- "translated_number": "string",
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "tag_list": [
- "string"
], - "t38_fax_gateway_enabled": false,
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "accept_any_rtp_packets_enabled": false,
- "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single"
}
{- "id": "string",
- "status": 0,
- "error_messages": [
- "string"
]
}
Update multiple numbers at once with POST/origination/bulk_number_update_requests/
.
Each number's status must be Active (4) or Port Pending (3).
Check the status of your bulk request and the error_messages property with GET/origination/bulk_number_update_requests/{id}
.
Note that only the properties you specified are returned in the GET.
New bulk requests are created in Pending status (1). They move to Complete status (2) after a period of time that varies with the size of the request. If for some reason they can't be processed within 15 minutes then they are moved to Expired status (3).
PLEASE NOTE: Any changes made to a number while a bulk request is pending can and will be overwritten when the bulk request is processed.
Additional note: All parameters are optional except for: ids_or_number_values
. If you want to nullify a property
then you should send an empty value for it. If you want to leave a property unmodified then you should leave its
key out of the request.
Bulk Number Update Request
Unauthorized
Resource not found
Unprocessable entity. Can be caused by invalid values. Check message field in response for details.
{- "ids_or_number_vals": [
- "string"
], - "connection_id": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "forwards_to": "string",
- "forwarding_type": "string",
- "e911_enabled": true,
- "e911_address_id": "string",
- "address_id": "string",
- "enable_tech_prefix": true,
- "translated_number": "string",
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "tag_list": [
- "string"
], - "t38_fax_gateway_enabled": false,
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "accept_any_rtp_packets_enabled": false,
- "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single"
}
Retrieve all of your number CSV download requests
Success
Unauthorized
Resource not found
Unprocessable entity. Can be caused by invalid values. Check message field in response for details.
[- {
- "id": "string",
- "url": "string",
- "status": 0
}
]
Retrieve a number CSV download request
Success
Unauthorized
Resource not found
Unprocessable entity. Can be caused by invalid values. Check message field in response for details.
{- "id": "string",
- "url": "string",
- "status": 0
}
Enables E911 on a number. The ID supplied can be the telephone number (e.g. +12124567890) or object ID.
Number E911 enable
id required | string |
connection_id required | string |
number_val_e164 required | string |
primary_ip required | string |
secondary_ip required | string |
tertiary_ip required | string |
primary_port required | integer Default: 5060 port for the primary ip, defaults to 5060 |
secondary_port required | integer Default: 5060 port for the secondary ip, defaults to 5060 |
tertiary_port required | integer Default: 5060 port for the tertiary ip, defaults to 5060 |
primary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
secondary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
tertiary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
primary_fqdn_port required | integer port for the primary FQDN |
secondary_fqdn_port required | integer port for the secondary FQDN |
tertiary_fqdn_port required | integer port for the tertiary FQDN |
primary_fqdn_dns_record_type required | string the DNS record type for the primary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
secondary_fqdn_dns_record_type required | string the DNS record type for the secondary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
tertiary_fqdn_dns_record_type required | string the DNS record type for the tertiary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
ignore_tech_prefix required | boolean Default: true DEPRECATED - Use enable_tech_prefix on API requests |
enable_tech_prefix required | boolean Default: false |
translated_number required | string |
forwards_to required | string the number that this number should be forwarded to; when this is set, forwarding_type must also be set |
forwarding_type required | string sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure' |
tag_list required | Array of strings |
status required | integer Default: 1 Purchase Pending = 1, Purchase Failed = 2, Port Pending = 3, Active = 4, Deleted = 5, Port Failed = 6, Emergency Only = 7, Ported Out = 8, Port Out Pending = 9 |
purchase_failure_reason required | string reason(s) why the last attempt to purchase this number failed |
e911_enabled | boolean Default: false |
e911_address_id | string |
emergency_status | string Default: "disabled" Enum: "disabled" "active" "provisioning" "deprovisioning" |
address_id | string use this property to reference an Address record if required for a number record |
usage_payment_method required | string Default: "pay-per-minute" setting for whether a number is billed per minute or uses your concurrent channels |
enable_rtp_auto_adjust required | boolean Default: true When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. |
media_handling_mode required | string Default: "default" default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode. |
cnam_listing_enabled required | boolean Default: false Enable CNAM listings for this number. Requires cnam_listing_details to also be filled in. |
cnam_listing_details required | string The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set. |
external_pin | string External PINs are used to ensure that phone numbers on your account cannot be ported to another carrier without your consent. This has an account level default but may also be specified per phone number. External PINs must be 4 numeric digits ('3456'). |
t38_fax_gateway_enabled | boolean Default: false |
accept_any_rtp_packets_enabled | boolean Default: false |
number_val required | string DEPRECATION WARNING! Please use number_val_e164 or contact support@telnyx.com if you depend on this key. |
inbound_call_recording_enabled required | boolean Default: false When enabled, any inbound call to this number will be recorded. |
inbound_call_recording_format required | string Default: "wav" The audio file format for calls being recorded. |
inbound_call_recording_channels | string Default: "single" When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. |
billing_group_id | string The ID of the Billing Group to which the number is assigned. Defaults to null (for no group assigned). |
Number Emergency Requested
id required | string |
connection_id required | string |
number_val_e164 required | string |
primary_ip required | string |
secondary_ip required | string |
tertiary_ip required | string |
primary_port required | integer Default: 5060 port for the primary ip, defaults to 5060 |
secondary_port required | integer Default: 5060 port for the secondary ip, defaults to 5060 |
tertiary_port required | integer Default: 5060 port for the tertiary ip, defaults to 5060 |
primary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
secondary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
tertiary_fqdn required | string the primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication. |
primary_fqdn_port required | integer port for the primary FQDN |
secondary_fqdn_port required | integer port for the secondary FQDN |
tertiary_fqdn_port required | integer port for the tertiary FQDN |
primary_fqdn_dns_record_type required | string the DNS record type for the primary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
secondary_fqdn_dns_record_type required | string the DNS record type for the secondary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
tertiary_fqdn_dns_record_type required | string the DNS record type for the tertiary FQDN for the number. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. |
ignore_tech_prefix required | boolean Default: true DEPRECATED - Use enable_tech_prefix on API requests |
enable_tech_prefix required | boolean Default: false |
translated_number required | string |
forwards_to required | string the number that this number should be forwarded to; when this is set, forwarding_type must also be set |
forwarding_type required | string sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure' |
tag_list required | Array of strings |
status required | integer Default: 1 Purchase Pending = 1, Purchase Failed = 2, Port Pending = 3, Active = 4, Deleted = 5, Port Failed = 6, Emergency Only = 7, Ported Out = 8, Port Out Pending = 9 |
purchase_failure_reason required | string reason(s) why the last attempt to purchase this number failed |
e911_enabled | boolean Default: false |
e911_address_id | string |
emergency_status | string Default: "disabled" Enum: "disabled" "active" "provisioning" "deprovisioning" |
address_id | string use this property to reference an Address record if required for a number record |
usage_payment_method required | string Default: "pay-per-minute" setting for whether a number is billed per minute or uses your concurrent channels |
enable_rtp_auto_adjust required | boolean Default: true When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. |
media_handling_mode required | string Default: "default" default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode. |
cnam_listing_enabled required | boolean Default: false Enable CNAM listings for this number. Requires cnam_listing_details to also be filled in. |
cnam_listing_details required | string The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set. |
external_pin | string External PINs are used to ensure that phone numbers on your account cannot be ported to another carrier without your consent. This has an account level default but may also be specified per phone number. External PINs must be 4 numeric digits ('3456'). |
t38_fax_gateway_enabled | boolean Default: false |
accept_any_rtp_packets_enabled | boolean Default: false |
number_val required | string DEPRECATION WARNING! Please use number_val_e164 or contact support@telnyx.com if you depend on this key. |
inbound_call_recording_enabled required | boolean Default: false When enabled, any inbound call to this number will be recorded. |
inbound_call_recording_format required | string Default: "wav" The audio file format for calls being recorded. |
inbound_call_recording_channels | string Default: "single" When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. |
billing_group_id | string The ID of the Billing Group to which the number is assigned. Defaults to null (for no group assigned). |
Bad request
Unauthorized
{- "e911_enabled": true,
- "e911_address_id": "string"
}
{- "id": "string",
- "connection_id": "string",
- "number_val_e164": "string",
- "primary_ip": "string",
- "secondary_ip": "string",
- "tertiary_ip": "string",
- "primary_port": 5060,
- "secondary_port": 5060,
- "tertiary_port": 5060,
- "primary_fqdn": "string",
- "secondary_fqdn": "string",
- "tertiary_fqdn": "string",
- "primary_fqdn_port": 0,
- "secondary_fqdn_port": 0,
- "tertiary_fqdn_port": 0,
- "primary_fqdn_dns_record_type": "a",
- "secondary_fqdn_dns_record_type": "a",
- "tertiary_fqdn_dns_record_type": "a",
- "ignore_tech_prefix": true,
- "enable_tech_prefix": false,
- "translated_number": "string",
- "forwards_to": "string",
- "forwarding_type": "string",
- "tag_list": [
- "string"
], - "status": 1,
- "purchase_failure_reason": "string",
- "e911_enabled": false,
- "e911_address_id": "string",
- "emergency_status": "disabled",
- "address_id": "string",
- "usage_payment_method": "pay-per-minute",
- "enable_rtp_auto_adjust": true,
- "media_handling_mode": "default",
- "cnam_listing_enabled": false,
- "cnam_listing_details": "string",
- "external_pin": "string",
- "t38_fax_gateway_enabled": false,
- "accept_any_rtp_packets_enabled": false,
- "number_val": "string",
- "inbound_call_recording_enabled": false,
- "inbound_call_recording_format": "wav",
- "inbound_call_recording_channels": "single",
- "billing_group_id": "string"
}