Revoke Access Token
Authentication
Revoke Token
Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.
POST
Revoke 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
Invalidate an access token before it naturally expires. Use this when:- User logs out of your application
- You detect suspicious activity
- Credentials may have been compromised
- Token is no longer needed
When to Revoke Tokens
User Logout
User Logout
When a user explicitly logs out, revoke their token to prevent unauthorized access.
Security Incident
Security Incident
If you suspect a token has been compromised, revoke it immediately.
Credential Rotation
Credential Rotation
When rotating API credentials, revoke existing tokens first.
Error Codes
| Code | Description |
|---|---|
AUTH_TOKEN_MISSING | No Authorization header provided |
AUTH_TOKEN_INVALID | Token is malformed or already expired |

