Pular para o conteúdo

Revoke a connection

post /oauth/revoke

Revokes a connection made by signing in with OAuth (RFC 7009). Send a refresh token or an access token of the connection: either one revokes the whole connection, with its refresh tokens and access tokens, and it shows as revoked on the API credentials screen. The answer is 200 with an empty body whether the token was valid, unknown, already revoked or issued to another app, so it never confirms that a token exists. Connecting again creates a new connection. A connection an administrator disabled stays disabled: its refresh tokens end, but only an administrator’s revocation moves it to revoked.

Sem autenticação.

Terminal window
curl -X POST https://api.salesbud.com.br/oauth/revoke \
-d 'token=...' \
-d 'token_type_hint=refresh_token' \
-d 'client_id=https://...'
StatusDescrição
200The token can no longer be used, or was never known. The body is empty.
400token or client_id is missing, token_type_hint is not one of its two values, or the form carries another field.
401The client_id is not an accepted connector app.
413The request body is larger than the accepted limit.
415The request media type is not supported by this endpoint.
429Client rate limit exceeded.
503A required audit or rate-limit dependency is unavailable.