Skip to documentation
Open dashboard
On this page

POST /oauth/revoke

OAuth uses S256 PKCE, an exact redirect URI and a separate resource for REST or MCP. Consent is completed in Tong. Refresh tokens rotate on every use.

Request example#

curl -X POST 'https://platform.tongai.io/oauth/revoke' \  -H "Content-Type: application/x-www-form-urlencoded" \  --data-urlencode 'token=YOUR_REFRESH_TOKEN' \  --data-urlencode 'client_id=https://your-app.example/oauth/client.json' \  --data-urlencode 'token_type_hint=refresh_token'
Configuration
curl --version

Authentication#

none

Parameters#

No parameters are required.

Request body#

application/x-www-form-urlencoded
object

Response schema#

JSON
{}

Errors and limits#

JSON
{  "error": "invalid_request"}