> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apifycloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OAuth Revoke

> Revoke an access token (RFC 7009 behavior)

## Endpoint

`POST https://api.apifycloud.io/api/v1/oauth/revoke`

## Authentication

Bearer token required.

Scope: `oauth:revoke`

## Request body

* `token` (string, required) access token to revoke

```json theme={null}
{
  "token": "eyJhbGciOi..."
}
```

## Response

Returns success even if token is invalid or already revoked.

```json theme={null}
{
  "data": {},
  "meta": {
    "timestamp": "2026-02-18T00:00:00.000Z"
  }
}
```

## Errors

* `400 invalid_request` missing token or invalid JSON body
* `401 unauthorized` invalid auth context
* `403 forbidden` missing scope
* `429 rate_limit_exceeded`
* `500 server_error`

## Example

```bash theme={null}
curl -X POST "https://api.apifycloud.io/api/v1/oauth/revoke" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{"token":"{token_to_revoke}"}'
```
