Skip to main content
GET
/
v2
/
knowledge
/
{knowledge_id}
/
datasources
List all datasources
curl --request GET \
  --url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "_id": "01K8VCCVAMJ4YJY27R67GN7A96",
      "display_name": "<string>",
      "description": "<string>",
      "status": "pending",
      "file_id": "<string>",
      "created": "<string>",
      "updated": "<string>",
      "created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "update_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "knowledge_id": "<string>",
      "chunks_count": 123
    }
  ],
  "has_more": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

knowledge_id
string
required

Unique identifier of the knowledge base

Query Parameters

limit
number
default:10

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

Required range: 1 <= x <= 200
starting_after
string

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 after=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the next page of the list.

ending_before
string

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 before=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the previous page of the list.

q
string

Search query to find datasources by name.

status

Filter datasources by status.

Example:
["completed", "failed"]

Response

200 - application/json

Datasources successfully retrieved

object
enum<string>
required
Available options:
list
data
object[]
required
has_more
boolean
required