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.
Autorização
Seção intitulada “Autorização”Sem autenticação.
Exemplo de requisição
Seção intitulada “Exemplo de requisição”curl -X POST https://api.salesbud.com.br/oauth/revoke \ -d 'token=...' \ -d 'token_type_hint=refresh_token' \ -d 'client_id=https://...'Respostas
Seção intitulada “Respostas”| Status | Descrição |
|---|---|
200 | The token can no longer be used, or was never known. The body is empty. |
400 | token or client_id is missing, token_type_hint is not one of its two values, or the form carries another field. |
401 | The client_id is not an accepted connector app. |
413 | The request body is larger than the accepted limit. |
415 | The request media type is not supported by this endpoint. |
429 | Client rate limit exceeded. |
503 | A required audit or rate-limit dependency is unavailable. |