Skip to main content
POST
/
v1
/
boards
/
{boardId}
/
documents
/
vectorize
Vectorize content
curl --request POST \
  --url https://api.chatgrid.ai/v1/v1/boards/{boardId}/documents/vectorize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "The quarterly revenue report shows a 15% increase in SaaS subscriptions...",
  "node_id": "e5f6a7b8-c9d0-1234-efab-345678901234",
  "metadata": {
    "source": "annual-report-2026.pdf",
    "page": 3
  }
}
'
{
  "object": "vectorize_result",
  "data": {
    "board_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "chunks_stored": 5
  }
}

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
content
string
required

The text content to vectorize.

Required string length: 1 - 100000
Example:

"The quarterly revenue report shows a 15% increase in SaaS subscriptions..."

node_id
string

Optional node to associate the chunks with.

Required string length: 1 - 255
Example:

"e5f6a7b8-c9d0-1234-efab-345678901234"

metadata
object

Additional metadata stored with each chunk.

Example:
{
"source": "annual-report-2026.pdf",
"page": 3
}

Response

Content vectorized and stored.

object
enum<string>
Available options:
vectorize_result
data
object