Query parameters
-
includes string(csv)
Extra message attributes to include in the response.
Value is
sources
.
GET /messages/{id}
curl \
-X GET https://getcody.ai/api/v1/messages/{id} \
-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
}
]
}
}
}