Message
Get all messages for a given topic
Get all messages for a given topic. If the topic is a RAG topic then the response will include Chunks first on each message. The structure will look like [chunks]||mesage
. See docs.trieve.ai for more information.
GET
/
api
/
messages
/
{messages_topic_id}
Authorizations
Authorization
string
headerrequiredHeaders
TR-Dataset
string
requiredThe dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
Path Parameters
messages_topic_id
string
requiredThe ID of the topic to get messages for.
Response
200 - application/json
completion_tokens
integer | null
content
string
requiredcreated_at
string
requireddataset_id
string
requireddeleted
boolean
requiredid
string
requiredprompt_tokens
integer | null
role
string
requiredsort_order
integer
requiredtopic_id
string
requiredupdated_at
string
required