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
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
GET /api/v1/sso/revoking-token
Authentication
Partner or Account token
- Only the token in the
Authorizationheader 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.
| Field | Type | Description |
|---|---|---|
status | string | success. |
message | string | Token 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."
}| Status | Meaning |
|---|---|
200 | The token is revoked. |
401 | The token is missing, invalid, expired, or already revoked. |
500 | Unexpected 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'Updated 19 days ago
Did this page help you?
