Platform API reference

Platform API · Oauth-Authorization-Server

post/v1/oauth/revoke

Revoke a token (RFC 7009)

Revoking a refresh token takes the whole grant family with it. Always answers 200, including for an unknown token — otherwise the endpoint would be a token-validity oracle.

Request body

token*string

The access or refresh token to revoke.

token_type_hintstring

`access_token` or `refresh_token`. Advisory only.

client_idstring
client_secretstring

Response · 200

Revoked, or the token was already unknown.

Example

Request

POST https://api.platform-auth.productcraft.co/v1/oauth/revoke
Content-Type: application/json

{
  "token": "string",
  "token_type_hint": "string",
  "client_id": "string",
  "client_secret": "string"
}