---
title: "Query RAG documents."
method: POST
path: "/v1/ai/rag/query"
tags: ["AI"]
---

# Query RAG documents.

`POST /v1/ai/rag/query`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/ai/rag/query`
- Auth: HTTP bearer

Runs a retrieval-augmented query over indexed documents and returns scored matches.

## Request body

- object

## Response `200`

Query results with similarity scores

## Other responses

- `401`: Missing or invalid API key
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
