Skip to content
Get started

Get Pipeline File Status Counts

pipelines.files.get_status_counts(strpipeline_id, FileGetStatusCountsParams**kwargs) -> FileGetStatusCountsResponse
GET/api/v1/pipelines/{pipeline_id}/files/status-counts

Get files for a pipeline.

ParametersExpand Collapse
pipeline_id: str
data_source_id: Optional[str]
only_manually_uploaded: Optional[bool]
ReturnsExpand Collapse
class FileGetStatusCountsResponse:
counts: Dict[str, int]

The counts of files by status

total_count: int

The total number of files

data_source_id: Optional[str]

The ID of the data source that the files belong to

formatuuid
only_manually_uploaded: Optional[bool]

Whether to only count manually uploaded files

pipeline_id: Optional[str]

The ID of the pipeline that the files belong to

formatuuid

Get Pipeline File Status Counts

import os
from llama_cloud import LlamaCloud

client = LlamaCloud(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
response = client.pipelines.files.get_status_counts(
    pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response.data_source_id)
{
  "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"
}