## Get Pipeline File Status Counts

`FileGetStatusCountsResponse Pipelines.Files.GetStatusCounts(FileGetStatusCountsParamsparameters, CancellationTokencancellationToken = default)`

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

Get files for a pipeline.

### Parameters

- `FileGetStatusCountsParams parameters`

  - `required string pipelineID`

  - `string? dataSourceID`

  - `Boolean onlyManuallyUploaded`

### Returns

- `class FileGetStatusCountsResponse:`

  - `required IReadOnlyDictionary<string, Long> Counts`

    The counts of files by status

  - `required Long TotalCount`

    The total number of files

  - `string? DataSourceID`

    The ID of the data source that the files belong to

  - `Boolean OnlyManuallyUploaded`

    Whether to only count manually uploaded files

  - `string? PipelineID`

    The ID of the pipeline that the files belong to

### Example

```csharp
FileGetStatusCountsParams parameters = new()
{
    PipelineID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
};

var response = await client.Pipelines.Files.GetStatusCounts(parameters);

Console.WriteLine(response);
```

#### 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"
}
```
