POST
/
workspace
/
create
Create a new workspace
curl --request POST \
  --url https://api.callab.ai/v1/workspace/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspace_name": "<string>"
}'
{
  "status": "<string>",
  "message": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspace_slug": "<string>",
    "workspace_name": "<string>",
    "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Workspace creation data

Data required to create a new workspace.

workspace_name
string
required

The desired name for the new workspace.

Response

Workspace created successfully or error if name exists.

status
string
required

Status of the response (e.g., 'success', 'error').

message
string
required

A descriptive message for the response (e.g., 'Workspace created successfully.', 'A workspace with this name already exists for your company.').

data

The created workspace object or an error string. Represents a workspace.