---
title: "Add memory"
method: POST
path: "/graph/{graph_name}/insert"
---

# Add memory

`POST /graph/{graph_name}/insert`

Create a new memory in the graph using raw text.

## Path parameters

- `graph_name` string, required

## Request body

- InsertRequest — Data model for insert request.
  - `memory` string, required — Raw text to be inserted into the graph
  - `metadata` string, nullable — Stringified JSON dictionary containing any metadata to link to the given memory. (i.e., `'{"id": "asdash-234fdsc-erwer-wqes2", "url": "https://example.com"}'`)
  - `memoryId` string, nullable — Reserved

## Response `200`

Successful Response

- InsertResponse — Data model for insert response.
  - `requestId` string, required — Unique request ID to be used to track the request status
  - `requestTime` integer, required — Further value to provide to track the request status
  - `memoryId` string, required — Reserved

## Other responses

- `422` — Validation Error

## Changes

- **2024-12-16** `c3a63bdae00a` — 2 breaking, 3 warning, 1 info
  - `path` request parameter `graph_name` list-of-types was narrowed by removing types `null`
  - the `requestTime` response's property type/format changed from `string`/`` to `integer`/`` for status `200`
  - deleted the `query` request parameter `demo_allowed`
  - deleted the `query` request parameter `increment_usage`
  - …2 more
- **2024-11-19** `5ee38984af43` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/circlemind-ai/apis/circlemind-api/changes/graph/:graph_name/insert/post.md)

---

[API](https://skmtc.dev/circlemind-ai/apis/circlemind-api.md) · [All operations](https://skmtc.dev/circlemind-ai/apis/circlemind-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/circlemind-ai/circlemind-api/revisions/c3a63bdae00a/schema)
