> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v3 (default): https://help.getzep.com/v3/llms.txt
> - v2: https://help.getzep.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.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://help.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?"
}
```