Revoke an API key
DELETE/api/v1/api-keys/{id}
DELETE /api-keys/{id}
curl -X DELETE 'https://www.unitpost.com/api/v1/api-keys/key_123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Permanently revoke an API key. Requests made with it start failing with 401 immediately, and revocation cannot be undone — create a replacement first with Create an API key if you're rotating. This endpoint is session-gated: it requires a dashboard session and cannot be called with a Bearer API key.
Parameters1 field
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
204401403404