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

# OAuth revoke

> Revoke an OAuth access or refresh token

Revocation is idempotent. The endpoint returns `200` whether the token was active, already revoked, or unknown.

```bash cURL theme={null}
curl -X POST https://chatatp-agent-builder-backend.onrender.com/oauth/revoke/ \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "token=$CHATATP_REFRESH_TOKEN" \
  --data-urlencode "client_id=$CHATATP_CLIENT_ID"
```

Use the refresh token to disconnect an app session, or revoke an access token immediately after a user disconnects the app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.