curl --request POST \
--url https://api.example.com/api/auth/refresh \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"refreshToken": "<string>"
}
'{
"success": true,
"data": {
"accessToken": "<string>",
"refreshToken": "<string>"
}
}Refresh access token using refresh token
curl --request POST \
--url https://api.example.com/api/auth/refresh \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"refreshToken": "<string>"
}
'{
"success": true,
"data": {
"accessToken": "<string>",
"refreshToken": "<string>"
}
}Obtains a new access token and refresh token pair using a valid refresh token. Requires the existing access token (even if expired) in the Authorization header to identify the user. The old refresh token is automatically revoked.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LeonardoCaero/platform-api/llms.txt
Use this file to discover all available pages before exploring further.
Bearer <access_token>{
"success": false,
"error": {
"message": "Invalid refresh token",
"statusCode": 401
}
}
{
"success": false,
"error": {
"message": "Missing or unreadable access token",
"statusCode": 401
}
}
{
"success": false,
"error": {
"message": "User not found or disabled",
"statusCode": 401
}
}
{
"success": false,
"error": {
"message": "Validation error",
"statusCode": 400,
"details": []
}
}
curl -X POST https://api.example.com/api/auth/refresh \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-d '{
"refreshToken": "rt_clx1234567890abcdef"
}'
{
"success": true,
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "rt_clx9876543210zyxwvu"
}
}