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

# Add Text

`POST /v1/add_text`

## 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_text`
- Auth: none declared. Required headers: `authorization`

Add memories from plain text (wraps into a single user message).

## Query parameters

- `sub_user_id` string, nullable

## Headers

- `authorization` string, required

## Request body

- AddTextRequest
  - `user_id` string
  - `text` string, required
  - `agent_id` string, nullable
  - `run_id` string, nullable
  - `app_id` string, nullable
  - `source` string, nullable
  - `metadata` object, nullable
  - `expiration_date` string, nullable

## 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)
