Overview
This is the public Twilio REST API.
Twilio - Api is a phone API from twilio.com. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 199 endpoints.
At a glance
- Authentication
- HTTP Basic
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Phone
- Base URL
https://api.twilio.com- Version
- 1.42.0
- Endpoints
- 199
- OpenAPI
- Specification ↗
- Spec updated
- 2023-04-20
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://api.twilio.com/2010-04-01/Accounts.json" \
-H "Accept: application/json" \
-H "Authorization: Basic BASE64_USER_PASSWORD"const response = await fetch("https://api.twilio.com/2010-04-01/Accounts.json", {
method: "GET",
headers: {
"Accept": "application/json",
"Authorization": "Basic BASE64_USER_PASSWORD",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://api.twilio.com/2010-04-01/Accounts.json",
headers={
"Accept": "application/json",
"Authorization": "Basic BASE64_USER_PASSWORD",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /2010-04-01/Accounts.json | Retrieves a collection of Accounts belonging to the account used to make the request |
| POST | /2010-04-01/Accounts.json | Create a new Twilio Subaccount from the account making the request |
| GET | /2010-04-01/Accounts/{AccountSid}/Addresses.json | ListAddress |
| POST | /2010-04-01/Accounts/{AccountSid}/Addresses.json | CreateAddress |
| GET | /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json | ListDependentPhoneNumber |
| GET | /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | FetchAddress |
| POST | /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | UpdateAddress |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | DeleteAddress |
| GET | /2010-04-01/Accounts/{AccountSid}/Applications.json | Retrieve a list of applications representing an application within the requesting account |
| POST | /2010-04-01/Accounts/{AccountSid}/Applications.json | Create a new application within your account |
| GET | /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | Fetch the application specified by the provided sid |
| POST | /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | Updates the application's properties |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | Delete the application by the specified application sid |
| GET | /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json | Retrieve a list of authorized-connect-apps belonging to the account used to make the request |
| GET | /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json | Fetch an instance of an authorized-connect-app |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | ListAvailablePhoneNumberCountry |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | FetchAvailablePhoneNumberCountry |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json | ListAvailablePhoneNumberLocal |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json | ListAvailablePhoneNumberMachineToMachine |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json | ListAvailablePhoneNumberMobile |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json | ListAvailablePhoneNumberNational |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json | ListAvailablePhoneNumberSharedCost |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json | ListAvailablePhoneNumberTollFree |
| GET | /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json | ListAvailablePhoneNumberVoip |
| GET | /2010-04-01/Accounts/{AccountSid}/Balance.json | Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls.json | Retrieves a collection of calls made to and from your account |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls.json | Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json | Create a FeedbackSummary resource for a call |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | Fetch a FeedbackSummary resource from a call |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | Delete a FeedbackSummary resource from a call |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json | Retrieve a list of all events for a call. |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | Fetch a Feedback resource from a call |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | Update a Feedback resource for a call |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json | ListCallNotification |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json | FetchCallNotification |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json | create an instance of payments. This will start a new payments session |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json | update an instance of payments with different phases of payment flows. |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | Retrieve a list of recordings belonging to the call used to make the request |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | Create a recording for the call |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | Fetch an instance of a recording for a call |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of recording sid to reference current active recordi |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | Delete a recording from your account |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json | Create a Siprec |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json | Stop a Siprec using either the SID of the Siprec resource or the `name` used when creating the resource |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json | Create a Stream |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json | Stop a Stream using either the SID of the Stream resource or the `name` used when creating the resource |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | Subscribe to User Defined Messages for a given Call SID. |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | Delete a specific User Defined Message Subscription. |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | Create a new User Defined Message for the given Call SID. |
| GET | /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | Fetch the call specified by the provided Call SID |
| POST | /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | Initiates a call redirect or terminates a call |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. |
| GET | /2010-04-01/Accounts/{AccountSid}/Conferences.json | Retrieve a list of conferences belonging to the account used to make the request |
| GET | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | Retrieve a list of participants belonging to the account used to make the request |
| POST | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | CreateParticipant |
| GET | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | Fetch an instance of a participant |
| POST | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | Update the properties of the participant |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | Kick a participant from a given conference |
| GET | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | Retrieve a list of recordings belonging to the call used to make the request |
| GET | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | Fetch an instance of a recording for a call |
| POST | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | Delete a recording from your account |
| GET | /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | Fetch an instance of a conference |
| POST | /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | UpdateConference |
| GET | /2010-04-01/Accounts/{AccountSid}/ConnectApps.json | Retrieve a list of connect-apps belonging to the account used to make the request |
| GET | /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | Fetch an instance of a connect-app |
| POST | /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | Update a connect-app with the specified parameters |
| DELETE | /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | Delete an instance of a connect-app |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. |
| POST | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | Purchase a phone-number for the account. |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | ListIncomingPhoneNumberLocal |
| POST | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | CreateIncomingPhoneNumberLocal |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | ListIncomingPhoneNumberMobile |
| POST | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | CreateIncomingPhoneNumberMobile |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | ListIncomingPhoneNumberTollFree |
| POST | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | CreateIncomingPhoneNumberTollFree |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | Retrieve a list of Add-on installations currently assigned to this Number. |
| POST | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | Assign an Add-on installation to the Number specified. |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json | Retrieve a list of Extensions for the Assigned Add-on. |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json | Fetch an instance of an Extension for the Assigned Add-on. |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | Fetch an instance of an Add-on installation currently assigned to this Number. |
| DELETE | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | Remove the assignment of an Add-on installation from the Number specified. |
| GET | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | Fetch an incoming-phone-number belonging to the account used to make the request. |
| POST | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | Update an incoming-phone-number instance. |
| DELETE | /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | Delete a phone-numbers belonging to the account used to make the request. |
| GET | /2010-04-01/Accounts/{AccountSid}/Keys.json | ListKey |
| POST | /2010-04-01/Accounts/{AccountSid}/Keys.json | CreateNewKey |
| GET | /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | FetchKey |
| POST | /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | UpdateKey |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | DeleteKey |
| GET | /2010-04-01/Accounts/{AccountSid}/Messages.json | Retrieve a list of messages belonging to the account used to make the request |
| POST | /2010-04-01/Accounts/{AccountSid}/Messages.json | Send a message from the account used to make the request |
| POST | /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json | CreateMessageFeedback |
| GET | /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | Retrieve a list of Media resources belonging to the account used to make the request |
| GET | /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | Fetch a single media instance belonging to the account used to make the request |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | Delete media from your account. Once delete, you will no longer be billed |
| GET | /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | Fetch a message belonging to the account used to make the request |
| POST | /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | To redact a message-body from a post-flight message record, post to the message instance resource with an empty body |
| DELETE | /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | Deletes a message record from your account |
| GET | /2010-04-01/Accounts/{AccountSid}/Notifications.json | Retrieve a list of notifications belonging to the account used to make the request |
Showing the first 100 of 199 endpoints; the full list is in the documentation.
Questions
Does the Twilio - Api API need an API key?
Yes. The Twilio - Api API uses HTTP Basic authentication; the documentation explains how to get credentials.
Does the Twilio - Api API support HTTPS?
Yes, the Twilio - Api API is served over HTTPS.
How many endpoints does the Twilio - Api API have?
Its OpenAPI description lists 199 endpoints in version 1.42.0. The first 100 are shown on this page.
What are alternatives to the Twilio - Api API?
Other Phone APIs include Twilio - Accounts, ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, Mobility API, Telnyx API, Twilio - Autopilot.
Similar phone APIs
Compare alternatives →Twilio - Accounts
PhoneThis is the public Twilio REST API.
ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management
PhoneETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management described using OpenAPI.
Mobility API
PhoneTransit API can be used to obtain time-aggregated data representing moving the people between various spatial points within the Czech Republic. Having A - 'from' and B - 'to' points, the API can return count of people traveling from A to B or people that are from A and traveling to B, etc. The mobility data is based on moving mobile stations in O2 mobile network.
Telnyx API
PhoneSIP trunking, SMS, MMS, Call Control and Telephony Data Services.
Twilio - Autopilot
PhoneThis is the public Twilio REST API.
Socio-demo API
PhoneSocio-demo API can be used to obtain time-aggregated data representing groups of people on the given location in the Czech Republic. Having a location, the API can return count of people belonging to age group or gender aggregated by hours. The socio-demo data is based on presence of mobile stations in O2 mobile network.
Listed from APIs.guru (CC0).