Poll for new content
Messages
Poll for new content
Follow an agent’s reply as it’s written, a piece at a time — ideal for scripts and agent loops.
GET
Poll for new content
Each call returns only the new blocks since your last one and long-polls (waits up to the deadline) for more. Pass
since = the cursor from your previous call (0 on the first call); has_more tells you whether the reply is still going. For browsers, GET /messages/{id}/stream (SSE) is the natural fit.Authorizations
Requires an API key. See the Authentication guide.
Path Parameters
Query Parameters
Block-index cursor; 0 on first call.
Required range:
x >= 0Long-poll deadline in ms. Capped at 30000.
Required range:
0 <= x <= 30000