Skip to main content
PATCH
Enable or Disable API Key

Authentication

Requires an API key in the Authorization header.

Request

string
required
The ID of the API key to enable or disable.
string
required
The action to perform. One of disable or enable.

Disable a key

Re-enable a key

Response

Disabling is reversible re-enable the same key with action=enable. A disabled key immediately returns 401 on any request. Requires a non-readonly role in the active workspace.