# Twilio - Preview API

> This is the public Twilio REST API.

Twilio - Preview is a phone API from twilio.com. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 147 endpoints.

## At a glance

- Category: [Phone](https://www.openparable.com/apis/category/phone)
- Provider: twilio.com
- Authentication: HTTP Basic
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://preview.twilio.com
- Documentation: https://support.twilio.com/
- OpenAPI description: https://api.apis.guru/v2/specs/twilio.com/twilio_preview/1.42.0/openapi.json
- Version: 1.42.0
- Specification updated: 2023-04-20

## Example request

```bash
curl -X GET "https://preview.twilio.com/DeployedDevices/Fleets" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
```

## Endpoints

- `GET /DeployedDevices/Fleets` — Retrieve a list of all Fleets belonging to your account.
- `POST /DeployedDevices/Fleets` — Create a new Fleet for scoping of deployed devices within your account.
- `GET /DeployedDevices/Fleets/{FleetSid}/Certificates` — Retrieve a list of all Certificate credentials belonging to the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Certificates` — Enroll a new Certificate credential to the Fleet, optionally giving it a friendly name and assigning to a Device.
- `GET /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}` — Fetch information about a specific Certificate credential in the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}` — Update the given properties of a specific Certificate credential in the Fleet, giving it a friendly name or assigning to a Device.
- `DELETE /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}` — Unregister a specific Certificate credential from the Fleet, effectively disallowing any inbound client connections that are presenting it.
- `GET /DeployedDevices/Fleets/{FleetSid}/Deployments` — Retrieve a list of all Deployments belonging to the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Deployments` — Create a new Deployment in the Fleet, optionally giving it a friendly name and linking to a specific Twilio Sync service instance.
- `GET /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}` — Fetch information about a specific Deployment in the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}` — Update the given properties of a specific Deployment credential in the Fleet, giving it a friendly name or linking to a specific Twilio Sync service instance.
- `DELETE /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}` — Delete a specific Deployment from the Fleet, leaving associated devices effectively undeployed.
- `GET /DeployedDevices/Fleets/{FleetSid}/Devices` — Retrieve a list of all Devices belonging to the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Devices` — Create a new Device in the Fleet, optionally giving it a unique name, friendly name, and assigning to a Deployment and/or human identity.
- `GET /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}` — Fetch information about a specific Device in the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}` — Update the given properties of a specific Device in the Fleet, giving it a friendly name, assigning to a Deployment, or a human identity.
- `DELETE /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}` — Delete a specific Device from the Fleet, also removing it from associated Deployments.
- `GET /DeployedDevices/Fleets/{FleetSid}/Keys` — Retrieve a list of all Keys credentials belonging to the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Keys` — Create a new Key credential in the Fleet, optionally giving it a friendly name and assigning to a Device.
- `GET /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}` — Fetch information about a specific Key credential in the Fleet.
- `POST /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}` — Update the given properties of a specific Key credential in the Fleet, giving it a friendly name or assigning to a Device.
- `DELETE /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}` — Delete a specific Key credential from the Fleet, effectively disallowing any inbound client connections that are presenting it.
- `GET /DeployedDevices/Fleets/{Sid}` — Fetch information about a specific Fleet in your account.
- `POST /DeployedDevices/Fleets/{Sid}` — Update the friendly name property of a specific Fleet in your account.
- `DELETE /DeployedDevices/Fleets/{Sid}` — Delete a specific Fleet from your account, also destroys all nested resources: Devices, Deployments, Certificates, Keys.
- `GET /HostedNumbers/AuthorizationDocuments` — Retrieve a list of AuthorizationDocuments belonging to the account initiating the request.
- `POST /HostedNumbers/AuthorizationDocuments` — Create an AuthorizationDocument for authorizing the hosting of phone number capabilities on Twilio's platform.
- `GET /HostedNumbers/AuthorizationDocuments/{Sid}` — Fetch a specific AuthorizationDocument.
- `POST /HostedNumbers/AuthorizationDocuments/{Sid}` — Updates a specific AuthorizationDocument.
- `GET /HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders` — Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDocument.
- `GET /HostedNumbers/HostedNumberOrders` — Retrieve a list of HostedNumberOrders belonging to the account initiating the request.
- `POST /HostedNumbers/HostedNumberOrders` — Host a phone number's capability on Twilio's platform.
- `GET /HostedNumbers/HostedNumberOrders/{Sid}` — Fetch a specific HostedNumberOrder.
- `POST /HostedNumbers/HostedNumberOrders/{Sid}` — Updates a specific HostedNumberOrder.
- `DELETE /HostedNumbers/HostedNumberOrders/{Sid}` — Cancel the HostedNumberOrder (only available when the status is in `received`).
- `GET /Sync/Services`
- `POST /Sync/Services`
- `GET /Sync/Services/{ServiceSid}/Documents`
- `POST /Sync/Services/{ServiceSid}/Documents`
- `GET /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions` — Retrieve a list of all Permissions applying to a Sync Document.
- `GET /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}` — Fetch a specific Sync Document Permission.
- `POST /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}` — Update an identity's access to a specific Sync Document.
- `DELETE /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}` — Delete a specific Sync Document Permission.
- `GET /Sync/Services/{ServiceSid}/Documents/{Sid}`
- `POST /Sync/Services/{ServiceSid}/Documents/{Sid}`
- `DELETE /Sync/Services/{ServiceSid}/Documents/{Sid}`
- `GET /Sync/Services/{ServiceSid}/Lists`
- `POST /Sync/Services/{ServiceSid}/Lists`
- `GET /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items`
- `POST /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items`
- `GET /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}`
- `POST /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}`
- `DELETE /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}`
- `GET /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions` — Retrieve a list of all Permissions applying to a Sync List.
- `GET /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}` — Fetch a specific Sync List Permission.
- `POST /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}` — Update an identity's access to a specific Sync List.
- `DELETE /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}` — Delete a specific Sync List Permission.
- `GET /Sync/Services/{ServiceSid}/Lists/{Sid}`
- `DELETE /Sync/Services/{ServiceSid}/Lists/{Sid}`
- `GET /Sync/Services/{ServiceSid}/Maps`
- `POST /Sync/Services/{ServiceSid}/Maps`
- `GET /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items`
- `POST /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items`
- `GET /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}`
- `POST /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}`
- `DELETE /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}`
- `GET /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions` — Retrieve a list of all Permissions applying to a Sync Map.
- `GET /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}` — Fetch a specific Sync Map Permission.
- `POST /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}` — Update an identity's access to a specific Sync Map.
- `DELETE /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}` — Delete a specific Sync Map Permission.
- `GET /Sync/Services/{ServiceSid}/Maps/{Sid}`
- `DELETE /Sync/Services/{ServiceSid}/Maps/{Sid}`
- `GET /Sync/Services/{Sid}`
- `POST /Sync/Services/{Sid}`
- `DELETE /Sync/Services/{Sid}`
- `GET /marketplace/AvailableAddOns` — Retrieve a list of Add-ons currently available to be installed.
- `GET /marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions` — Retrieve a list of Extensions for the Available Add-on.
- `GET /marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid}` — Fetch an instance of an Extension for the Available Add-on.
- `GET /marketplace/AvailableAddOns/{Sid}` — Fetch an instance of an Add-on currently available to be installed.
- `GET /marketplace/InstalledAddOns` — Retrieve a list of Add-ons currently installed on this Account.
- `POST /marketplace/InstalledAddOns` — Install an Add-on for the Account specified.
- `GET /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions` — Retrieve a list of Extensions for the Installed Add-on.
- `GET /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}` — Fetch an instance of an Extension for the Installed Add-on.
- `POST /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}` — Update an Extension for an Add-on installation.
- `GET /marketplace/InstalledAddOns/{Sid}` — Fetch an instance of an Add-on currently installed on this Account.
- `POST /marketplace/InstalledAddOns/{Sid}` — Update an Add-on installation for the Account specified.
- `DELETE /marketplace/InstalledAddOns/{Sid}` — Remove an Add-on installation from your account
- `GET /understand/Assistants`
- `POST /understand/Assistants`
- `GET /understand/Assistants/{AssistantSid}/Dialogues/{Sid}`
- `GET /understand/Assistants/{AssistantSid}/FallbackActions`
- `POST /understand/Assistants/{AssistantSid}/FallbackActions`
- `GET /understand/Assistants/{AssistantSid}/FieldTypes`
- `POST /understand/Assistants/{AssistantSid}/FieldTypes`
- `GET /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues`
- `POST /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues`
- `GET /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}`
- `DELETE /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}`
- `GET /understand/Assistants/{AssistantSid}/FieldTypes/{Sid}`
- `POST /understand/Assistants/{AssistantSid}/FieldTypes/{Sid}`

## Questions

### Does the Twilio - Preview API need an API key?

Yes. The Twilio - Preview API uses HTTP Basic authentication; the documentation explains how to get credentials.

### Does the Twilio - Preview API support HTTPS?

Yes, the Twilio - Preview API is served over HTTPS.

### How many endpoints does the Twilio - Preview API have?

Its OpenAPI description lists 147 endpoints in version 1.42.0. The first 100 are shown on this page.

### What are alternatives to the Twilio - Preview 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

- [Twilio - Accounts](https://www.openparable.com/apis/twilio-accounts): This is the public Twilio REST API.
- [ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management](https://www.openparable.com/apis/etsi-gs-mec-010-2-part-2-application-lifecycle-rules-and-requirements-management): ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management described using OpenAPI.
- [Twilio - Api](https://www.openparable.com/apis/twilio): This is the public Twilio REST API.
- [Mobility API](https://www.openparable.com/apis/mobility): Transit 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](https://www.openparable.com/apis/telnyx): SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
- [Twilio - Autopilot](https://www.openparable.com/apis/twilio-autopilot): This is the public Twilio REST API.
- [Socio-demo API](https://www.openparable.com/apis/socio-demo): Socio-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.
- [Twilio - Bulkexports](https://www.openparable.com/apis/twilio-bulkexports): This is the public Twilio REST API.
- [Twilio - Chat](https://www.openparable.com/apis/twilio-chat): This is the public Twilio REST API.
- [Phone Validation](https://www.openparable.com/apis/phone-validation): Validate phone numbers globally
- [Phone Specification](https://www.openparable.com/apis/phone-specification): Rest Api for Phone specifications
- [BulkSMS JSON REST API](https://www.openparable.com/apis/bulksms-json): ## Overview The JSON REST API allows you to submit and receive [BulkSMS](https://www.bulksms.com/) messages. You can also get access to past messages and see your account profile. The base URL to use for this service is `https://api.bulksms.com/v1`. The base URL cannot be used on its own; you must append a path that identifies an operation and you may have to specify some path parameters as well. [Click here](/developer/) to go to the main BulkSMS developer site. In order to give you an idea on how the API can be used, some JSON snippets are provided below. Have a look at the [messages section](#tag/Message) for more information. Probably the most simple example ``` { "to": "+27001234567", "body": "Hello World!" } ``` You can send unicode automatically using the `auto-unicode` query parameter. Alternatively, you can specify `UNICODE` for the `encoding` property in the request body. Please note: when `auto-unicode` is specified and the value of the `encoding` property is `UNICODE`, the message will always be sent as `UNICODE`. Here is an example that sets the `encoding` explicitly ``` { "to": "+27001234567", "body": "Dobrá práce! Jak se máš?", "encoding": "UNICODE" } ``` You can also specify a from number ``` { "from": "+27007654321", "to": "+27001234567", "body": "Hello World!" } ``` Similar to above, but repliable ``` { "from": { "type": "REPLIABLE" }, "to": "+27001234567", "body": "Hello World!" } ``` A message to a group called Everyone ``` { "to": { "type": "GROUP", "name": "Everyone" }, "body": "Hello World!" } ``` A message to multiple recipients ``` { "to": ["+27001234567", "+27002345678", "+27003456789"], "body": "Happy Holidays!" } ``` Sending more than one message in the same request ``` [ { "to": "+27001234567", "body": "Hello World!" }, { "to": "+27002345678", "body": "Hello Universe!" } ] ``` **The insecure base URL `http://api.bulksms.com/v1` is deprecated** and may in future result in a `301` redirect response, or insecure requests may be rejected outright. Please use the secure (`https`) URI above. ### HTTP Content Type All API methods expect requests to supply a `Content-Type` header with the value `application/json`. All responses will have the `Content-Type` header set to `application/json`. ### JSON Formatting You are advised to format your JSON resources according to strict JSON format rules. While the API does attempt to parse strictly invalid JSON documents, doing so may lead to incorrect interpretation and unexpected results. Good JSON libraries will produce valid JSON suitable for submission, but if you are manually generating the JSON text, be careful to follow the JSON format. This include correct escaping of control characters and double quoting of property names. See the [JSON specification](https://tools.ietf.org/html/rfc4627) for further information. ### Date Formatting Dates are formatted according to ISO-8601, such as `1970-01-01T10:00:00+01:00` for 1st January 1970, 10AM UTC+1. See the [Wikipedia ISO 8601 reference](https://en.wikipedia.org/wiki/ISO_8601) for further information. Specifically, calendar dates are formatted with the 'extended' format `YYYY-MM-DD`. Basic format, week dates and ordinal dates are not supported. Times are also formatted in the 'extended' format `hh:mm:ss`. Hours, minutes and seconds are mandatory. Offset from UTC must be provided; this is to ensure that there is no misunderstanding regarding times provided to the API. The format we look for is `yyyy-MM-ddThh:mm:ss[Z|[+-]hh:mm]` Examples of valid date/times are`2011-12-31T12:00:00Z` `2011-12-31T12:00:00+02:00` ### Entity Format Modifications It is expected that over time some changes will be made to the request and response formats of various methods available in the API. Where possible, these will be implemented in a backwards compatible way. To make this possible you are required to ignore unknown properties. This enables the addition of information in response documents while maintaining compatibility with older c

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/twilio-preview (OpenParable). Cite the canonical URL above.
