Skip to main content
POST
/
v2
/
knowledge
/
{knowledge_id}
/
datasources
/
{datasource_id}
/
chunks
/
list
List chunks with offset-based pagination
curl --request POST \
  --url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks/list \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "q": "",
  "enabled": true,
  "status": "<string>",
  "limit": 100,
  "page": 1
}'
{
  "object": "list",
  "data": [
    {
      "_id": "<string>",
      "text": "<string>",
      "metadata": {},
      "enabled": true,
      "status": "pending",
      "created": "<string>",
      "updated": "<string>",
      "created_by_id": "<string>",
      "update_by_id": "<string>"
    }
  ],
  "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

The unique identifier of the knowledge base

datasource_id
string
required

The unique identifier of the datasource.

Body

application/json
q
string
default:""

Search query to find chunks by text content

enabled
boolean

Filter chunks by enabled status

status
string

Filter chunks by processing status

limit
integer
default:100
Required range: 1 <= x <= 200
page
integer
default:1

Response

200 - application/json

Chunks successfully retrieved

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