List Messages
Query parameters
-
conversation_id string
Id of the conversation to filter the list of messages to only that conversation.
-
includes string
Extra message attributes to include in the response.
Value is
sources
.
GET /messages
curl \
-X GET https://getcody.ai/api/v1/messages \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": "string",
"content": "string",
"conversation_id": "string",
"machine": true,
"failed_responding": true,
"flagged": true,
"created_at": 42,
"sources": {
"data": {
"type": "written",
"document_id": "Jw31Pv6PMmro",
"document_name": "How to bake cake",
"document_url": "https://getcody.ai/directories/1/documents/1",
"created_at": 1693013531
}
}
}
],
"meta": {
"pagination": {
"count": 42,
"total": 42,
"per_page": 42,
"total_pages": 42,
"next_page": 42,
"previous_page": 42
}
}
}