---
title: "Ingest documents into a managed index"
method: POST
path: "/v1/rag/managed_indexes/{index_name}/documents"
tags: ["beta.rag.managed_indexes"]
---

# Ingest documents into a managed index

`POST /v1/rag/managed_indexes/{index_name}/documents`

Validates and persists documents. Always returns 200; each document is reported as accepted or rejected in the response body.

## Path parameters

- `index_name` string, required

## Request body

- IngestDocumentsRequest
  - `documents` object[], required

## Response `200`

Successful Response

- IngestDocumentsResponse
  - `accepted` integer, required
  - `rejected` integer, required
  - `results` union[], required
    - union
      - AcceptedDocumentResponse
        - `status` 'accepted'
        - `position` integer, required
        - `document_id` string, required
        - `chunk_count` integer, required
      - RejectedDocumentResponse
        - `status` 'rejected'
        - `position` integer, required
        - `errors` DocumentFieldErrorResponse[], required
          - `location` union[], required
            - union
              - …
          - `type` string, required
          - `message` string, required

## Other responses

- `404` — Index not found
- `409` — Index is not ready for ingestion
- `422` — Validation Error

## Changes

- **2026-09-23** `fa73befe1c61` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mistral/apis/mistral-ai-api/changes/v1/rag/managed_indexes/:index_name/documents/post.md)

---

[API](https://skmtc.dev/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.dev/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mistral/apis/mistral-ai-api/revisions/fa73befe1c61?raw)
