Revoga um token do MCP (RFC 7009)
POST/oauth/revoke
- Auth
- Requires a token
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.
Revogar o access token ou o refresh token revoga a conexão inteira: o assistente para de enxergar a comunidade na hora. Token desconhecido também responde 200, como manda a RFC.
Request body application/x-www-form-urlencoded
| Name | Type | Description |
|---|---|---|
tokenrequired | string | |
token_type_hintoptional | access_token | refresh_token | |
client_idrequired | string | |
client_secretoptional | string |
Responses
| Status | Description |
|---|---|
200 | Revogado (ou já não valia). |
401 | `invalid_client`. |
curl example
curl -X POST "https://api.memberfy.net/oauth/revoke" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"token":"string","client_id":"string"}'