REST API: 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 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.
Auth Token properties
Resource Properties in REST API format | |
---|---|
account_sid
|
The SID of the Account that the secondary Auth Token was created for. |
auth_token
|
The promoted Auth Token that must be used to authenticate future API requests. |
date_created
|
The date and time in UTC when the resource was created specified in ISO 8601 format. |
date_updated
|
The date and time in GMT when the resource was last updated specified in ISO 8601 format. |
url
|
The URI for this resource, relative to |
Update an AuthTokenPromotion resource
https://accounts.twilio.com/v1/AuthTokens/Promote
This action will delete the current primary Auth Token, promote the secondary Auth Token to primary.
Example 1
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.