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.
Path Parameters
session*string
The session id to read.
Query Parameters
PageSize?integer
The maximum number of items to return per page
Format
int32PageToken.Skip?integer
Format
int32PageToken.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.
Default
0Format
int64Response 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
}