Skip to main content
POST
Revoke an API key or a Passport access token

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json
api_key_id
integer

ID of the ApiKey row to revoke. Validation: required_without:token_id|integer.

Example:

42

token_id
integer

ID of the Passport access token to revoke. Validation: required_without:api_key_id|integer.

Example:

99

Response

Key/token revoked.

message
string

Either API key revoked or Token revoked depending on which branch ran.

Example:

"API key revoked"

status
string
Example:

"success"