Skip to main content
POST
/
v1
/
api
/
workspaces
Create Workspace
curl --request POST \
  --url https://api.trillet.ai/v1/api/workspaces \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "initials": "<string>"
}
'
{
  "_id": "<string>",
  "name": "<string>",
  "initials": "<string>",
  "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.
initials
string
The initials assigned to the 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).