Promote the secondary Auth Token to primary
Auth Token promotion
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.
POST /v1/AuthTokens/Promote
curl \
-X POST https://accounts.twilio.com/v1/AuthTokens/Promote \
--user "username:password"
Response examples (200)
{
"account_sid": "string",
"auth_token": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"url": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"auth_token": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"url": "https://example.com"
}