Poll for agent replies
Headers
Secret widget API key (plaintext_api_key from POST /api/widgets). Takes precedence over
x-widget-id and wid. Send one of the three. Never expose it in a browser.
Public widget id, the credential the embed script uses. Used when x-widget-api-key is absent.
Origin of the page embedding the widget. Must match one of the widget’s allowed_origins; see POST /widget/init.
Query parameters
Session id from POST /widget/init. Not a UUID returns 400 Invalid query.
ISO 8601 UTC timestamp (for example the previous response’s now). Messages created at or after it
are returned. Omitted means from the start of the conversation. A value that is not an ISO datetime
with Z returns 400 Invalid query.
Response
New agent messages (possibly none).

