API Reference

There are two major endpoint categories for this documentation, one for Test credentials and the other for Live credentials.

  • Endpoints in Test credentials are accessed using the Test Credentials Account SID and Auth_Token. They allow you to test the Twilio REST API without being charged from your account.
  • Endpoints in other categories are accessed using the Live Credentials Account SID and Auth_Token.

Base URL

📘

The Base URL for this documentation is:

https://api.twilio.com/2010-04-01


Test Credentials

EndpointsDescription
/Accounts/{TestAccountSid}/IncomingPhoneNumbers.jsonTest API requests to buy a phone number, without actually doing so
/Accounts/{TestAccountSid}/Messages.jsonTest API requests to send SMS messages without charging your account or sending an SMS.
/Accounts/{TestAccountSid}/CallsTest API requests to the outbound call endpoint without charging your account or making a call

Auth Token

Base URL

https://accounts.twilio.com/v1/

EndpointsDescription
/AuthTokens/SecondaryCreate or delete a secondary auth token
/AuthTokens/PromoteDelete the current primary Auth Token, and promote the secondary Auth Token to primary.

Accounts

EndpointsDescription
/Accounts.jsonCreate subaccount/Read multiple accounts
Accounts/{Sid}.jsonFetch/update account
/Accounts/{TestAccountSid}/CallsTest API requests to the outbound call endpoint without charging your account or making a call