Sessions & Agents
Memory Operations

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

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

agent_idstring required

Headers

x-session-tokenstring nullable
authorizationstring nullable
X-Api-Keystring 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

sourcestring nullable

Slug of the AI tool making this call (e.g. 'claude-code', 'cursor', 'copilot') for session and connection attribution.

Response

Successful Response

agent_idstring required
session_idstring required
questionstring required
answerstring required
namespacestring required

Changes