Skip to main content
POST
/
v1
/
boards
/
{boardId}
/
assets
curl -X POST "https://api.chatgrid.ai/v1/boards/a1b2c3d4-e5f6-7890-abcd-ef1234567890/assets" \
  -H "Authorization: Bearer cgk_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6" \
  -F "file=@/path/to/report.pdf"
{
  "object": "asset",
  "data": {
    "id": "aabb1122-3344-5566-7788-99aabbccddee",
    "url": "https://storage.chatgrid.ai/board-files/usr_123/brd_456/1711843260000-report.pdf",
    "filename": "report.pdf",
    "size": 245760,
    "content_type": "application/pdf"
  }
}
boardId
string
required
Board UUID.
file
file
required
The file to upload as multipart/form-data.
Maximum file size: 50 MB Allowed content types:
  • Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml
  • Documents: application/pdf, .docx, .xlsx, .pptx
  • Text: text/plain, text/csv
  • Audio: audio/mpeg, audio/wav
  • Video: video/mp4
curl -X POST "https://api.chatgrid.ai/v1/boards/a1b2c3d4-e5f6-7890-abcd-ef1234567890/assets" \
  -H "Authorization: Bearer cgk_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6" \
  -F "file=@/path/to/report.pdf"
{
  "object": "asset",
  "data": {
    "id": "aabb1122-3344-5566-7788-99aabbccddee",
    "url": "https://storage.chatgrid.ai/board-files/usr_123/brd_456/1711843260000-report.pdf",
    "filename": "report.pdf",
    "size": 245760,
    "content_type": "application/pdf"
  }
}