Skip to main content
POST
/
api
/
chats
/
folders
Create a chat folder
curl --request POST \
  --url https://api.morphic.io/api/chats/folders \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "color": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "color": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Body

application/json
name
string
required
Maximum string length: 255
account_id
string<uuid> | null

Account ID (null for personal folders)

color
string | null
Maximum string length: 50

Response

Successful Response

id
string<uuid>
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string
required
Maximum string length: 255
account_id
string<uuid> | null
required
created_by
string<uuid>
required
color
string | null
Maximum string length: 50