Skip to contentSkip to navigation

Create Workspace Beta

Create a workspace owned by the key's creator.

POST /api/v1/workspaces

Requires an API key with the Requires an API key with the writeandadminscopes. Theadminscope is opt-in: no default key carries it. The call runs in the key's own workspace andX-Workspace-Idis ignored. It is recorded as anaudit.workspace.created event in the key's workspace, visible in [List Events](/api-reference/webhooks/list-events). scope.

Returns the new workspace with a 201 status code. It starts on the free plan, with the key's creator as its owner, and counts toward the workspace limit of the creator's plan.

Request Body

name string body required

Workspace name, 1 to 100 characters.

Errors

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: Requires an API key with the writeandadminscopes. Theadminscope is opt-in: no default key carries it. The call runs in the key's own workspace andX-Workspace-Idis ignored. It is recorded as anaudit.workspace.created event in the key's workspace, visible in [List Events](/api-reference/webhooks/list-events).
403Key lacks write or admin, or the plan's workspace limit is reached (upgrade_required)
422name is empty or longer than 100 characters

Rate Limit

  • 120 requests per minute, shared by every write call in your workspace. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (unix epoch seconds) and X-RateLimit-Bucket (write).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?