Add a memory
⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/memory_stores/{store_id}/memoriesWrite a memory yourself, for example to seed a store with what you already know about a customer. Memories you add carry source.kind: "api", so they are always distinguishable from what an agent wrote.
For how this fits into a full workflow, see Memory stores.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | agents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Content-Type | Yes | application/json |
Path parameters
| Parameter | Type | Description |
|---|---|---|
store_id | string | The memory store id, starting with mem_. |
Body parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
scope | string | Yes | Such as customer:4821, or global. |
content | string | Yes | Plain text up to 4,000 characters. |
tags | array of strings | No | Up to 10. |
expires_at | string | No | RFC 3339 time; overrides the store default. |
Response
201 Created, Content-Type: application/json
{
"id": "mmr_01JC8D1F3H5K7M9P1R3T",
"store_id": "mem_01JC1A3C5E7G9J1L3N5Q",
"scope": "customer:4821",
"content": "Account manager is Priya; escalate billing issues to her.",
"tags": [
"contact"
],
"source": {
"kind": "api"
},
"created_at": "2026-11-05T10:00:15Z",
"updated_at": "2026-11-05T10:00:15Z",
"expires_at": "2027-11-05T10:00:15Z"
}Examples
curl -sS https://app.syntic.ai/v1/memory_stores/mem_01JC1A3C5E7G9J1L3N5Q/memories \
-H "Authorization: Bearer $SYNTIC_API_KEY" \
-H "syntic-beta: agents-2026-11-01" \
-H "Content-Type: application/json" \
-d '{
"scope": "customer:4821",
"content": "Account manager is Priya; escalate billing issues to her.",
"tags": [
"contact"
]
}'Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 400 | invalid_request_error | scope_required | scope is missing. |
| 400 | invalid_request_error | content_too_long | content is over 4,000 characters. |
| 404 | not_found_error | memory_store_not_found | No store with that id in this workspace. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Related
Was this page helpful?