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. `kind` says whose turn each row is: `INBOUND` for the visitor, `REPLY` for the agent. A visitor turn sent with a `turnId` carries it back, so the client that drew the turn when sending it can recognise the row.
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 pagination token returned by an external service. Pass it back unchanged rather than interpreting it as an offset.
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",
"id": "00000000-0000-0000-0000-000000000000",
"from": "string",
"text": "string",
"executionRecordId": "00000000-0000-0000-0000-000000000000",
"target": "string",
"turnId": "string",
"at": 0,
"medium": "TEXT",
"spokenDelivery": "PENDING",
"interrupted": false,
"deliveredDurationMs": 0,
"steps": []
}
],
"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
}