Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Revoke Access Token
Overview
Revokes (invalidates) an OAuth access token by its token_id. Use this to immediately block a compromised or no-longer-needed token.
Endpoint Details
Definition | Description |
|---|---|
Endpoint | https://api.paas-sandbox.co.passportfintech.com/v1/iam/oauth/tokens/:token_id |
Method | DELETE |
Headers | Accept-Language, Content-Length, Content-Type: application/json, Authorization |
Authentication | Access Token (Bearer Token) |
Request Body
Field | Type | Description |
|---|---|---|
token_id | String | Unique identifier of the access token. |
Example Request
Response
This endpoint does not return any response body. A successful revocation will show a status code of 200.
Common Errors and Handling
HTTP Status Code | Meaning | Description |
|---|---|---|
400 | Bad Request | Malformed |
401 | Unauthorized | Missing/expired bearer token or token lacks |
403 | Forbidden | Authenticated caller cannot revoke this token |
404 | Not Found |
|
409 | Conflict | Token is already revoked or in a non-revocable state |
500 | Server Error | Unexpected error; retry or contact support |
Best Practices
Always send the token_id in both path parameter and body to avoid mismatches.
Treat
200 OKas confirmation of success.In case of security incidents, combine this with List Tokens to identify and revoke other active tokens quickly.