Self-revoke the calling API key
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
id
Unique API key ID (lbk_ prefixed).
name
Human-friendly label for this key.
prefix
First 8 chars of the raw key (e.g. ‘lb_abcd12’) — safe to display.
created_at
Time at which the key was created.
object
Object type identifier. Always api_key.
last_used_at
Last time this key was used to authenticate a request.
revoked_at
When the key was revoked. Null if still active.
Errors
401
Unauthorized Error