Refresh JWT token
Exchanges a still-valid refresh token for a brand new access/refresh token pair, without requiring the user to re-enter credentials. Use this when the access token has expired (or is close to expiring) to keep the session alive. Permissions: All users.
Headers
- Type: stringD
C Key The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.
Body·
required
The access/refresh token pair previously issued to the client.
- Type: stringAccess
Token min length:1required - Type: stringRefresh
Token min length:1required
Responses
Request Example for post/v2/Account/refresh-token
curl /v2/Account/refresh-token \
--request POST \
--header 'Content-Type: application/json-patch+json' \
--header 'DCKey: YOUR_SECRET_TOKEN' \
--data '{
"AccessToken": "",
"RefreshToken": ""
}'
{
"AccessToken": "string",
"RefreshToken": "string"
}