> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Revoke a token API Reference

Token revocation (RFC 7009). Send a current access token or your latest refresh token as `token`, with the same client authentication as the token endpoint.

Revoking either one ends the whole authorization: every access and refresh token of that grant stops working at once, and the app leaves the user's Connected apps.

Answers 200 with an empty body whether or not the token was live, so a revoked, expired or unknown token tells you nothing.


## POST /oauth/revoke

**Revoke a token**

Token revocation (RFC 7009). Send a current access token or your latest refresh token as `token`, with the same client authentication as the token endpoint.

Revoking either one ends the whole authorization: every access and refresh token of that grant stops working at once, and the app leaves the user's Connected apps.

Answers 200 with an empty body whether or not the token was live, so a revoked, expired or unknown token tells you nothing.


### Request Body


### Responses

#### 200: Revoked, or nothing to revoke.

#### 400: `invalid_request`: `token` is missing.

**Response Body:**

- **error** (required) `string`: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, invalid_token, too_many_requests or server_error.
- **error_description** `string`: Human-readable detail.

#### 401: `invalid_client`: unknown client_id or wrong client_secret.

**Response Body:**

- **error** (required) `string`: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, invalid_token, too_many_requests or server_error.
- **error_description** `string`: Human-readable detail.

---


# Related Schema Definitions

## OAuthError

Error body of the OAuth endpoints (RFC 6749 section 5.2).

### Properties

- **error** (required) `string`: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, invalid_token, too_many_requests or server_error.
- **error_description** `string`: Human-readable detail.