Skip to main content
GET
/
api
/
r2r
/
v3
/
documents
/
{id}
/
chunks
List document chunks
curl --request GET \
  --url https://api.intelligence.io.solutions/api/r2r/v3/documents/{id}/chunks \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "id",
      "document_id": "document_id",
      "owner_id": "owner_id",
      "collection_ids": [
        "collection_ids"
      ],
      "text": "text",
      "metadata": {
        "key": "value"
      },
      "vector": [
        1.1
      ]
    }
  ],
  "total_entries": 1
}
Chunks represent semantic sections of the document and are used for retrieval and analysis. Users can only access chunks from documents they own or have access to through collections. Vector embeddings are only included if specifically requested. Results are returned in chunk sequence order, representing their position in the original document.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

The ID of the document to retrieve chunks for.

Response

200

results
object[]
total_entries
integer
default:0
Example:

1

I