> Index of every Falcon docs page, for assistants: https://falcon.com/docs/llms.txt

# Add memories from your systems

Send facts, preferences and notes about existing people to an agent's memory.

## Create a key

Open the agent's Memory page and turn Save memories on. Under Add memories from your systems, choose Create key. Copy the new key now: it is shown once, and the server stores only its hash. Company administrator access is required.

Rotate key replaces it immediately; update your systems with the new value. Revoke key stops it immediately. Both actions ask you to confirm. Keep the key in your system's secret storage.

## Send a POST

Use the company address and the POST URL from the page. Set Authorization to Bearer followed by the key. Replace the placeholders in this example.

```sh
curl -X POST "$STUDIO_ORIGIN/api/v0/agents/$AGENT_ID/memories/ingest" \
  -H "Authorization: Bearer $MEMORY_INGEST_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"items":[{"person":{"email":"sam@example.invalid"},"kind":"preference","text":"Prefers aisle seats","source":"crm","external_id":"sam-seat"}]}'
```

Each call accepts up to 100 items. person takes exactly one of email, phone, person_id or contact_id. Email and phone must match a saved company contact point; use international +country phone format. No person is created. kind is fact, preference or note. text is at most 8,000 characters; source is at most 80 and external_id at most 256. All are required.

## Read the result and retry safely

```json
{"accepted":1,"refused":0,"items":[{"index":0,"status":"accepted"}]}
```

Each result names the item's zero-based index. Refused items include a reason, such as person_not_matched, invalid_item or memory_not_switched_on. Check each item even when the HTTP response is 200. Wrong or revoked keys return 401. Each key may make 60 calls per minute; 429 means wait until the next minute.

Reuse the same source and external_id to update that agent's earlier record. Sending the same contents again keeps one record. An external id cannot be reassigned to another person. On item_busy_retry, wait and retry. On retry_previous_item_first, retry the previous item unchanged; if its settings have changed, ask an administrator to reconcile the interrupted import.

## Sharing, privacy and usage

The current Memory settings decide where each kind is kept. Fact maps to Facts, preference to Preferences, and note to Moments. Off refuses new writes. Sensitive-looking content stays with this agent. Without affirmative privacy screening, facts and notes stay private and whole-agent shared imports are refused. For memory kept with each identity, include identity_id on the item; it must be an active identity currently bound to this agent. Missing or unbound identity context is refused. Case memory requires case context and is refused by this endpoint.

Calls are audited with key id and accepted/refused counts, never memory text. Usage counts changed records; identical retries do not add usage. Direct record writes have no separate provider call charge. Long-term memory storage has its normal provider storage cost. Existing billing checks, spending limits and service pauses apply before a write. Storage gets an up-front budget hold and a conservative recurring allowance at the billing company. The allowance survives month changes and key rotation; deleting a memory does not automatically restore its allowance. Ask an administrator to review the storage budget. These holds protect the budget and are not additional write fees.

Signed-in company administrators can also call ingestAgentMemories and manage keys through API or MCP. The same item, permission and rate-limit checks apply. Keys grant ingestion only; they cannot read memory or change settings.

## Related

- [Agents](https://falcon.com/docs/agents)
- [API and MCP reference](https://falcon.com/docs/api#ingestAgentMemories)
