Sessions

List messages

Returns the messages sent to the Session after it was created: follow-ups and mid-turn steers, each followed by a system note saying how it was delivered. It does not contain the opening prompt or the agent's replies, so it is empty for a Session that received no follow-up. For the conversation in order (the opening prompt, the follow-ups and each turn's reply) use listSessionConversation (GET .../conversation). The latest answer is also result on the Session (getSession), and every reply is an assistant event (listSessionEvents). Cursor-paginated: pass the previous response's end_cursor as after (legacy spelling: after_seq / next_seq).

<sub>Scope: sessions:read</sub>

get/v3/organizations/{orgId}/sessions/{sessionId}/messages

Request

  • Base URL: https://api.reasonmachines.com
  • URL: https://api.reasonmachines.com/v3/organizations/{orgId}/sessions/{sessionId}/messages
  • Auth: HTTP bearer

Query parameters

firstinteger

Page size (default 50, max 200).

afterstring

Cursor from the previous page's end_cursor.

after_seqinteger

Legacy spelling of after: return only messages with a higher sequence number.

Response

A page of messages.

has_next_pageboolean
end_cursorstring nullable
next_seqinteger

Legacy twin of end_cursor.

Changes

No recorded changes to this operation across all 1 revision of this API.