v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-044334120.9 KB
Sessions & Agents
Memory Operations

Answer

Answer a question using RAG (Session-based)

Requires:

  • X-Session-Token: {session_token}

Uses Moorcheh's answer.generate endpoint to produce LLM-generated answers based on the agent's stored memories.

post/api/v2/agents/{agent_id}/answer

Path parameters

agent_idstring required

Headers

x-session-tokenstring nullable

Cookies

memanto_session_tokenstring nullable

Request body

questionstring required

Question to ask

limitinteger nullable

Number of context memories to use

thresholdnumber nullable

Confidence threshold (used only in kiosk mode)

temperaturenumber nullable

Temperature for the LLM response

ai_modelstring nullable

AI model to use for generating the answer

kiosk_modeboolean

Kiosk mode setting

Response

Successful Response

agent_idstring required
session_idstring required
questionstring required
answerstring required
namespacestring required