Twilio uses the Account SID and Auth Token to authenticate API requests. The Auth Token can be rotated in the Console or with this API.
There are two related endpoints, one to promote the secondary Auth Token and this one to create or delete 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 Forbiddenerror.
Response Definition
| Property | Type | Description |
|---|---|---|
account_sid | string | The SID of the Account that the secondary Auth Token was created for. Pattern: ^AC[0-9a-fA-F]{32}$ Min length: 34Max length: 34 |
secondary_auth_token | string | The generated secondary Auth Token that can be used to authenticate future API requests. |
date_created | string | The date and time when this auth token was created. |
date_updated | string | The date and time when this auth token was last updated. |
url | string | The URI for this resource, relative to https://accounts.twilio.com |