A page of a thread's history, from its newest settled turn back (AG-UI frames, our extension)
A finite read of the same projection connectThread streams (history.md, ADR 0059): a whole number of settled chains of runs, as one JSON document, so that a client opens a long thread at its end and loads older turns when the person scrolls up, instead of replaying the whole log. With none of the query parameters it is the newest ui.history.pageTurns turns; before goes back from a point, since back to an event, after is a catch-up. The page's end is a settled point: Last-Event-ID: <end> on connectThread gives the rest, with no run to reopen, and says the chain still open in full. The frames are a replay's, never live text. The presence of ui.history in getConfig says this route exists.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
An event of the chain the caller holds the page of, normally the start of its oldest page: the answer is the turns that precede the chain that holds it. A value beyond the log counts as absent. Not with after
1How many turns, 1 to server.history.maxTurns (default ui.history.pageTurns). Not with since or after
1Go back at least to the chain that holds this event, never beyond maxTurns turns or maxPageBytes. Inclusive: the event itself is in the page, with the rest of its turn in front of it (a page starts at a turn's first event, so it may start earlier than since), unless a limit stops it first. A hit's seq opens the thread with it. Not with limit or after
1A catch-up: the settled chains after the chain that holds this event, to the newest settled point (at most maxTurns turns). The answer has anchor. Not with limit, since or before
1Responses
A page; Cache-Control: no-store