Docs
Save and recall your first memory
Save a memory, find it again, and check the receipt that proves it was written. Four calls over HTTPS, in curl, TypeScript or Python. New here? Create an account first. Connecting Claude, ChatGPT, Cursor or another MCP client instead? Start at Connect your AI.
1. Get an API key
In the console, open API keys and choose Create key. The key starts ak_ and is shown once. It can read and write your workspace's default namespace from its first call (Scoping). Keep it in an environment variable, never in code:
export AGENTICS_API_KEY="ak_..."2. Remember something
Send the memory as content. Leave out namespace to use the default one.
curl https://agentics.you/v1/memories \
-H "Authorization: Bearer $AGENTICS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"The customer prefers email over phone."}'const base = "https://agentics.you/v1";
const headers = { Authorization: `Bearer ${process.env.AGENTICS_API_KEY}`, "Content-Type": "application/json" };
const added = await fetch(`${base}/memories`, {
method: "POST",
headers,
body: JSON.stringify({ content: "The customer prefers email over phone." }),
}).then((r) => r.json());
console.log(added);import os, requests
base = "https://agentics.you/v1"
headers = {"Authorization": f"Bearer {os.environ['AGENTICS_API_KEY']}"}
added = requests.post(f"{base}/memories", headers=headers, json={"content": "The customer prefers email over phone."}).json()
print(added)The reply is 202 Accepted. The memory is stored as pending, and a job makes it searchable:
{
"job_id": "5b0d7c1e-2f4a-4c8e-9a61-3d2f8b7e4a10",
"memory_id": "9e6a2c34-7b1d-4f0e-8c5a-1a2b3c4d5e6f",
"duplicate": false,
"stage": "queued"
}Read the job until its stage is done. Sending the same content to the same namespace again returns 200 with duplicate true, and no new job.
curl https://agentics.you/v1/ingest/$JOB_ID \
-H "Authorization: Bearer $AGENTICS_API_KEY"let job = added;
while (!["done", "failed"].includes(job.stage)) {
await new Promise((r) => setTimeout(r, job.poll_after_ms ?? 1000));
job = await fetch(`${base}/ingest/${added.job_id}`, { headers }).then((r) => r.json());
}
console.log(job.stage);import time
job = added
while job["stage"] not in ("done", "failed"):
time.sleep((job.get("poll_after_ms") or 1000) / 1000)
job = requests.get(f"{base}/ingest/{added['job_id']}", headers=headers).json()
print(job["stage"]){
"job_id": "5b0d7c1e-2f4a-4c8e-9a61-3d2f8b7e4a10",
"memory_id": "9e6a2c34-7b1d-4f0e-8c5a-1a2b3c4d5e6f",
"stage": "done",
"failed_stage": null,
"failure_reason": null,
"terminal": true,
"poll_after_ms": null
}The job reply has more fields, such as the time of each stage. A failed job names its failed_stage and failure_reason, and POST /v1/ingest/{job_id}/retry runs it again.
3. Recall it
Ask in your own words. Search combines keyword and meaning (vector) matching over every namespace the key can read.
curl https://agentics.you/v1/memories/search \
-H "Authorization: Bearer $AGENTICS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"how does the customer like to be contacted?"}'const found = await fetch(`${base}/memories/search`, {
method: "POST",
headers,
body: JSON.stringify({ query: "how does the customer like to be contacted?" }),
}).then((r) => r.json());
console.log(found.hits[0]);found = requests.post(f"{base}/memories/search", headers=headers, json={"query": "how does the customer like to be contacted?"}).json()
print(found["hits"][0]){
"query": "how does the customer like to be contacted?",
"mode": "hybrid",
"k": 8,
"count": 1,
"token_budget": 4000,
"token_budget_used": 10,
"truncated": false,
"hits": [
{
"id": "9e6a2c34-7b1d-4f0e-8c5a-1a2b3c4d5e6f",
"content": "The customer prefers email over phone.",
"receipt_hash": "3f9c1e…a07b",
"score": 1,
"why": { "arms": ["dense", "keyword"], "keyword_rank": 1, "keyword_score": 0.06, "dense_rank": 1, "dense_similarity": 0.71 }
}
],
"query_id": null
}Each hit has a score from 0 to 1, why it ranked (each matching method's rank), and the receipt_hash of its write. mode is hybrid; if the meaning step can't run it is keyword, and degraded says why. Nothing falls back silently. Hits also carry namespace_id, metadata, source, agent_id and created_at. Every search writes a recall receipt of its own.
4. Open the receipt
The receipt_hash is the receipt of the write. Anyone can check it, with no account: open https://agentics.you/verify/?hash= followed by the hash, or paste it on Check a receipt. From code, call the checker:
curl -s "https://agentics.you/api/proof/verify?hash=$RECEIPT_HASH"{
"verified": false,
"receipt_recomputed": true,
"chain_ok": true,
"merkle_ok": false,
"anchor_ok": false,
"merkle_root": null,
"anchor_txid": null
}That is a new receipt: its hash is recomputed and it links to the receipt before it, and it is not in a batch yet. Receipts are batched, and each batch root is anchored. Once its batch is, merkle_ok and anchor_ok turn true, and so does verified. The check never returns the memory's content: the receipt holds a digest of it. Receipts and verification says what each part proves.
Next
- Connect your AI: give Claude, ChatGPT, Cursor or your own agent the same memory over MCP, with
rememberandrecall. - Framework guides: LangChain, CrewAI, Vercel AI SDK, LlamaIndex and the OpenAI Agents SDK.
- REST API reference: every memory, namespace, ingest, key and webhook route.
- Errors and limits: every error has one shape,
{"error": {"code", "message"}}, and every code is listed.
Moved to Connect your AI
The MCP steps that were on this page are on Connect your AI:
- Copy a client: the MCP config, curl and Node for
https://agentics.you/mcp. - Get a token: OAuth 2.1 with PKCE, for a client you write.
- Agent keys: for code that runs on a server.
- Record a first action:
log_action,report_outcomeandrecord_action. - Hand work between two agents.
- Tools: every MCP tool, its class and scope.