Revoke a token

Overview

Revoke the access token you send with the request. Any later call with that token returns 401.

Use it when a user signs out of your app, or when a token may have been exposed.

Prerequisites

  • The bearer token you want to revoke.

Base URL

EnvironmentURL
Productionhttps://production-api.shoutaboutus.com
Developmenthttps://development-api.shoutaboutus.com

Endpoint

GET /api/v1/sso/revoking-token

Authentication

Partner or Account token

  • Only the token in the Authorization header is revoked. You can't revoke another token with this call.
🚧

This revokes the access token only. A refresh token issued with it through Step 3 stays valid until it expires (30 days) and can still get a new access token. To end the session completely, delete the refresh token on your side as well.

Rate limit

This endpoint has no rate limit. Responses do not include X-RateLimit-* headers.

Request parameters

None.

Request body

None.

Request payload

None.

Response body

The payload is inside data.

FieldTypeDescription
statusstringsuccess.
messagestringToken revoked successfully!

Response payload

{
  "data": {
    "status": "success",
    "message": "Token revoked successfully!"
  }
}

Examples

Success payload

See Response payload.

Error payload

401 Unauthenticated

The token is missing, invalid, or already revoked.

{
  "message": "Unauthenticated."
}
StatusMeaning
200The token is revoked.
401The token is missing, invalid, expired, or already revoked.
500Unexpected server error.

Example request

curl --request GET \
  --url "https://production-api.shoutaboutus.com/api/v1/sso/revoking-token" \
  --header 'Authorization: Bearer <bearer-token>' \
  --header 'Accept: application/json'

Did this page help you?