Mint a temporary API token
POST/v3/auth/tokens
Creates a short-lived bearer token for the authenticated account. This endpoint must be called with live account API keys; temporary bearer tokens and test API keys cannot mint additional tokens.
When phone_number or phone_numbers is supplied, the token is scoped to those Sendblue phone numbers.
When no phone selector is supplied, the token is an account-scoped temporary token.
The plaintext token is returned only once.
Mint a temporary API token
curl https://api.sendblue.co/v3/auth/tokens \
-X POST \
-H "sb-api-key-id: $SENDBLUE_API_API_KEY" \
-H "sb-api-secret-key: $SENDBLUE_API_API_SECRET"{
"token": "sb_tmp_v1.11111111-1111-4111-8111-111111111111.abcdefghijklmnopqrstuvwxyzABCDEFGHI",
"expires_at": "2026-08-14T20:15:00.000Z",
"phone_numbers": [
"+12125550101"
],
"token_id": "11111111-1111-4111-8111-111111111111",
"token_type": "Bearer"
}Returns Examples
{
"token": "sb_tmp_v1.11111111-1111-4111-8111-111111111111.abcdefghijklmnopqrstuvwxyzABCDEFGHI",
"expires_at": "2026-08-14T20:15:00.000Z",
"phone_numbers": [
"+12125550101"
],
"token_id": "11111111-1111-4111-8111-111111111111",
"token_type": "Bearer"
}