Skip to main content
GET
Retrieve Messages

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId Mongodb Object id, unique identifier, length of 24 characters fitting the following regex; [a-f0-9]{24}

sessionId
string
required

The sessionId of the session to retrieve Mongodb Object id, unique identifier, length of 24 characters fitting the following regex; [a-f0-9]{24}

Query Parameters

messageId
string

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. Mongodb Object id, unique identifier, length of 24 characters fitting the following regex; [a-f0-9]{24}

Response

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.

messages
object[]