Get messages from a playground session
Retrieve messages from a playground session with optional filtering.
Supports polling via the since parameter to fetch only new messages.
Authorizations
JWT token for authentication
Path Parameters
Playground session UUID
Query Parameters
Sequence number cursor — returns only messages with sequenceNumber
greater than this value (forward pagination). Used for efficient
polling of the live conversation tail. Mutually exclusive with before.
x >= 0Sequence number cursor for backward pagination — returns the page of
messages with sequenceNumber LESS than this value, selecting the
limit messages with the highest sequence numbers below the cursor
(i.e. the page immediately older than the cursor). Used for
"load older" on scroll-up. Mutually exclusive with since.
x >= 0When true, return the most recent limit messages (the conversation
tail), ignoring since and before. Use for the initial load of a
chat surface. Defaults to false, which preserves the legacy
oldest-first behavior when no cursor is supplied.
Maximum number of messages to return
1 <= x <= 500Response
Messages retrieved successfully
Whether the request was successful
Response data (type varies by endpoint)
Response message
Error message (if any)
Whether more recent messages remain after this page (forward
pagination via since).
Whether older messages exist before the first message in this page.
Set on latest/before (backward pagination) responses so a chat
surface knows whether to keep loading on scroll-up.
Current session status (useful for polling)
idle, running, awaiting_input, completed, failed