Get a specific message
Schema for message response
GET /v1/projects/{project_id}/chats/{chat_id}/messages/{message_id} HTTP/1.1 Host: api.chicory.ai Accept: */*
Successful Response
{ "id": "text", "chat_id": "text", "project_id": "text", "role": "text", "content": "text", "status": "text", "metadata": {}, "created_at": "2025-05-22T03:44:07.615Z", "completed_at": "2025-05-22T03:44:07.615Z" }
Delete a message
DELETE /v1/projects/{project_id}/chats/{chat_id}/messages/{message_id} HTTP/1.1 Host: api.chicory.ai Accept: */*
{ "ANY_ADDITIONAL_PROPERTY": "text" }
Stream the AI's response using Server-Sent Events
GET /v1/projects/{project_id}/chats/{chat_id}/stream HTTP/1.1 Host: api.chicory.ai Accept: */*
No content
Get messages from a chat with pagination
50
Schema for list of messages
GET /v1/projects/{project_id}/chats/{chat_id}/messages HTTP/1.1 Host: api.chicory.ai Accept: */*
{ "messages": [ { "id": "text", "chat_id": "text", "project_id": "text", "role": "text", "content": "text", "status": "text", "metadata": {}, "created_at": "2025-05-22T03:44:07.615Z", "completed_at": "2025-05-22T03:44:07.615Z" } ], "has_more": false }
Create a new message in a chat with project-level context
Schema for creating a message
POST /v1/projects/{project_id}/chats/{chat_id}/messages HTTP/1.1 Host: api.chicory.ai Content-Type: application/json Accept: */* Content-Length: 32 { "content": "text", "metadata": {} }