curl --request POST \
--url https://api.example.com/api/auth/refresh \
--header 'Content-Type: application/json' \
--data '
{
"refreshToken": "<string>"
}
'{
"accessToken": "<string>",
"error": "<string>",
"message": "<string>"
}Obtain a new access token using a refresh token
curl --request POST \
--url https://api.example.com/api/auth/refresh \
--header 'Content-Type: application/json' \
--data '
{
"refreshToken": "<string>"
}
'{
"accessToken": "<string>",
"error": "<string>",
"message": "<string>"
}Refreshes an expired access token using a valid refresh token. This endpoint allows users to maintain their session without requiring them to log in again.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pakomercado0517/tresa-contafy-web/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header as Bearer {accessToken}.curl -X POST https://api.contafy.com/api/auth/refresh \
-H "Content-Type: application/json" \
-d '{
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}'
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ1c3JfMWEyYjNjNGQ1ZTZmN2c4aCIsImlhdCI6MTcwNTMyMDAwMCwiZXhwIjoxNzA1MzIzNjAwfQ..."
}
{
"error": "INVALID_TOKEN",
"message": "El refresh token es inválido o ha expirado"
}
{
"error": "VALIDATION_ERROR",
"message": "Refresh token es requerido"
}