List Artifacts
List artifacts produced by a workflow run.
Paginated by the producing step’s step_id (sorted by started_at
ascending). Pass after for the next page, before for the previous
page — mutually exclusive. step_id short-circuits pagination and
returns the single attached artifact.
Filters: provide either run_id (list all artifacts in a run) or
step_id (single-step lookup). When both are absent the request is
rejected with 400.
{ "data": [...], "list_metadata": { "before": null, "after": null } } pagination envelope shared with all Retab list endpoints. Each data item is a flattened workflow artifact record (operation-tagged dereferenced artifact); arbitrary operation-specific fields are preserved verbatim. Cursor pagination is not yet implemented for this endpoint — list_metadata is always { before: null, after: null }.
Use this when an integration needs to inspect all persisted records for a run,
or when an MCP tool needs to answer questions such as why a conditional block
selected a specific handle. The endpoint walks the run’s steps, follows each
artifact ref, and returns the flattened records.
Filters:
- Provide either
run_idorstep_id. Userun_idto list every artifact produced by a run; usestep_idto fetch the artifact attached to one step. operationlimits results to one artifact operation, such asconditional_evaluationorfunction_invocation.block_idlimits results to one producing block or step id.
Authorizations
Query Parameters
Workflow run ID whose artifacts should be listed. Required unless step_id is provided.
Optional artifact operation filter
extraction, split, classification, parse, edit, partition, conditional_evaluation, review_trigger_evaluation, while_loop_termination, api_call_invocation, function_invocation Optional block_id or step_id filter
Optional step id filter. When provided, returns the single artifact attached to that step (or an empty list if the step has no artifact). run_id is not required when step_id is set — it is resolved from the step record.
Step id cursor: return the page before this step (mutually exclusive with after). Ignored when step_id is set.
Step id cursor: return the page after this step (mutually exclusive with before). Ignored when step_id is set.
Maximum number of artifacts to return per page (1-200). Ignored when step_id is set (that path returns the single attached artifact).
1 <= x <= 200