DOCS / API REFERENCE

Revoke an API token

DELETE /v1/tokens/{token_id}

DELETEHenHouse API v1

Request

DELETE /v1/tokens/{token_id}

Authenticate with a bearer token. Create one with POST /v1/tokens or cluck login.

Parameters

NameTypeDescription
token_idstringThe token ID (path)

Example

curl -X DELETE https://api.pollosoft.example/v1/tokens/token_8f2a \
  -H "Authorization: Bearer $COOP_TOKEN"

Response

A successful call returns 200 OK with JSON like this:

{
  "id": "tok_3f90",
  "revoked": true
}

Errors

IdempotencyThis endpoint is safe to retry. Reads do not lay eggs.