/api/v1/askAIAnswerEngine — orchestrated LLM + Critic + ground-truth response
POST a French-language query plus optional aidesContext to get a structured answer with citations, trace, and (on YMYL) Critic verdict. Rate-limit 60/min/IP fail-open.
Request body example
{
"query": "Quel est le bareme MaPrimeRenov pour une PAC air/eau ?"
}Responses
- 200 — OK
- 400 — Bad Request
- 422 — Critic blocked YMYL answer
- 429 — Rate limit
- 503 — AI service unavailable
Sample curl
curl -X POST "https://servicesartisans.fr/api/v1/ask"