POST
/
v1
/
api
/
workspaces
Create Workspace
curl --request POST \
  --url https://api.trillet.ai/v1/api/workspaces \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "initials": "<string>"
}'
{
  "_id": "<string>",
  "name": "<string>",
  "userId": "<string>",
  "initials": "<string>",
  "pricingTier": "<string>",
  "isMasterWorkspace": true,
  "teamMembers": [
    {}
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Request Body

name
string
required
The name of the workspace (e.g., “Marketing Team Workspace”).
initials
string
required
Initials representing the workspace (e.g., “MT”).

Response Fields

_id
string
The unique identifier for the newly created workspace.
name
string
The name of the workspace.
userId
string
The ID of the user who created the workspace and is assigned as the owner.
initials
string
The initials assigned to the workspace.
pricingTier
string
The pricing tier assigned to the workspace (e.g., “build_plan”).
isMasterWorkspace
boolean
Indicates if the workspace is a master workspace.
teamMembers
array
List of team members associated with the workspace, starting with the owner.
createdAt
string
Timestamp when the workspace was created (ISO 8601 format).
updatedAt
string
Timestamp when the workspace was last updated (ISO 8601 format).