curl --request GET \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"display_name": "<string>",
"status": "pending",
"created": "<string>",
"updated": "<string>",
"knowledge_id": "<string>",
"chunks_count": 123,
"_id": "01KBYRE1WNKQ0730XHEZSFWW49",
"description": "<string>",
"file_id": "<string>",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"update_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"has_more": true
}curl --request GET \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"display_name": "<string>",
"status": "pending",
"created": "<string>",
"updated": "<string>",
"knowledge_id": "<string>",
"chunks_count": 123,
"_id": "01KBYRE1WNKQ0730XHEZSFWW49",
"description": "<string>",
"file_id": "<string>",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"update_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"has_more": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the knowledge base
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.
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.
Search query to find datasources by name.
A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
1 <= x <= 50Filter datasources by status.
["completed", "failed"]
Datasources successfully retrieved
list Show child attributes
The display name of the datasource. Normally the name of the uploaded file
pending, processing, completed, failed, queued The date and time the datasource was created
The date and time the datasource was updated
The unique identifier of the knowledge base
The number of chunks in the datasource
The unique identifier of the data source
The description of the knowledge base
The unique identifier of the file used to create the datasource.
The user ID of the creator of the knowledge base
The user ID of the last user who updated the knowledge base
Was this page helpful?