---
title: "Create a memory"
method: POST
path: "/genai/{connection_id}/memory"
tags: ["genai", "memory"]
---

# Create a memory

`POST /genai/{connection_id}/memory`

## Request

- Base URL: `https://api.unified.to`
- URL: `https://api.unified.to/genai/{connection_id}/memory`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- GenaiMemory
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `type` 'FOLDER' | 'MEMORY': FOLDER for a memory store or a sub-folder in one, MEMORY for a memory.
  - `parent_id` string: id of the parent genai_memory folder. Empty on root-level nodes.
  - `user_identifier` string: The customer's own identifier for the end user that the memory belongs to.
  - `name` string: The folder name, or the memory's file name where the integration organizes memories by path.
  - `content` string: The memory text. MEMORY nodes only.
  - `description` string: The memory store's description. Store-level folders only.
  - `metadata` GenaiMetadata[]
    - `id` string
    - `slug` string
    - `value` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
  - `raw` object

## Response `200`

Successful

- GenaiMemory
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `type` 'FOLDER' | 'MEMORY': FOLDER for a memory store or a sub-folder in one, MEMORY for a memory.
  - `parent_id` string: id of the parent genai_memory folder. Empty on root-level nodes.
  - `user_identifier` string: The customer's own identifier for the end user that the memory belongs to.
  - `name` string: The folder name, or the memory's file name where the integration organizes memories by path.
  - `content` string: The memory text. MEMORY nodes only.
  - `description` string: The memory store's description. Store-level folders only.
  - `metadata` GenaiMetadata[]
    - `id` string
    - `slug` string
    - `value` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
  - `raw` object

## Changes

- **2026-10-19** `010440b4bce5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unified/apis/unified-to-api/changes/genai/:connection_id/memory/post.md)

---

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