Knowledge Bases

List all datasources

Changed on

Returns the datasources in a knowledge base. Use cursors to page through results and optional query or status filters to narrow the list.

get/v2/knowledge/{knowledge_id}/datasources

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/knowledge/{knowledge_id}/datasources
  • Auth
    HTTP bearer

Path parameters

knowledge_idstring required

Unique identifier of the knowledge base

Query parameters

starting_afterstring

A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with 01JJ1HDHN79XAS7A01WB3HYSDB, your subsequent call can include starting_after=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the next page of the list.

ending_beforestring

A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with 01JJ1HDHN79XAS7A01WB3HYSDB, your subsequent call can include ending_before=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the previous page of the list.

qstring

Search query to find datasources by name.

limitinteger

A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 50

string[]
OR
string
[
  "completed",
  "failed"
]

Response

Datasources successfully retrieved

object'list' required
has_moreboolean required

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status