E-File Magic

Authorization & tokens

Revoke a token

Revoke an access token or refresh token belonging to the client.

POST
/oauth/revoke
Authentication
OAuth protocol client authentication
Required scopes
See authentication requirements
Idempotency key
Not required

How to use this endpoint

Unknown or already-revoked tokens return the same empty success response. Confidential clients use their registered authentication method; public MCP clients send client_id without a secret. This endpoint does not accept a resource parameter.

cURL request
curl --request POST '<origin from OAuth metadata>/oauth/revoke' \
  --user '<client_id>:<client_secret>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'token=<access or refresh token>'

Use the exact endpoint URL from your environment's metadata. Confidential client examples use client_secret_basic; public MCP clients use client_id without a secret.