Skip to main content
POST
/
auth
/
revoke
Revoke Access Token
curl --request POST \
  --url https://api.fyatu.com/api/v3.20/auth/revoke
{
  "success": true,
  "status": 123,
  "message": "<string>",
  "meta": {
    "requestId": "req_9f3e2a1b4c5d67e8",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

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

Immediately invalidate an access token before it expires. Use this when your integration is shutting down, when you suspect a token has been compromised, or when generating a new token to replace the existing one.

Behavior

  • The token is invalidated immediately upon successful revocation
  • Subsequent requests with the revoked token receive 401 AUTH_TOKEN_INVALID
  • Revoked tokens cannot be refreshed

Error Codes

CodeDescription
AUTH_TOKEN_MISSINGNo Authorization header provided
AUTH_TOKEN_INVALIDToken is already invalid or expired
Revoking a token is permanent and cannot be undone. After revocation you must generate a new token via POST /auth/token.

Response

Token revoked

success
boolean
Example:

true

status
integer
message
string
meta
object