DocsAPI ReferenceCreate a workspace
POST
/api/v1/workspacesCreates a new workspace with the given name and optional settings.
Headers
X-API-KeystringrequiredYour workspace API key.
Content-TypestringrequiredMust be `application/json`.
Request Body
application/json
namestringrequiredDisplay name (1–255 chars).
Example: "Marketing Team"
slugstringURL slug (max 100, auto-generated from name if omitted).
Example: "marketing-team"
Responses
201Workspace created.
{
"id": "bbbbbbbb-0000-0000-0000-000000000001",
"name": "Marketing Team",
"slug": "marketing-team",
"settings": {},
"created_at": "2026-05-12T10:00:00Z",
"updated_at": "2026-05-12T10:00:00Z"
}409Slug already taken.
Try it live
API Configurationglobal · all endpoints
POST
https://api.serveka.com/api/v1/workspacesRequest Body
curl -X POST 'https://api.serveka.com/api/v1/workspaces' \
-H "Content-Type: application/json"\
-d '{
"name": "Marketing Team",
"slug": "marketing-team"
}'