WorkspacesCreate workspace

Create workspace

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

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

Subscription gate — creating an additional workspace (when the caller already has any workspace membership) requires an active or trialing subscription, or a plan in the allowlist. First-time workspace creation is always allowed.

curl -X POST "https://api.sendkit.ai/v1/workspaces" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -d '{
  "name": "My Sales Team",
  "billingEmail": "billing@example.com",
  "createUnderOwnerId": "664f0a1b2c3d4e5f6a7b8c9d"
}'
{
  "success": true,
  "data": {
    "id": "665a1b2c3d4e5f6a7b8c9d0e",
    "name": "My Sales Team",
    "ownerId": "664f0a1b2c3d4e5f6a7b8c9d",
    "role": "owner",
    "status": "active",
    "memberCount": 1,
    "limits": {
      "maxMembers": 5,
      "maxCampaigns": 10,
      "maxLeads": 1000,
      "maxMailboxes": 3
    },
    "usage": {
      "totalCampaigns": 0,
      "totalLeads": 0,
      "totalMailboxes": 0,
      "totalEmailsSent": 0
    },
    "createdAt": "2025-06-01T10:30:00.000Z"
  }
}
POST
/v1/workspaces
POST
Base URLstring

Target server for requests. Edit to use your own host.

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_...)
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Required

Workspace name

billingEmailstring

Billing email for the workspace. Defaults to the (target) owner's account email when omitted.

Format: email
createUnderOwnerIdstring

Optional user ID to create the workspace under. Caller must be an admin in a workspace owned by this user. Must be a 24-character hex ObjectId.

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_...)

Body

application/json
namestring
Required

Workspace name

Example:
My Sales Team
billingEmailstring

Billing email for the workspace. Defaults to the (target) owner's account email when omitted.

Example:
billing@example.com
createUnderOwnerIdstring

Optional user ID to create the workspace under. Caller must be an admin in a workspace owned by this user. Must be a 24-character hex ObjectId.

Example:
664f0a1b2c3d4e5f6a7b8c9d

Responses