> ## Documentation Index
> Fetch the complete documentation index at: https://studio.chat-atp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a memory

> Store a memory on an agent

<ParamField path="agent_id" type="integer" required>
  Agent ID.
</ParamField>

<ParamField body="title" type="string" required>
  Short title.
</ParamField>

<ParamField body="content" type="string" required>
  Memory body.
</ParamField>

<ParamField body="agent_user_id" type="integer">
  Scope the memory to one user. Omit for agent-level memory.
</ParamField>

## SDK

<CodeGroup>
  ```typescript TypeScript theme={null}
  await client.memories.create(7, {
    title: "Preferred language",
    content: "Jane prefers English.",
    agent_user_id: 42,
  });
  ```

  ```python Python theme={null}
  await client.memories.create(
      7,
      title="Preferred language",
      content="Jane prefers English.",
      agent_user_id=42,
  )
  ```
</CodeGroup>
