logo
WorkspacesCreate workspace
Workspaces

Create workspace

Creates a new workspace. The authenticated user becomes the owner and first member.

Requires a platform API key (sk_user_...). Workspace keys are rejected with 403.

curl -X POST "https://api.sendkit.ai/v1/workspaces" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "My Sales Team"
}'
{
  "success": true,
  "data": {
    "id": "665a1b2c3d4e5f6a7b8c9d0e",
    "name": "My Sales Team",
    "ownerId": "664f0a1b2c3d4e5f6a7b8c9d",
    "createdAt": "2025-06-01T10:30:00.000Z"
  }
}
POST
/v1/workspaces
POST
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Required

Workspace name

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Body

application/json
namestring
Required

Workspace name

Responses