---
title: "List Data Sources for Indexing Job for a Knowledge Base"
method: GET
path: "/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources"
tags: ["DigitalOcean-public.v2-new_GradientAI Platform"]
---

# List Data Sources for Indexing Job for a Knowledge Base

`GET /v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources`

To list all datasources for an indexing job, send a GET request to `/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources`.

## Path parameters

- `indexing_job_uuid` string, required

## Response `200`

A successful response.

- ApiListIndexingJobDataSourcesOutput
  - `indexed_data_sources` ApiIndexedDataSource[]
    - `completed_at` string, date-time — Timestamp when data source completed indexing
    - `data_source_uuid` string — Uuid of the indexed data source
    - `error_details` string — A detailed error description
    - `error_msg` string — A string code provinding a hint which part of the system experienced an error
    - `failed_item_count` string, uint64 — Total count of files that have failed
    - `indexed_file_count` string, uint64 — Total count of files that have been indexed
    - `indexed_item_count` string, uint64 — Total count of files that have been indexed
    - `removed_item_count` string, uint64 — Total count of files that have been removed
    - `skipped_item_count` string, uint64 — Total count of files that have been skipped
    - `started_at` string, date-time — Timestamp when data source started indexing
    - `status` 'DATA_SOURCE_STATUS_UNKNOWN' | 'DATA_SOURCE_STATUS_IN_PROGRESS' | 'DATA_SOURCE_STATUS_UPDATED' | 'DATA_SOURCE_STATUS_PARTIALLY_UPDATED' | 'DATA_SOURCE_STATUS_NOT_UPDATED' | 'DATA_SOURCE_STATUS_FAILED'
    - `total_bytes` string, uint64 — Total size of files in data source in bytes
    - `total_bytes_indexed` string, uint64 — Total size of files in data source in bytes that have been indexed
    - `total_file_count` string, uint64 — Total file count in the data source

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
