List the caller's tasks for this agent.
Returns the caller’s tasks against this agent, filtered server-side
by participation (the caller’s user:<id>) and client-side by
target_agent_id == {agentId} AND protocol == "openapi" so the
endpoint stays scoped to OpenAPI-created tasks (excludes conversations
and other-protocol channels).
Performance note: the wire DTO is INTENTIONALLY lightweight — it does
NOT carry the derived status / result / error because computing
those requires a per-task message-log scan (up to 1000 messages each
inside GetTask). Callers that need the precise status follow up
with GET /tasks/{taskId} per row, or subscribe to SSE
GET /tasks/{taskId}/events.
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
128Query Parameters
Filter by channel state. active is the backward-compat wire
alias for v2's open; all returns both. Default: active.
active, open, closed, all Pagination cursor returned by the previous call (next_since).
1 <= x <= 100