Tree BG 1
Tree
Tree
TreeLeaves
TreeLeaves
Cat IdleGrassGrassRockRock

Beta Rag Ingestion Pipeline Configurations Endpoints

(beta) RAG API - ingestion pipeline configurations.

List ingestion pipeline configurations

GET /v1/rag/ingestion_pipeline_configurations#

For the current workspace, lists all of the registered ingestion pipeline configurations.

200

Successful Response

IngestionPipelineConfiguration#

{object}

Playground

Test the endpoints live

import { Mistral } from "@mistralai/mistralai";

const mistral = new Mistral({
  apiKey: "MISTRAL_API_KEY",
});

async function run() {
  const result = await mistral.beta.rag.ingestionPipelineConfigurations.list();

  console.log(result);
}

run();
from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.rag.ingestion_pipeline_configurations.list()

    # Handle response
    print(res)

curl https://api.mistral.ai/v1/rag/ingestion_pipeline_configurations \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

[
  {
    "author_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
    "created_at": "2025-12-17T10:25:07.818693Z",
    "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
    "last_run_chunks_count": 87,
    "last_run_time": null,
    "modified_at": "2025-12-17T10:41:03.469341Z",
    "name": "My resource",
    "pipeline_composition": null,
    "total_chunks_count": 14
  }
]

Register Config

PUT /v1/rag/ingestion_pipeline_configurations#

Register an ingestion configuration.

200

Successful Response

author_id#
*string
created_at#
*date-time
id#
*string
last_run_chunks_count#
*integer
last_run_time#
*date-time|null
modified_at#
*date-time
name#
*string
pipeline_composition#
*map<string>|null
total_chunks_count#
*integer

Playground

Test the endpoints live

import { Mistral } from "@mistralai/mistralai";

const mistral = new Mistral({
  apiKey: "MISTRAL_API_KEY",
});

async function run() {
  const result = await mistral.beta.rag.ingestionPipelineConfigurations.register({
    name: "<value>",
  });

  console.log(result);
}

run();
from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.rag.ingestion_pipeline_configurations.register(name="<value>")

    # Handle response
    print(res)

curl https://api.mistral.ai/v1/rag/ingestion_pipeline_configurations \
 -X PUT \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "name": "My resource"
}'

200

{
  "author_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "created_at": "2025-12-17T10:25:07.818693Z",
  "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "last_run_chunks_count": 87,
  "last_run_time": null,
  "modified_at": "2025-12-17T10:41:03.469341Z",
  "name": "My resource",
  "pipeline_composition": null,
  "total_chunks_count": 14
}

Update Run Info

PUT /v1/rag/ingestion_pipeline_configurations/{id}/run_info#

Update Run Info

200

Successful Response

author_id#
*string
created_at#
*date-time
id#
*string
last_run_chunks_count#
*integer
last_run_time#
*date-time|null
modified_at#
*date-time
name#
*string
pipeline_composition#
*map<string>|null
total_chunks_count#
*integer

Playground

Test the endpoints live

import { Mistral } from "@mistralai/mistralai";

const mistral = new Mistral({
  apiKey: "MISTRAL_API_KEY",
});

async function run() {
  const result = await mistral.beta.rag.ingestionPipelineConfigurations.updateRunInfo({
    id: "6b630c1b-b57e-4237-a015-ff6247cbbcf8",
    updateRunInfo: {
      executionTime: new Date("2024-06-27T06:29:04.390Z"),
      chunksCount: 983906,
    },
  });

  console.log(result);
}

run();
from mistralai.client import Mistral
from mistralai.client.utils import parse_datetime
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.rag.ingestion_pipeline_configurations.update_run_info(id="6b630c1b-b57e-4237-a015-ff6247cbbcf8", execution_time=parse_datetime("2024-06-27T06:29:04.390Z"), chunks_count=983906)

    # Handle response
    print(res)

curl https://api.mistral.ai/v1/rag/ingestion_pipeline_configurations/{id}/run_info \
 -X PUT \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "chunks_count": 87,
  "execution_time": "2025-01-15T09:30:00Z"
}'

200

{
  "author_id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "created_at": "2025-12-17T10:25:07.818693Z",
  "id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "last_run_chunks_count": 87,
  "last_run_time": null,
  "modified_at": "2025-12-17T10:41:03.469341Z",
  "name": "My resource",
  "pipeline_composition": null,
  "total_chunks_count": 14
}