> 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.

# Adds facts to a session

POST https://api.getzep.com/api/v2/sessions/{sessionId}/facts
Content-Type: application/json

Deprecated API: Adds facts to a session

Reference: https://help.getzep.com/v2/sdk-reference/deprecated/memory/add-session-facts

## Request

### Path parameters

- `sessionId` (string, required) — Session ID

### Body (application/json)

This endpoint expects an apidata.AddFactsRequest.

- `facts` (list of apidata.NewFact, required)

## Response

### 200

OK

- `message` (string, optional)

## Errors

### 404 Not Found Error

Not Found

- `message` (string, optional)

### 500 Internal Server Error

Internal Server Error

- `message` (string, optional)

## Types

### apidata.NewFact

- `fact` (string, required)

## Examples

**Request**

```json
{
  "facts": [
    {
      "fact": "The session was initiated by user ID 12345 at 2024-06-01T10:15:30Z."
    }
  ]
}
```

**Response**

```json
{
  "message": "Facts successfully added to session."
}
```