Request
DELETE /v1/tokens/{token_id}
Authenticate with a bearer token. Create one with POST /v1/tokens or cluck login.
Parameters
| Name | Type | Description |
|---|---|---|
token_id | string | The 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
HEN-2001(401): Not logged inHEN-2004(403): Insufficient pecking orderHEN-5001(429): Too many pecksHEN-3001(404): Coop not found
IdempotencyThis endpoint is safe to retry. Reads do not lay eggs.