W3builders
AOP API

AOP API/Authentication

Refresh Access Token

POST/auth/token/refresh
no auth

Exchange a refresh token for a new access token, without re-sending your client secret.

Endpoint

POSThttps://api.w3builders.com/v1/auth/token/refresh

Request body

  • refresh_token (required)
  • The refresh token is single-use — this call revokes it and returns a new one. Always store the latest refresh_token from the response.
  • If the underlying credential has been revoked from AOP Settings, this returns 403.

Response parameters

FieldType
access_tokenvalue
token_typevalue
expires_invalue
refresh_tokenvalue
Refresh Access Token
curl -X POST https://api.w3builders.com/v1/auth/token/refresh \
-H "Content-Type: application/json" \
-d '{
"refresh_token": "5c2f9e..."
}'
{
"access_token": "eyJhbGciOi...",
"token_type": "Bearer",
"expires_in": 1800,
"refresh_token": "8a13cd..."
}
Was this page helpful?