---
title: "Add an agent memory"
method: POST
path: "/agents/{id}/memories"
tags: ["agents"]
---

# Add an agent memory

`POST /agents/{id}/memories`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/agents/{id}/memories`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: agent ID

## Request body

- object
  - `content` string: Memory content, up to 1000 characters

## Response `201`

Created

- object
  - `success` boolean, required
  - `id` string, required

## Other responses

- `400`: Invalid parameters
- `401`: Missing or invalid API key
- `404`: Agent not found

---

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