Revoking Tokens

Parameters
token:This parameter should contain the token string to be revoked
token_type_hint:Optional for performance - this can be either one of access_token or refresh_token.

Revoking a token should be done when a user wishes to logout of the client integration.

The response is always returned with an empty body and a 200 http status code regardless if a token was revoked or not.

You can revoke an access or refresh token by sending a POST request to the following URL:

curl -X POST \
     -H "Content-Type: application/x-www-form-urlencoded" \
     --data "token=[access or refresh token]&token_type_hint=['access_token' or 'refresh_token']" \
     https://api.restream.io/oauth/revoke

Upon a successful revocation, any access or refresh tokens which were associated with each other will be permanently invalidated. Ex: A revocation request for an access token will also revoke the corresponding refresh token and vice versa.

Response

Success
Error
<Empty body>