Request This endpoint expects an object.
name string Optional
The friendly name for the phone number.
call_handler enum Optional
The call handler for the phone number.
call_receive_mode string Optional
The call receive mode for the phone number.
call_request_url string Optional
The call request URL for the phone number.
call_request_method enum Optional
The call request method for the phone number.
Allowed values: GET POST
call_fallback_url string Optional
The call fallback URL for the phone number.
call_fallback_method enum Optional
The call fallback method for the phone number.
Allowed values: GET POST
call_status_callback_url string Optional
The call status callback URL for the phone number.
call_status_callback_method enum Optional
The call status callback method for the phone number.
Allowed values: GET POST
call_laml_application_id string Optional
The ID of the LaML Application to use when using the laml_application call handler.
call_dialogflow_agent_id string Optional
The ID of the Dialogflow Agent to start when using the dialogflow call handler.
call_relay_topic string Optional
A string representing the Relay topic to forward incoming calls to.
call_relay_topic_status_callback_url string Optional
A string representing a URL to send status change messages to when call_handler is set to relay_topic.
call_relay_script_url string Optional
The URL to make a request to when using the relay_script call handler.
call_relay_application string Optional
A string representing the Relay Application to forward incoming calls to.
call_relay_connector_id string Optional
The ID of the Relay Connector to use when using the relay_connector call handler.
call_sip_endpoint_id string Optional
The ID of the SIP Endpoint to use when using the relay_sip_endpoint call handler.
call_verto_resource string Optional
The Verto resource to use when using the relay_verto_endpoint call handler.
call_video_room_id string Optional format: "uuid"
The ID of the Video Room to forward incoming calls to when using the video_room call handler.
message_handler enum Optional
The message handler for the phone number.
Allowed values: relay_context relay_topic relay_application laml_webhooks laml_application
message_request_url string Optional
The message request URL for the phone number.
message_request_method enum Optional
The message request method for the phone number.
Allowed values: GET POST
message_fallback_url string Optional
The message fallback URL for the phone number.
message_fallback_method enum Optional
The message fallback method for the phone number.
Allowed values: GET POST
message_laml_application_id string Optional
The ID of the LaML Application to use for messages.
message_relay_topic string Optional
A string representing the Relay topic to forward incoming messages to.
message_relay_application string Optional
A string representing the Relay Application to forward incoming messages to.
call_relay_context string Optional Deprecated
This handler type is deprecated. Please use call_relay_application or call_relay_topic instead.
call_relay_context_status_callback_url string Optional Deprecated
This property is deprecated. Please use call_relay_topic_status_callback_url instead.
message_relay_context string Optional Deprecated
This handler type is deprecated. Please use message_relay_application or message_relay_topic instead.
Response The request has succeeded.
id string format: "uuid"
The unique identifier of the phone number.
number string
The phone number in E.164 format.
name string or null
The name given to the phone number. Helps to distinguish different phone numbers within your project.
capabilities list of enums
A list of communication methods this phone number supports.
Allowed values: voice sms mms fax
number_type enum
The type of number this is defined as.
Allowed values: toll-free longcode
e911_address_id string or null format: "uuid"
The E911 address ID associated with this phone number.
created_at datetime
The date the number was added to your project.
updated_at datetime
The date the number was last updated.
next_billed_at datetime or null
The next date the number will be billed for.
call_handler enum or null
What type of handler you want to run on inbound calls.
calling_handler_resource_id string or null format: "uuid"
The unique identifier of the calling handler resource.
call_receive_mode enum
How do you want to receive the incoming call.
Allowed values: voice fax
call_request_url string or null
The URL to make a request to when using the laml_webhooks call handler.
call_request_method enum or null
The HTTP method to use when making a request to the call_request_url.
Allowed values: GET POST
call_fallback_url string or null
The fallback URL to make a request to when using the laml_webhooks call handler and the call_request_url fails.
call_fallback_method enum or null
The HTTP method to use when making a request to the call_fallback_url.
Allowed values: GET POST
call_status_callback_url string or null
The URL to make status callbacks to when using the laml_webhooks call handler.
call_status_callback_method enum or null
The HTTP method to use when making a request to the call_status_callback_url.
Allowed values: GET POST
call_laml_application_id string or null
The ID of the LaML Application to use when using the laml_application call handler.
call_dialogflow_agent_id string or null
The ID of the Dialogflow Agent to start when using the dialogflow call handler.
call_relay_topic string or null
A string representing the Relay topic to forward incoming calls to. This is only used (and required) when call_handler is set to relay_topic.
call_relay_topic_status_callback_url string or null
A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_topic.
call_relay_script_url string or null
The URL to make a request to when using the relay_script call handler. The URL must respond with a valid SWML script.
call_relay_context string or null
The name of the Relay Context to send this call to when using the relay_context call handler.
call_relay_context_status_callback_url string or null
A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_context.
call_relay_application string or null
The name of the Relay Application to send this call to when using the relay_application call handler.
call_relay_connector_id string or null
The ID of the Relay Connector to send this call to when using the relay_connector call handler.
call_sip_endpoint_id string or null format: "uuid"
The ID of the Relay SIP Endpoint to send this call to when using the relay_sip_endpoint call handler.
call_verto_resource string or null
The name of the Verto Relay Endpoint to send this call to when using the relay_verto_endpoint call handler.
call_video_room_id string or null format: "uuid"
The ID of the Video Room to send this call to when using the video_room call handler.
message_handler enum or null
What type of handler you want to run on inbound messages.
Allowed values: relay_context relay_topic relay_application laml_webhooks laml_application
messaging_handler_resource_id string or null format: "uuid"
The unique identifier of the messaging handler resource.
message_request_url string or null
The URL to make a request to when using the laml_webhooks message handler.
message_request_method enum or null
The HTTP method to use when making a request to the message_request_url.
Allowed values: GET POST
message_fallback_url string or null
The fallback URL to make a request to when using the laml_webhooks message handler and the message_request_url fails.
message_fallback_method enum or null
The HTTP method to use when making a request to the message_fallback_url.
Allowed values: GET POST
message_laml_application_id string or null
The ID of the LaML Application to use when using the laml_application message handler.
message_relay_topic string or null
The name of the Relay Topic to send this message to when using the relay_topic message handler.
message_relay_context string or null
The name of the Relay Context to send this message to when using the relay_context message handler.
country_code string or null
The ISO 3166-1 alpha-2 country code of the phone number.