## Get Pipeline File Status Counts

`FileGetStatusCountsResponse pipelines().files().getStatusCounts(FileGetStatusCountsParamsparams = FileGetStatusCountsParams.none(), RequestOptionsrequestOptions = RequestOptions.none())`

**get** `/api/v1/pipelines/{pipeline_id}/files/status-counts`

Get files for a pipeline.

### Parameters

- `FileGetStatusCountsParams params`

  - `Optional<String> pipelineId`

  - `Optional<String> dataSourceId`

  - `Optional<Boolean> onlyManuallyUploaded`

### Returns

- `class FileGetStatusCountsResponse:`

  - `Counts counts`

    The counts of files by status

  - `long totalCount`

    The total number of files

  - `Optional<String> dataSourceId`

    The ID of the data source that the files belong to

  - `Optional<Boolean> onlyManuallyUploaded`

    Whether to only count manually uploaded files

  - `Optional<String> pipelineId`

    The ID of the pipeline that the files belong to

### Example

```java
package com.llamacloud_prod.api.example;

import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.pipelines.files.FileGetStatusCountsParams;
import com.llamacloud_prod.api.models.pipelines.files.FileGetStatusCountsResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        FileGetStatusCountsResponse response = client.pipelines().files().getStatusCounts("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e");
    }
}
```

#### Response

```json
{
  "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"
}
```
