Elastic SIP Trunking REST API Reference

Elastic SIP Trunking's REST API enables you to interact with Trunking resources from your server-side applications.

Base URL

All Elastic SIP Trunking URLs referenced in the documentation have the following base:

https://trunking.twilio.com/v1

All Twilio REST APIs are served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.

Authentication

HTTP requests to the REST API are protected with HTTP Basic authentication like other REST APIs provided by Twilio. To learn more about how Twilio handles authentication, please refer to our security documentation. In short, you will use your Twilio account SID as the username and your auth token as the password for HTTP Basic authentication.

curl -G https://trunking.twilio.com/v1/Trunks \
    -u '[YOUR ACCOUNT SID]:[YOUR AUTH TOKEN]'

You can find your account SID and auth token on your dashboard.

Resources

Here are the resources you will be interacting with via the REST API:

Resource Description
Trunks An Elastic SIP Trunk that provides your IP-based communications infrastructure with connectivity to the PSTN.
CredentialLists List of Credentials associated with a Trunk to ensure the security/authenticity of your termination traffic.
IpAccessControlLists List of IP Access Control Lists associated with your Trunk to ensure the security/authenticity of your termination traffic.
OriginationURLs Origination settings of your Trunk will allow you to receive incoming traffic from the PSTN to a Twilio number, delivered to your communications infrastructure.
PhoneNumbers List of Twilio Numbers associated with your Trunk to allow you to receive incoming traffic from the PSTN to these Numbers.

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.