APIHub
Back to Explore

Twilio - Accounts

The Twilio Accounts API lets you manage authentication tokens and external credentials for a Twilio account, including promoting or deleting secondary auth tokens and creating, listing, retrieving, updating, or deleting AWS and public‑key credentials.

Telecom
basic
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

541ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
POST

/v1/AuthTokens/Promote

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.

DELETE

/v1/AuthTokens/Secondary

Delete the secondary Auth Token from your account

POST

/v1/AuthTokens/Secondary

Create a new secondary Auth Token

GET

/v1/Credentials/AWS

Retrieves a collection of AWS Credentials belonging to the account used to make the request

  • PageSize (query, limit) — How many resources to return in each list page. The default is 50, and the maximum is 1000.
  • Page (query, page) — The page index. This value is simply for client state.
  • PageToken (query) — The page token. This is provided by the API.
POST

/v1/Credentials/AWS

Create a new AWS Credential

DELETE

/v1/Credentials/AWS/{Sid}

Delete a Credential from your account

  • Sid (path, required) — The Twilio-provided string that uniquely identifies the AWS resource to delete.
GET

/v1/Credentials/AWS/{Sid}

Fetch the AWS credentials specified by the provided Credential Sid

  • Sid (path, required) — The Twilio-provided string that uniquely identifies the AWS resource to fetch.
POST

/v1/Credentials/AWS/{Sid}

Modify the properties of a given Account

  • Sid (path, required) — The Twilio-provided string that uniquely identifies the AWS resource to update.
GET

/v1/Credentials/PublicKeys

Retrieves a collection of Public Key Credentials belonging to the account used to make the request

  • PageSize (query, limit) — How many resources to return in each list page. The default is 50, and the maximum is 1000.
  • Page (query, page) — The page index. This value is simply for client state.
  • PageToken (query) — The page token. This is provided by the API.
POST

/v1/Credentials/PublicKeys

Create a new Public Key Credential

DELETE

/v1/Credentials/PublicKeys/{Sid}

Delete a Credential from your account

  • Sid (path, required) — The Twilio-provided string that uniquely identifies the PublicKey resource to delete.
GET

/v1/Credentials/PublicKeys/{Sid}

Fetch the public key specified by the provided Credential Sid

  • Sid (path, required) — The Twilio-provided string that uniquely identifies the PublicKey resource to fetch.
POST

/v1/Credentials/PublicKeys/{Sid}

Modify the properties of a given Account

  • Sid (path, required) — The Twilio-provided string that uniquely identifies the PublicKey resource to update.

13 endpoints auto-detected

Authentication

This API uses Basic authentication (a username and password).

curl -X POST \
  "https://accounts.twilio.com/v1/AuthTokens/Promote"

accounts.twilio.com · HTTPS only