Store a memory (user, knowledge, or hive) in a collection
user, knowledge, hive.user: Personal memory for the calling userknowledge: Shared knowledge base entry (admin/owner only)hive: Workspace-wide shared memory (admin/owner only)POST /memory/collections.| Header | Meaning |
|---|---|
x-credit-balance | Your wallet balance after this charge |
x-credit-charged | Amount charged for this specific request |
x-billing-tx | UUID of the audit row (for refunds/support) |
| Status | Code | Meaning |
|---|---|---|
| 400 | — | Missing or invalid text field |
| 402 | INSUFFICIENT_CREDITS | Wallet balance is lower than the ingest charge. Response body includes details.required, details.available, and details.shortfall. |
| 403 | POLICY_DENY | Role is not allowed to create memories (viewer) |
| 503 | MEMORY_INFRA_NOT_READY | The memory layer is still being provisioned for this workspace (usually only on first use). Retry in ~10s. |
| 503 | MEMORY_UNREACHABLE | The memory service is temporarily unavailable. Request is queued for retry and the charge is automatically refunded. |
GET /memory/:id/status to check if a memory has been fully processed. Statuses: pending, processing, ready, failed.