Sessions
Retrieve Messages
Get all messages associated to the path sessionId
GET
Path Parameters
The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId
The sessionId of the session to retrieve
Query Parameters
Optional query parameter to declare a messageId to get messages generated after. i.e. get all messages generated after message: {messageId}. This is useful when attempting to gather messages in a stream.
Response
200
messages.json
JSON object containing array of all associated messages from this session, will return an empty array if the request is successful but there are no associated agents.
A message used within a session, can be either an AI generated message or a user generated message.