Exchange Auth Token
POST/auth/token
This endpoint can be used to request a new access token using a refresh token.
Request
Header Parameters
origin stringrequired
Origin header to specify the origin of the request.
- application/json
Body
required
refreshToken stringrequired
JWT that is used to request a new access token. (Valid for 30 days.)
clientApplicationId stringrequired
Id of the client application.
Responses
- 200
- 403
successful operation
- application/json
- Schema
- Example (from schema)
Schema
accessToken string
The new access token that will be used for subsequent authenticated requests. This token replaces the previous access token that has expired or is about to expire.
refreshToken string
The new refresh token to request a new access token.
{
"accessToken": "eyJhbGciOiJSUzI1NiIsI...",
"refreshToken": "eyJhbGciOiJSUzI1NiIsI..."
}
REFRESH_TOKEN_EXPIRED The refresh token has expired.
CLIENT_APPLICATION_MISMATCH The client application does not match the refresh token.
ORIGIN_NOT_ALLOWED The origin is not allowed to access this endpoint.
- application/json
- Schema
- Example (from schema)
Schema
statusCode integerrequired
statusName stringrequired
errorCode stringrequired
reason string
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}
Loading...