Overview
This is the public Twilio REST API.
Twilio - Serverless is a phone API from twilio.com. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 39 endpoints.
At a glance
- Authentication
- HTTP Basic
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Phone
- Base URL
https://serverless.twilio.com- Version
- 1.42.0
- Endpoints
- 39
- 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://serverless.twilio.com/v1/Services" \
-H "Accept: application/json" \
-H "Authorization: Basic BASE64_USER_PASSWORD"const response = await fetch("https://serverless.twilio.com/v1/Services", {
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://serverless.twilio.com/v1/Services",
headers={
"Accept": "application/json",
"Authorization": "Basic BASE64_USER_PASSWORD",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /v1/Services | Retrieve a list of all Services. |
| POST | /v1/Services | Create a new Service resource. |
| GET | /v1/Services/{ServiceSid}/Assets | Retrieve a list of all Assets. |
| POST | /v1/Services/{ServiceSid}/Assets | Create a new Asset resource. |
| GET | /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions | Retrieve a list of all Asset Versions. |
| GET | /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid} | Retrieve a specific Asset Version. |
| GET | /v1/Services/{ServiceSid}/Assets/{Sid} | Retrieve a specific Asset resource. |
| POST | /v1/Services/{ServiceSid}/Assets/{Sid} | Update a specific Asset resource. |
| DELETE | /v1/Services/{ServiceSid}/Assets/{Sid} | Delete an Asset resource. |
| GET | /v1/Services/{ServiceSid}/Builds | Retrieve a list of all Builds. |
| POST | /v1/Services/{ServiceSid}/Builds | Create a new Build resource. At least one function version or asset version is required. |
| GET | /v1/Services/{ServiceSid}/Builds/{Sid} | Retrieve a specific Build resource. |
| DELETE | /v1/Services/{ServiceSid}/Builds/{Sid} | Delete a Build resource. |
| GET | /v1/Services/{ServiceSid}/Builds/{Sid}/Status | Retrieve a specific Build resource. |
| GET | /v1/Services/{ServiceSid}/Environments | Retrieve a list of all environments. |
| POST | /v1/Services/{ServiceSid}/Environments | Create a new environment. |
| GET | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | Retrieve a list of all Deployments. |
| POST | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | Create a new Deployment. |
| GET | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid} | Retrieve a specific Deployment. |
| GET | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs | Retrieve a list of all logs. |
| GET | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid} | Retrieve a specific log. |
| GET | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | Retrieve a list of all Variables. |
| POST | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | Create a new Variable. |
| GET | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | Retrieve a specific Variable. |
| POST | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | Update a specific Variable. |
| DELETE | /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | Delete a specific Variable. |
| GET | /v1/Services/{ServiceSid}/Environments/{Sid} | Retrieve a specific environment. |
| DELETE | /v1/Services/{ServiceSid}/Environments/{Sid} | Delete a specific environment. |
| GET | /v1/Services/{ServiceSid}/Functions | Retrieve a list of all Functions. |
| POST | /v1/Services/{ServiceSid}/Functions | Create a new Function resource. |
| GET | /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions | Retrieve a list of all Function Version resources. |
| GET | /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid} | Retrieve a specific Function Version resource. |
| GET | /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content | Retrieve a the content of a specific Function Version resource. |
| GET | /v1/Services/{ServiceSid}/Functions/{Sid} | Retrieve a specific Function resource. |
| POST | /v1/Services/{ServiceSid}/Functions/{Sid} | Update a specific Function resource. |
| DELETE | /v1/Services/{ServiceSid}/Functions/{Sid} | Delete a Function resource. |
| GET | /v1/Services/{Sid} | Retrieve a specific Service resource. |
| POST | /v1/Services/{Sid} | Update a specific Service resource. |
| DELETE | /v1/Services/{Sid} | Delete a Service resource. |
Questions
Does the Twilio - Serverless API need an API key?
Yes. The Twilio - Serverless API uses HTTP Basic authentication; the documentation explains how to get credentials.
Does the Twilio - Serverless API support HTTPS?
Yes, the Twilio - Serverless API is served over HTTPS.
How many endpoints does the Twilio - Serverless API have?
Its OpenAPI description lists 39 endpoints in version 1.42.0. All of them are shown on this page.
What are alternatives to the Twilio - Serverless API?
Other Phone APIs include Twilio - Accounts, ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, Twilio - Api, Mobility API, Telnyx API.
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.
Twilio - Api
PhoneThis is the public Twilio REST API.
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.
Listed from APIs.guru (CC0).