v51

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-01140309549.5 KB
users
keys

Revoke a user API key

Revoke an API key for a user. Revocation is terminal: a revoked key can no longer authenticate any request, and the revocation cannot be undone. Only the authenticated user themselves and server admins have access to this endpoint. When authenticated with a user API key, only that key itself may be revoked: a key can always destroy itself, but it cannot revoke the user's other keys. Authenticate with a JWT (user session token) to revoke other keys.

delete/v0/users/{user}/keys/{key}

Path parameters

keystring uuid required

The UUID for a user key.

userstring required

The slug or UUID for a user.

Response

successful deletion