The service allows for two ways to set a URL for a call: during a Call Flow or via an API call. The first time you activate a DID for the call API it may take a 30 seconds, subsequent changes will be instant.
From the portal, you can set a Call Flow to route to a URL when needed. This allows you to add a lot of different routing methods if you desire.
A potential use case is to use a Hunt Group to route to your URL only after it has exhausted SIP uris.
Or you can set a URL by an API call.
HTTP POST. Sets the URL for a specific phone number to route directly to a
Your customer API Token
The phone number to set the URL or none to unset url
The HTTP/HTTPS URL to call to.
Example CURL call:
curl -X POST https://api.teleapi.net/user/dids/callapi \-d 'token=API_Token' \-d 'did=phone_number' \-d 'url=http_url'