---
title: "Get All Rag Chunks For A Document"
method: GET
path: "/v1/convai/knowledge-base/{documentation_id}/chunks"
tags: ["Agents Platform"]
---

# Get All Rag Chunks For A Document

`GET /v1/convai/knowledge-base/{documentation_id}/chunks`

Get all RAG chunks for a specific knowledge base document.

## Path parameters

- `documentation_id` string, required — The id of a document from the knowledge base. This is returned on document addition.

## Query parameters

- `embedding_model` 'e5_mistral_7b_instruct' | 'multilingual_e5_large_instruct', required
- `page_size` integer — How many documents to return at maximum. Can not exceed 100, defaults to 30.
- `cursor` string, nullable — Used for fetching next page. Cursor is returned in the response.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- KnowledgeBaseDocumentChunksResponseModel
  - `chunks` KnowledgeBaseDocumentChunkResponseModel[], required
    - `id` string, required
    - `name` string, required
    - `content` string, required
  - `next_cursor` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/versions/57d56f34628a/schema)
