curl --request GET \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"_id": "<string>",
"text": "<string>",
"enabled": true,
"status": "pending",
"created": "<string>",
"updated": "<string>",
"metadata": {},
"created_by_id": "<string>",
"update_by_id": "<string>"
}
],
"has_more": true
}curl --request GET \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"_id": "<string>",
"text": "<string>",
"enabled": true,
"status": "pending",
"created": "<string>",
"updated": "<string>",
"metadata": {},
"created_by_id": "<string>",
"update_by_id": "<string>"
}
],
"has_more": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the knowledge base
The unique identifier of the datasource.
A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
1 <= x <= 200A 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.
Filter datasources by status.
["completed", "failed"]
Chunks successfully retrieved
list Show child attributes
The unique identifier of the chunk
The text content of the chunk
Whether the chunk is enabled
The status of the chunk
pending, processing, completed, failed, queued The date and time the chunk was created
The date and time the chunk was updated
The unique identifier of the user who created the chunk
The unique identifier of the user who updated the chunk
Was this page helpful?