Refresh Token
Authentication
Refresh Token
Obtain a new access token using a refresh token
POST
Refresh Token
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://docs.contafy.com.mx/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
No authentication required (uses refresh token in request body).Request Body
Valid refresh token obtained from the login endpoint.
Response
New JWT access token for authenticating API requests. Include this in the
Authorization header as Bearer {accessToken}.Example Request
Example Response
Error Responses
Error type identifier.
Human-readable error message.
Common Errors
401 UnauthorizedNotes
- Access tokens typically expire after 1 hour
- Refresh tokens typically expire after 7 days
- When a refresh token expires, the user must log in again
- Store refresh tokens securely and never expose them in client-side code