Skip to content
Get started

Get Pipeline File Status Counts

GET/api/v1/pipelines/{pipeline_id}/files/status-counts

Get files for a pipeline.

Path ParametersExpand Collapse
pipeline_id: string
Query ParametersExpand Collapse
data_source_id: optional string
only_manually_uploaded: optional boolean
Cookie ParametersExpand Collapse
session: optional string
ReturnsExpand Collapse
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

formatuuid
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

formatuuid

Get Pipeline File Status Counts

curl https://api.cloud.llamaindex.ai/api/v1/pipelines/$PIPELINE_ID/files/status-counts \
    -H "Authorization: Bearer $LLAMA_CLOUD_API_KEY"
{
  "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"
}