---
title: "Internal Search"
method: POST
path: "/internal/knowledge/search"
tags: ["RAG internal"]
---

# Internal Search

`POST /internal/knowledge/search`

## Request

- Base URL: `https://api.emile.wine` (the document declares no server; this is the origin it was published from)
- URL: `https://api.emile.wine/internal/knowledge/search`
- Auth: none declared

Internal-traffic search (same logic as /knowledge/search) auth'd via
X-Internal-Secret rather than a user JWT. Used by the n8n content pipeline
so it doesn't need to impersonate a real Émile user.

## Headers

- `x-internal-secret` string

## Request body

- SearchQuery: Input for /knowledge/search.
  - `query` string, required
  - `language` 'fr' | 'en'
  - `pillars` string[], nullable
  - `top_k` integer

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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