Refresh Access Token
Authentication
Refresh Token
Refresh an expiring Fyatu API access token without re-authenticating. POST /auth/refresh.
POST
Refresh Access Token
Documentation Index
Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Refresh an existing JWT token to obtain a new one without re-authenticating with credentials. Tokens can be refreshed up to 5 minutes after expiry.When to Refresh
- Token is about to expire (less than 5 minutes remaining)
- Token just expired (within 5-minute grace period)
- You want to extend an active session
If your token expired more than 5 minutes ago, you must obtain a new token using the Generate Token endpoint.
Token Refresh Strategy
Implement automatic token refresh in your application:Error Codes
| Code | Description |
|---|---|
AUTH_TOKEN_MISSING | No Authorization header provided |
AUTH_TOKEN_INVALID | Token is malformed |
AUTH_TOKEN_REFRESH_FAILED | Token too old (>5 min after expiry) or invalid |

