Auth Token

Twilio uses the Account SID and Auth Token to authenticate API requests. The Auth Token can be rotated in the Console or with the API.

There are two related endpoints, one to create or delete the secondary Auth Token and this one to promote the secondary Auth Token.

⚠️

Warning

If you are using Services or Functions(Classic) and have included your auth token directly instead of using a variable, you must wait for 1 minute for the update of your auth token to propagate. Otherwise, those functions and services will fail with a 403 Forbidden error.

Response Definition

PropertyTypeDescription
account_sidstringThe SID of the Account that the secondary Auth Token was created for.

Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
auth_tokenstringThe promoted Auth Token that must be used to authenticate future API requests.
date_createdstringThe date and time when this auth token was created.
date_updatedstringThe date and time when this auth token was last updated.
urlstringThe URI for this resource, relative to https://accounts.twilio.com