Use this endpoint to create a new inbound route. Routes can then be associated with phone numbers. Please see List Inbound Routes for the different service routes that you can associate with your Flowroute phone numbers.
Endpoint
POST /routesRequest Parameters
alias
requiredAlias for the route.
route_type
requiredIndicates the type of route: HOST, PSTN, URI, or SIP-REG for Voice, webhook for SMS, MMS, and DLRs. SIP-REG is the default name assigned to a voice route if none is assigned.
value
requiredValue of the route, dependent on the route_type:
If HOST, the value must be an IP address or URL
with an optional port number. For example, an IP address could be 24.239.23.40: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:alice@atlanta.com, sip:16476998778@215.122.69.152:5060;transport=tcp, or sips:securecall@securedserver.com.
If webhook, it must follow the general rules for valid URLs.