Skip to main content
POST
/
v1
/
auth
/
rotate
Rotate access token
curl --request POST \
  --url https://api.adullam.dev/v1/auth/rotate \
  --header 'Authorization: Bearer <token>'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "partner_id": "partner_abc123"
}

Adullam Rotate Access Token

Access token rotation replaces an existing access token with a new one to reduce the risk of compromise. Rotation invalidates the old token and returns a new token for subsequent requests; perform it periodically or immediately after any suspected security incident.

Authorizations

Authorization
string
header
required

Use the access token obtained from /v1/auth/token

Response

Token rotated successfully

access_token
string
Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
Example:

"Bearer"

expires_in
integer

Token expiration time in seconds

Example:

3600

partner_id
string
Example:

"partner_abc123"