FruxonDocs
ApiEmbed widget

Polls recorded turns since a cursor — the SSE-less fallback.

Returns every recorded turn (the visitor's messages and the agent's captured replies) on the session with `CreatedAt` after since, oldest first — the path used by clients on networks that buffer SSE, and to replay history after a reconnect.

GET
/v1/embed/sessions/{session}/messages

Path Parameters

session*string

The session id to read.

Query Parameters

PageSize?integer

The maximum number of items to return per page

Formatint32
PageToken.Skip?integer
Formatint32
PageToken.Cursor?string

Opaque cursor token from an external system (e.g. RAG API). When set, M:Fruxon.Common.Collections.PageToken.AsString returns this value directly instead of encoding Fruxon.Common.Collections.PageToken.Skip.

since?integer

Unix-ms cursor; only rows created after it are returned.

Default0
Formatint64

Response Body

curl -X GET "https://api.fruxon.com/v1/embed/sessions/string/messages"
{
  "items": [
    {
      "kind": "string",
      "from": "string",
      "text": "string",
      "target": "string",
      "at": 0
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}