List tables in the agent's workspace
Changed onThe fallback discovery surface in v2. The run object only carries response.tables[] for tables a specific run touched (empty when the run made no mutations or stopped on a question), so callers that need "every table this agent has access to" use this endpoint instead.
Each entry is a full TableObject: same shape as GET /api/v2/tables/{id} and the same shape embedded under Run.response.tables[]. Pass ?include=stats to attach the economics block (per-table + per-column).
Scoped to the agent's own reach - its chat-linked tables plus its legacy workspace's tables when it has one; a caller cannot probe arbitrary containers through this path. Returned in the canonical list envelope with nextCursor always null; an agent's scope is rarely more than a handful of tables, so the endpoint does not paginate.
Request
- Base URLhttps://origami.chat/api/v2
- URLhttps://origami.chat/api/v2/agents/{id}/tables
- AuthHTTP bearer
Query parameters
Pass stats to attach per-table economics on every entry (creditsPerLead, qualification, funnel, lead sources).
Response
Tables the agent can address (list envelope + the deprecated workspaceId container id).
Changes
- breaking
the response property
///became nullable for the status - info
response property
allOf[subschema #2]/items/items/workspaceIddeprecated
- breaking