Skip to main content
Workspaces isolate your data — each workspace gets its own database, API keys, and team members. Use these endpoints to create and manage workspaces programmatically. All workspace endpoints require a JWT token in the Authorization header. See Authentication for details.

Create a workspace

Any authenticated user with Editor or higher role can create a workspace. You become the admin of the new workspace automatically.
The slug must be 1-50 characters, alphanumeric and hyphens only, and unique across all workspaces. Returns:

List your workspaces

Returns all workspaces you’re a member of.

Admin endpoints

Workspace admins and platform users have access to additional management endpoints. These require the X-Workspace-ID header.

List all workspaces (Platform only)

Get workspace details

Update workspace name

Delete workspace (Platform only)

This permanently deletes the workspace and all its data. Platform role required.

Invitations

Admins can invite users to a workspace by email. Invitations are assigned a role and expire after 7 days.

Invite a user

The response includes an invite_url you can share with the invited user.

List pending invites

Cancel an invite

Accept an invite (no auth required)

Invited users visit the invite URL to verify and accept:
New users are created automatically when accepting an invite.

User management

Admins can manage users in their workspace. You can’t assign a role higher than your own.

User list filters

Error responses

All endpoints return consistent error JSON:

What’s next