Skip to main content
POST
Regenerate your workspace API key
Issues a new key for the current workspace. Use it to rotate a key you think leaked. Related guide: Quickstart. Replaces your personal key for the current workspace. The old key stops working immediately.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Response

The new key

apiKey
string