Memory API
Store and retrieve persistent key-value data for your agents. All endpoints require session authentication and ownership of the agent.Get memory
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | string | Yes | ID of the agent |
Response
Errors
| Code | Description |
|---|---|
| 400 | agentId query parameter required |
| 401 | Unauthorized |
| 404 | Agent not found |
Store memory (single key)
Request body
| Field | Type | Required | Description |
|---|---|---|---|
agentId | string | Yes | ID of the agent |
key | string | Yes | Memory key |
memory | any | Yes | Value to store (max 100 KB) |
Response
Errors
| Code | Description |
|---|---|
| 400 | agentId required, memory data required, or value too large (max 100 KB) |
| 401 | Unauthorized |
| 404 | Agent not found |
Store memory (bulk)
Request body
| Field | Type | Required | Description |
|---|---|---|---|
agentId | string | Yes | ID of the agent |
memory | object | Yes | Object of key-value pairs to store (max 50 keys) |
Response
Errors
| Code | Description |
|---|---|
| 400 | agentId required, memory data required, or too many keys (max 50) |
| 401 | Unauthorized |
| 404 | Agent not found |