Skip to content

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

NameTypeDescription
tokenrequiredstring
token_type_hintoptionalaccess_token | refresh_token
client_idrequiredstring
client_secretoptionalstring

Responses

StatusDescription
200Revogado (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"}'