# Revoke a token (RFC 7009)

> Source: https://elaichi.ai/docs/api-reference/mcp-oauth/oauth/revokeoauthtoken/

`POST /oauth/revoke`

Resource: **Oauth** · API: **MCP OAuth**

## Code examples

### curl

```bash
curl -X POST 'https://api.elaichi.ai/oauth/revoke' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/oauth/revoke', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/oauth/revoke"
headers = {
    "Content-Type": "application/json",
}

response = requests.post(url, headers=headers)
print(response.json())
```
