Create a Domain Application
To create a new domain application, you send a POST
request to the
domain application resource.
Permissions
The API token must include the following scopes: Voice.
Request Body — REQUIRED |
---|
name string — REQUIREDA string representing the friendly name for this domain application. |
identifier string — REQUIREDA string representing the identifier portion of the domain application. Must be unique across your project. Must be letters, numbers, and dash only. |
ip_auth_enabled booleanWhether the domain application will enforce IP authentication for incoming requests. |
ip_auth string[]A list containing whitelisted IP addresses and IP blocks used if |
call_handler string — REQUIREDA string representing how this domain application handles calls. Valid values are |
call_request_url stringA string representing the LaML URL to access when a call is received. This is only used (and required) when |
call_request_method stringA string representing the HTTP method to use with |
call_fallback_url stringA string representing the LaML URL to access when the call to |
call_fallback_method stringA string representing the HTTP method to use with |
call_status_callback_url stringA string representing a URL to send status change messages to. This is only used (and required) when |
call_status_callback_method stringA string representing the HTTP method to use with |
call_relay_context stringA string representing the Relay context to forward incoming calls to. This is only used (and required) when |
call_relay_application stringA string representing the Relay Application to forward incoming calls to. This is only used (and required) when |
call_relay_script_url stringA string representing the URL of the Relay script to execute when a call is received. This is only used (and required) when |
call_laml_application_id stringA string representing the ID of the LaML application to forward incoming calls to. This is only used (and required) when |
call_video_room_id uuidA string representing the ID of the Video Room to forward incoming calls to. This is only used (and required) when |
call_dialogflow_agent_id uuidA string representing the ID of the Dialogflow Agent to forward incoming calls to. This is only used (and required) when |
call_ai_agent_id uuidA string representing the ID of the AI Agent to forward incoming calls to. This is only used (and required) when |
call_flow_id uuidA string representing the ID of the Call Flow to forward incoming calls to. This is only used (and required) when |
call_flow_version stringA string representing the version of your Call Flow you'd like to use. Valid options are |
encryption stringA string representing whether connections to this domain application require encryption or if encryption is optional. Encryption will always be used if possible. Valid values are |
codecs string[]A list of codecs this domain application will support. Currently supported values are: |
ciphers string[]A list of encryption ciphers this domain application will support. Currently supported values are: |
Responses | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201 CREATED
|