Skip to main content

Create Workspace

Team administrator can create a new workspace within an organization.

Quick Navigation
Outline

Endpoint

POST /api/v1/organizations/{org_id}/workspaces

Headers

HeaderRequiredDescription
AuthorizationYesBearer <access_token>
Content-TypeYesapplication/json

Path Parameters

ParameterTypeRequiredDescription
org_idintegerYesOrganization ID

Request Body

{
"name": "Development Workspace"
}

Response

Success (201)

{
"success": true,
"data": {
"workspace": {
"id": 2,
"name": "Development Workspace",
"slug": "development-workspace",
"organization_id": 1
},
"message": "Workspace created successfully"
},
"message": "Workspace created successfully"
}

Features

  • Auto-creation of slug from name
  • Unique workspace name and slug validation within the organization
  • Default settings applied
  • Auto add creator as member of the workspace with Admin role
  • Audit logging