palbaseDocs

Palbase Auth API · API

POST/oauth/revoke

RFC 7009 token revocation

Revokes a token the calling client holds. The client authenticates itself (a public client by client_id). A refresh token ends with every token rotated from the same grant. A token issued to another client is refused (401 invalid_client); an unknown token is already revoked (200). The SDK's first-party sessions end at /auth/token/revoke.

Called by an OAuth client of the project; or anyone, with no key.

curl
curl -X POST "https://<your-ref>.palbase.studio/oauth/revoke" \
  -H "content-type: application/x-www-form-urlencoded" \
  --data-binary @file

Responses

200Revoked, or there was nothing to revoke

400Malformed request

401Client authentication failed, or the token belongs to another client

defaultAn OAuth 2.0 error (RFC 6749 §5.2).

Operation OauthRevoke of auth's contract.