If you are using Functions(Classic) or Services and have included your auth token directly instead of using a variable, you must redeploy your classic functions and services when you rotate or update your auth token. Otherwise, those functions and services will fail with a "403 Forbidden" error.
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 create or delete the secondary Auth Token and this one to promote the secondary Auth Token.
account_sid
type: SID<AC>The SID of the Account that the secondary Auth Token was created for.
^AC[0-9a-fA-F]{32}$
34
34
auth_token
type: stringThe promoted Auth Token that must be used to authenticate future API requests.
date_created
type: string<date-time>The date and time in UTC when the resource was created specified in ISO 8601 format.
date_updated
type: string<date-time>The date and time in GMT when the resource was last updated specified in ISO 8601 format.
POST https://accounts.twilio.com/v1/AuthTokens/Promote
This action will delete the current primary Auth Token, and promote the secondary Auth Token to primary.
This action does not accept any parameters.