## Retrieve Data Sources `knowledge_bases.indexing_jobs.retrieve_data_sources(strindexing_job_uuid) -> IndexingJobRetrieveDataSourcesResponse` **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`. ### Parameters - **indexing\_job\_uuid:** `str` ### Returns - `class IndexingJobRetrieveDataSourcesResponse` - **indexed\_data\_sources:** `Optional[List[APIIndexedDataSource]]` - **completed\_at:** `Optional[datetime]` Timestamp when data source completed indexing - **data\_source\_uuid:** `Optional[str]` Uuid of the indexed data source - **error\_details:** `Optional[str]` A detailed error description - **error\_msg:** `Optional[str]` A string code provinding a hint which part of the system experienced an error - **failed\_item\_count:** `Optional[str]` Total count of files that have failed - **indexed\_file\_count:** `Optional[str]` Total count of files that have been indexed - **indexed\_item\_count:** `Optional[str]` Total count of files that have been indexed - **removed\_item\_count:** `Optional[str]` Total count of files that have been removed - **skipped\_item\_count:** `Optional[str]` Total count of files that have been skipped - **started\_at:** `Optional[datetime]` Timestamp when data source started indexing - **status:** `Optional[Literal["DATA_SOURCE_STATUS_UNKNOWN", "DATA_SOURCE_STATUS_IN_PROGRESS", "DATA_SOURCE_STATUS_UPDATED", 3 more]]` - `"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:** `Optional[str]` Total size of files in data source in bytes - **total\_bytes\_indexed:** `Optional[str]` Total size of files in data source in bytes that have been indexed - **total\_file\_count:** `Optional[str]` Total file count in the data source ### Example ```python from do_gradientai import GradientAI client = GradientAI() response = client.knowledge_bases.indexing_jobs.retrieve_data_sources( "indexing_job_uuid", ) print(response.indexed_data_sources) ```