Skip to main content
DELETE
JavaScript
Deletion is permanent: the key disappears from the workspace and every token it ever issued stops authenticating. When you want the credential dead but the record kept, reach for disable instead.
The system-managed global key is the exception: it cannot be deleted at all. Its off switch is disable.

Disable an API key

Kill the token, keep the key.

List API keys

Confirm what remains.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

The workspace the API key belongs to (path).

Example:

"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"

id
string
required

The API key to delete.

Example:

"apikey_01HXKD2E5NQM3T9AYWCFCSPNQY"

Response