Screenshot WOW SAVE 20% on the All Access Bundle. Use "OAUTH20OFF" at checkout.
GET DEAL
3rd Party Integration

Destroy

Published: March 22, 2019 | Updated: March 22nd, 2019
  1. Home
  2. Docs
  3. General
  4. OAuth 2.0 Endpoints
  5. Destroy

This endpoint is used to destroy an access token as well as destroy a user session.

Parameters

  • access_token (required)
  • post_logout_redirect_uri (optional) only valid for destroying user sessions. This paramter is ignored if an access token is presented.
  • state (optional)

Example

curl -X GET \
'/oauth/destroy?access_token=1234&post_logout_redirect_uri=encoded_logout_redirect_url&state=state_value'

If you passed the logout redirect URI parameter, you should not pass the access_token. The redirect URL is meant for destroying sessions and not the access token.

Response

{
    "status": true,
    "description": "Session destroyed successfully"
}

For security reasons, the response will always return a successful message.

Icon