Skip to content

Retrieve Data Sources

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_uuidstring
Returns
indexed_data_sourcesarray of completed_atstringdata_source_uuidstringerror_detailsstringerror_msgstringfailed_item_countstringindexed_file_countstringindexed_item_countstringremoved_item_countstringskipped_item_countstringstarted_atstringstatusenumtotal_bytesstringtotal_bytes_indexedstringtotal_file_countstringAPIIndexedDataSource
optional
Request example cURL
curl https://api.digitalocean.com//v2/gen-ai/indexing_jobs/$INDEXING_JOB_UUID/data_sources \
    -H "Authorization: Bearer $GRADIENTAI_API_KEY"
200 Example
{
  "indexed_data_sources": [
    {
      "completed_at": "2019-12-27T18:11:19.117Z",
      "data_source_uuid": "data_source_uuid",
      "error_details": "error_details",
      "error_msg": "error_msg",
      "failed_item_count": "failed_item_count",
      "indexed_file_count": "indexed_file_count",
      "indexed_item_count": "indexed_item_count",
      "removed_item_count": "removed_item_count",
      "skipped_item_count": "skipped_item_count",
      "started_at": "2019-12-27T18:11:19.117Z",
      "status": "DATA_SOURCE_STATUS_UNKNOWN",
      "total_bytes": "total_bytes",
      "total_bytes_indexed": "total_bytes_indexed",
      "total_file_count": "total_file_count"
    }
  ]
}