> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs-beta.getzep.com/v2/sdk-reference/deprecated/memory/synthesize-question/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.getzep.com/_mcp/server. # Synthesize a question GET https://api.getzep.com/api/v2/sessions/{sessionId}/synthesize_question Deprecated API: Synthesize a question from the last N messages in the chat history. Reference: https://docs-beta.getzep.com/v2/sdk-reference/deprecated/memory/synthesize-question ## Request ### Path parameters - `sessionId` (string, required) — The ID of the session. ### Query parameters - `lastNMessages` (integer, optional) — The number of messages to use for question synthesis. ## Response ### 200 The synthesized question. - `question` (string, optional) ## Errors ### 404 Not Found Error Not Found - `message` (string, optional) ### 500 Internal Server Error Internal Server Error - `message` (string, optional) ## Examples **Request** ```json {} ``` **Response** ```json { "question": "What are the key points discussed in the last few messages?" } ```