O Auth

OAuth Token Refresh

POST
/oauth/token?refresh

Access tokens are only valid for a given period of time (typically one hour) for security reasons. Whenever acquiring an new access token its TTL is also given (see expires_in), along with a refresh token that can be used to acquire a new access token after the current one has expired.

Request Body

application/json

grant_type*string

When refreshing an existing token use refresh_token.

Default"refresh_token"
refresh_token*string

The token provided when you got the expired access token.

client_id?string

The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.

client_secret?string

The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.

Response Body

application/json

application/json

curl -X POST "https://example.com/oauth/token?refresh=" \  -H "Content-Type: application/json" \  -d '{    "grant_type": "refresh_token",    "refresh_token": "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3"  }'
{  "access_token": "MDZhYzBlMGI1YzQ0ZjI1ZjYzYmUyNmMzZWQ5ZGNmOGYyNmQxMmMyMmQ2NmNiY2M3NW=",  "expires_in": 86400,  "refresh_token": "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3",  "token_type": "Bearer"}