---
title: "Add"
method: POST
path: "/v1/add"
tags: ["Memory"]
---

# Add

`POST /v1/add`

## Request

- Base URL: `https://mengram.io` (the document declares no server; this is the origin it was published from)
- URL: `https://mengram.io/v1/add`
- Auth: none declared. Required headers: `authorization`

Add memories from conversation.
Returns immediately with job_id, processes in background.

## Query parameters

- `sub_user_id` string, nullable

## Headers

- `authorization` string, required

## Request body

- AddRequest
  - `user_id` string
  - `messages` Message[], required
    - `role` string, required
    - `content` string, required
  - `agent_id` string, nullable
  - `run_id` string, nullable
  - `app_id` string, nullable
  - `source` string, nullable
  - `metadata` object, nullable
  - `expiration_date` string, nullable
  - `dry_run` boolean
  - `prompt_version` string, nullable
  - `agent_mode` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengram/apis/mengram-api.md) · [All operations](https://skmtc.dev/mengram/apis/mengram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mengram/apis/mengram-api/revisions/f871fd1fd3a8?raw)
