Use this endpoint to create a new inbound route. Routes can then be associated with phone numbers using the Update Phone Number Routes endpoint.
Name of the route to be created. Alphanumeric characters are supported.
The type of route to be created. Route type can be HOST, PSTN, or URI. Note: In a Python or PHP request using the SDK, mtype must be used instead of type.
Value of the route, dependent on the type:
If HOST, the value must be an IP address or URL
with an optional port number. For example, an IP address could be 22.214.171.124:5060 or a URL could be myphone.com. If no port is specified, the server will attempt to use DNS SRV records.
If PSTN, the value must be in E.164 format. e.g.,16476998778.
IfURI, the value must be formatted as protocol:user@domain[:port][;transport=<tcp/udp>.
For example, sip:firstname.lastname@example.org, sip:email@example.com:5060;transport=tcp, or sips:firstname.lastname@example.org.