---
title: "Get Pipeline Document Status Counts"
method: GET
path: "/api/v1/pipelines/{pipeline_id}/documents/status-counts"
tags: ["Pipelines"]
deprecated: true
---

# Get Pipeline Document Status Counts

`GET /api/v1/pipelines/{pipeline_id}/documents/status-counts`

## Request

- Base URL: `https://api.cloud.llamaindex.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cloud.llamaindex.ai/api/v1/pipelines/{pipeline_id}/documents/status-counts`
- Auth: HTTP bearer

> **Deprecated.**

Count the documents in a pipeline, grouped by ingestion status.

Counts reflect each document's last recorded status rather than a freshly computed one, so a document that changed status in the last few moments may still be counted under its previous one. Use `GET /pipelines/{pipeline_id}/documents/{document_id}/status` when a single document's status has to be up to the moment.

## Path parameters

- `pipeline_id` string, uuid, required

## Query parameters

- `file_id` string, uuid, nullable
- `data_source_id` string, uuid, nullable
- `only_direct_upload` boolean
- `project_id` string, uuid, nullable

## Cookies

- `session` string, nullable

## Response `200`

Successful Response

- DocumentCountByStatusResponse: Counts of the documents in a pipeline, grouped by ingestion status.
  - `counts` object, required: Number of documents per ingestion status; every status is present.
  - `total_count` integer, required: Total number of documents counted.
  - `pipeline_id` string, uuid, required: ID of the pipeline the documents belong to.
  - `file_id` string, uuid, nullable: File the counts were restricted to.
  - `data_source_id` string, uuid, nullable: Data source the counts were restricted to.
  - `only_direct_upload` boolean: Whether only directly uploaded documents were counted.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `a38b684f8e1b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/run-llama/apis/llama-platform/changes/api/v1/pipelines/:pipeline_id/documents/status-counts/get.md)

---

[API](https://skmtc.dev/run-llama/apis/llama-platform.md) · [All operations](https://skmtc.dev/run-llama/apis/llama-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/run-llama/apis/llama-platform/revisions/809d302cdb1e?raw)
