Create a SIP Endpoint
Creates a new SIP endpoint.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice.
Authentication
Request
String representing the username portion of the endpoint. Must be unique across your project and must not contain white space characters or @.
When dialing a PSTN phone number, you must send it From a number you have purchased or verified. send_as indicates which number this endpoint has set as its origination. random indicates it will randomly choose a purchased or verified number from within the project.
The LaML URL to access when a call is received. Required when call_handler is laml_webhooks.
The HTTP method to use with call_request_url.
The LaML URL to access when the call to call_request_url fails. Required when call_handler is laml_webhooks.
The HTTP method to use with call_fallback_url.
A URL to send status change messages to. Required when call_handler is laml_webhooks.
The HTTP method to use with call_status_callback_url.
The ID of the LaML application to forward incoming calls to. Required when call_handler is laml_application.
The ID of the Dialogflow agent to forward incoming calls to. Required when call_handler is dialogflow.
The Relay topic to forward incoming calls to. Required when call_handler is relay_topic.
A URL to send status change messages to. Required when call_handler is relay_topic.
The Relay context to forward incoming calls to. Required when call_handler is relay_context.
A URL to send status change messages to. Required when call_handler is relay_context.
The Relay application to forward incoming calls to. Required when call_handler is relay_application.
The ID of the Video Room to forward incoming calls to. Required when call_handler is video_room.
The ID of the Call Flow to forward incoming calls to. Required when call_handler is call_flow.
The version of the Call Flow to use. Valid values are ‘working_copy’ or ‘current_deployed’.
The ID of the AI Agent to forward incoming calls to. Required when call_handler is ai_agent.
A URL of a SWML script to respond to incoming calls. Required when call_handler is relay_script.
Response
When dialing a PSTN phone number, you must send it From a number you have purchased or verified. send_as indicates which number this endpoint has set as its origination. random indicates it will randomly choose a purchased or verified number from within the project.
A string representing the LaML URL to access when a call is received. This is only used (and required) when call_handler is set to laml_webhooks.
A string representing the HTTP method to use with call_request_url. Valid values are GET and POST.
A string representing the LaML URL to access when the call to call_request_url fails. This is only used (and required) when call_handler is set to laml_webhooks.
A string representing the HTTP method to use with call_fallback_url. Valid values are GET and POST.
A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to laml_webhooks.
A string representing the HTTP method to use with call_status_callback_url. Valid values are GET and POST.
A string representing the ID of the LaML application to forward incoming calls to. This is only used (and required) when call_handler is set to laml_application.
A string representing the ID of the Dialogflow agent to forward incoming calls to. This is only used (and required) when call_handler is set to dialogflow.
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.
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.
A string representing the Relay context to forward incoming calls to. This is only used (and required) when call_handler is set to relay_context.
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.
A string representing the Relay application to forward incoming calls to. This is only used (and required) when call_handler is set to relay_application.
A string representing the ID of the Video Room to forward incoming calls to. This is only used (and required) when call_handler is set to video_room.
A string representing a URL of a SWML script to respond to incoming calls. This is only used (and required) when call_handler is set to relay_script.