Skip to main content
POST
/
v1
/
boards
/
{boardId}
/
chats
Create a chat
curl --request POST \
  --url https://api.chatgrid.ai/v1/v1/boards/{boardId}/chats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Brainstorm session",
  "node_id": "c3d4e5f6-a7b8-9012-cdef-123456789012"
}
'
{
  "object": "chat_thread",
  "data": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "title": "Brainstorm session",
    "node_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "created_at": "2026-03-15T10:30:00.000Z",
    "updated_at": "2026-03-15T12:45:00.000Z",
    "last_message_at": "2026-03-15T12:50:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

Pass your API key (prefixed cgk_) or a Supabase JWT in the Authorization: Bearer <token> header.

Path Parameters

boardId
string<uuid>
required

Board UUID.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Body

application/json
title
string
Required string length: 1 - 255
Example:

"Brainstorm session"

node_id
string

ID of the node this chat is attached to.

Required string length: 1 - 255
Example:

"c3d4e5f6-a7b8-9012-cdef-123456789012"

Response

Chat created.

object
enum<string>
Available options:
chat_thread
data
object