API Reference › OAuth
Revoke Token
POST
/oauth/revokeRevoke an access or refresh token, e.g. when the user disconnects your app. Always answers success, whether or not the token existed.
Authorization and token management. These follow the OAuth 2.0 spec and answer in plain OAuth JSON (no success/data envelope). Errors use the standard error and error_description fields.
Usage
curl -X POST "https://api.lifebots.cloud/api/v1/oauth/revoke" \
--data-urlencode "token=lb_at_…" \
--data-urlencode "token_type_hint=access_token"Path parameters
None.
Body (application/x-www-form-urlencoded)
| Name | Type | Required | Description |
|---|---|---|---|
token | string | yes | The access or refresh token to revoke. |
token_type_hint | string | no | access_token or refresh_token. |
Example response
{
"success": true
}