Self-revoke the calling API key

Revoke the API key in the Authorization header. Use this when an agent detects a credential compromise and must destroy its own authorization without waiting on a human. No rate limit — agents must be able to call this freely under attack. Does not touch any other key on the account.

Authentication

AuthorizationBearer

API key (lb_ prefix). Pass as: Authorization: Bearer lb_...

Response

Successful Response
idstring

Unique API key ID (lbk_ prefixed).

namestring

Human-friendly label for this key.

prefixstring

First 8 chars of the raw key (e.g. ‘lb_abcd12’) — safe to display.

created_atdatetime
Time at which the key was created.
object"api_key"

Object type identifier. Always api_key.

last_used_atdatetime or null
Last time this key was used to authenticate a request.
revoked_atdatetime or null
When the key was revoked. Null if still active.

Errors

401
Unauthorized Error