Skip to content
Framework Docs

Get Pipeline File Status Counts

$ llamacloud-prod pipelines:files get-status-counts
GET/api/v1/pipelines/{pipeline_id}/files/status-counts

Get files for a pipeline.

ParametersExpand Collapse
--pipeline-id: string
--data-source-id: optional string
--only-manually-uploaded: optional boolean
ReturnsExpand Collapse
PipelineFileGetStatusCountsResponse: object { counts, total_count, data_source_id, 2 more }
counts: map[number]

The counts of files by status

total_count: number

The total number of files

data_source_id: optional string

The ID of the data source that the files belong to

only_manually_uploaded: optional boolean

Whether to only count manually uploaded files

pipeline_id: optional string

The ID of the pipeline that the files belong to

Get Pipeline File Status Counts

llamacloud-prod pipelines:files get-status-counts \
  --api-key 'My API Key' \
  --pipeline-id 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
{
  "counts": {
    "foo": 0
  },
  "total_count": 0,
  "data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "only_manually_uploaded": true,
  "pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
Returns Examples
{
  "counts": {
    "foo": 0
  },
  "total_count": 0,
  "data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "only_manually_uploaded": true,
  "pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}