---
title: "Memory data model"
url: "https://docs.unified.to/genai/memory/model"
description: "The Memory data model object in Unified's Memory API: 10 fields, including created_at, updated_at and type, with types and enum values."
date: "2026-10-20T01:36:58.058Z"
updated: "2026-11-13T20:18:46.414Z"
---
# Memory data model

Updated: November 13, 2026

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](https://docs.unified.to/genai/integrations.md) page. 

| Field                    | Type               | Required | Description                                                                                                                       |
| ------------------------ | ------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
| id                       | string             | No       |                                                                                                                                   |
| created\_at              | string (date-time) | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                          |
| updated\_at              | string (date-time) | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                          |
| type                     | enum               | No       | FOLDER for a memory store or a sub-folder in one, MEMORY for a memory. Values: FOLDER, MEMORY                                     |
| parent\_id               | string             | No       | id of the parent genai\_memory folder. Empty on root-level nodes.                                                                 |
| user\_identifier         | string             | No       | The customer's own identifier for the end user that the memory belongs to.                                                        |
| name                     | string             | No       | The folder name, or the memory's file name where the integration organizes memories by path.                                      |
| content                  | string             | No       | The memory text. MEMORY nodes only.                                                                                               |
| description              | string             | No       | The memory store's description. Store-level folders only.                                                                         |
| metadata                 | GenaiMetadata\[\]  | No       |                                                                                                                                   |
| metadata\[\].id          | string             | No       |                                                                                                                                   |
| metadata\[\].slug        | string             | No       |                                                                                                                                   |
| metadata\[\].value       | object             | No       |                                                                                                                                   |
| metadata\[\].namespace   | string             | No       |                                                                                                                                   |
| metadata\[\].format      | enum               | No       | Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL |
| metadata\[\].extra\_data | object             | No       |                                                                                                                                   |

## TypeScript

```typescript
export type GenaiMemory = {
	id?: string;
	created_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-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?: [];
	raw?: any;
} 
```

## Zod

```typescript
import { z } from 'zod';

export const ZodGenaiMemory = z.object({
	id: z.string().optional(),
	created_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	type: z.enum("FOLDER", "MEMORY").optional().describe("FOLDER for a memory store or a sub-folder in one, MEMORY for a memory."),
	parent_id: z.string().optional().describe("id of the parent genai_memory folder. Empty on root-level nodes."),
	user_identifier: z.string().optional().describe("The customer's own identifier for the end user that the memory belongs to."),
	name: z.string().optional().describe("The folder name, or the memory's file name where the integration organizes memories by path."),
	content: z.string().optional().describe("The memory text. MEMORY nodes only."),
	description: z.string().optional().describe("The memory store's description. Store-level folders only."),
	metadata: z.array().optional(),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class GenaiMemoryType(str, Enum):
	FOLDER = 'FOLDER'
	MEMORY = 'MEMORY'

@dataclasses.dataclass
class GenaiMemory:
	id: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""FOLDER for a memory store or a sub-folder in one, MEMORY for a memory."""
	type: Optional[GenaiMemoryType]
	"""id of the parent genai_memory folder. Empty on root-level nodes."""
	parent_id: Optional[str]
	"""The customer's own identifier for the end user that the memory belongs to."""
	user_identifier: Optional[str]
	"""The folder name, or the memory's file name where the integration organizes memories by path."""
	name: Optional[str]
	"""The memory text. MEMORY nodes only."""
	content: Optional[str]
	"""The memory store's description. Store-level folders only."""
	description: Optional[str]
	metadata: Optional[PropertyGenaiMemoryMetadata]

```
