Twilio

Twilio Accounts v1

This is the public Twilio REST API.

Communication#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

This is the public Twilio REST API.

Endpoints 20

AccountsV1AuthTokenPromotion

  • POSTPromote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error./v1/AuthTokens/PromotePromote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error.

AccountsV1Aws

  • GETRetrieves a collection of AWS Credentials belonging to the account used to make the request/v1/Credentials/AWS?PageSize=1&Page=0&PageToken=stringRetrieves a collection of AWS Credentials belonging to the account used to make the request
  • POSTCreate a new AWS Credential/v1/Credentials/AWSCreate a new AWS Credential
  • GETFetch the AWS credentials specified by the provided Credential Sid/v1/Credentials/AWS/:SidFetch the AWS credentials specified by the provided Credential Sid
  • POSTModify the properties of a given Account/v1/Credentials/AWS/:SidModify the properties of a given Account
  • DELETEDelete a Credential from your account/v1/Credentials/AWS/:SidDelete a Credential from your account

AccountsV1BulkConsents

  • POSTCreateBulkConsents/v1/Consents/Bulk

AccountsV1BulkContacts

  • POSTCreateBulkContacts/v1/Contacts/Bulk

AccountsV1MessagingGeopermissions

  • GETFetchMessagingGeopermissions/v1/Messaging/GeoPermissions?CountryCode=IN,PK,US
  • PATCHUpdateMessagingGeopermissions/v1/Messaging/GeoPermissions

AccountsV1PublicKey

  • GETRetrieves a collection of Public Key Credentials belonging to the account used to make the request/v1/Credentials/PublicKeys?PageSize=1&Page=0&PageToken=stringRetrieves a collection of Public Key Credentials belonging to the account used to make the request
  • POSTCreate a new Public Key Credential/v1/Credentials/PublicKeysCreate a new Public Key Credential
  • GETFetch the public key specified by the provided Credential Sid/v1/Credentials/PublicKeys/:SidFetch the public key specified by the provided Credential Sid
  • POSTModify the properties of a given Account/v1/Credentials/PublicKeys/:SidModify the properties of a given Account
  • DELETEDelete a Credential from your account/v1/Credentials/PublicKeys/:SidDelete a Credential from your account

AccountsV1Safelist

  • GETCheck if a phone number or phone number 1k prefix exists in SafeList./v1/SafeList/Numbers?PhoneNumber=+18001234567Check if a phone number or phone number 1k prefix exists in SafeList.
  • POSTAdd a new phone number or phone number 1k prefix to SafeList./v1/SafeList/NumbersAdd a new phone number or phone number 1k prefix to SafeList.
  • DELETERemove a phone number or phone number 1k prefix from SafeList./v1/SafeList/Numbers?PhoneNumber=+18001234567Remove a phone number or phone number 1k prefix from SafeList.

AccountsV1SecondaryAuthToken

  • POSTCreate a new secondary Auth Token/v1/AuthTokens/SecondaryCreate a new secondary Auth Token
  • DELETEDelete the secondary Auth Token from your account/v1/AuthTokens/Secondary?SuppressEmailNotification=trueDelete the secondary Auth Token from your account

API details

Base URL
https://accounts.twilio.com
Authentication
HTTP Basic authentication (username and password)
Operations
20 operations on 11 pathsPOST 9GET 6DELETE 4PATCH 1
Main resources
AccountsV1Aws 5AccountsV1PublicKey 5AccountsV1Safelist 3AccountsV1MessagingGeopermissions 2AccountsV1SecondaryAuthToken 2AccountsV1AuthTokenPromotion 1AccountsV1BulkConsents 1AccountsV1BulkContacts 1
Response formats
application/json
Description format
OpenAPI 3.0.1, API version 1.0.0

How to test the Twilio Accounts v1 in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Twilio Accounts v1 collection, without the publisher's secrets.
  3. Add your credentialsThis API uses HTTP Basic authentication (username and password). Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error.” (POST /v1/AuthTokens/Promote), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Twilio Accounts v1?

This is the public Twilio REST API. It is listed under Communication and has 20 endpoints.

Who publishes the Twilio Accounts v1?

It is listed from Twilio's public API description (an OpenAPI document), not published by Twilio on Swastik Codes. Anyone who controls twilio.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Twilio Accounts v1?

Requests go to https://accounts.twilio.com. Endpoint paths are added to this base URL.

How do I authenticate with the Twilio Accounts v1?

With HTTP Basic authentication (username and password).

How many endpoints does the Twilio Accounts v1 have?

20 operations on 11 paths (9 POST, 6 GET, 4 DELETE, 1 PATCH). The largest groups are AccountsV1Aws, AccountsV1PublicKey, AccountsV1Safelist, AccountsV1MessagingGeopermissions.

Is forking the Twilio Accounts v1 free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.