List messages in a conversation (paged by offset).
Returns the durable conversation log. By default the response
EXCLUDES ephemeral streaming chunks (agent_reply_delta,
agent_thought_chunk, agent_message_chunk) — only finalized
turns and tool messages are returned, so UIs render a clean
transcript without pagination blowing up on token-level chunks.
Set include_deltas=true to also receive the per-token chunks
(only present when an in-flight turn is still streaming). Note
that latest_offset ALWAYS reflects the true server-side max
offset across both filtered and unfiltered rows, so resuming
with since=<latest_offset> is safe regardless of the filter.
SSE /events is unaffected by this filter — live consumers
receive every envelope including deltas as they happen.
Authorizations
Pass a user JWT or a oag_ User API Key on the
Authorization: Bearer <token> header. Both are validated by
openapi-gateway against the Auth service.
Both credential types are user-scoped: every key (and every JWT) is bound to exactly one owner, and every route grants the caller full access to that owner's own resources. Cross-tenant access is denied by owner-ACL inside the handlers — there is no per-route scope vocabulary on this API.
Removed in v1.1.0: the legacy
agents:*/tasks:*/files:*/instances:*scope set has been dropped together with the403 insufficient_scopeerror. Existingoag_keys automatically gain full owner-level access and do not need to be re-issued. SDK calls that previously passedscopestocreateAPIKeyshould drop the argument. See the changelog at the bottom of this spec for the full migration note.
Path Parameters
128128Query Parameters
Return messages with offset > since. Combine with limit for
paginated reads. Default is 0 (start of conversation).
x >= 01 <= x <= 200When true, include ephemeral streaming chunk rows
(agent_reply_delta, agent_thought_chunk,
agent_message_chunk) in the response. Default false.
Accepts true|1|yes (case-insensitive); any other value
is treated as false.