Quickstart Guide

Ship governed memory
in 5 minutes

Get your API key, store a memory with automatic PII redaction, retrieve it with tenant isolation, and verify the audit trail.

5 steps curl / Python / Node.js No SDK required
Language
1

Get your API key

Sign up at tracecontinuity.com/pricing — your key is provisioned instantly after checkout. It starts with mnm_ and looks like this:

your api key
mnm_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6
Your key is shown once at provisioning. Store it in a secret manager or environment variable — not in source code.
bash
# Set it as an env var for the rest of this guide
export TC_API_KEY="mnm_your_key_here"
python
# .env file (add to .gitignore)
TC_API_KEY=mnm_your_key_here

# In your code:
import os
API_KEY = os.environ["TC_API_KEY"]
node.js
// .env file (add to .gitignore)
TC_API_KEY=mnm_your_key_here

// In your code:
const API_KEY = process.env.TC_API_KEY;
2

Store a governed memory

POST to /v1/memories with content and a tenant_id. PII is automatically tokenized before storage — you don't need to pre-process anything.

curl
curl -X POST https://tracecontinuity.com/v1/memories \
  -H "Authorization: Bearer $TC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Patient Jane Doe (SSN 123-45-6789) prefers morning appointments",
    "tenant_id": "agent_clinical_01"
  }'
python
import requests, os

response = requests.post(
    "https://tracecontinuity.com/v1/memories",
    headers={
        "Authorization": f"Bearer {os.environ['TC_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "content": "Patient Jane Doe (SSN 123-45-6789) prefers morning appointments",
        "tenant_id": "agent_clinical_01",
    }
)
memory = response.json()
print(memory["id"], memory["content"])
node.js
const res = await fetch("https://tracecontinuity.com/v1/memories", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.TC_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    content: "Patient Jane Doe (SSN 123-45-6789) prefers morning appointments",
    tenant_id: "agent_clinical_01",
  }),
});
const memory = await res.json();
console.log(memory.id, memory.content);
Notice the SSN and name in the request body? The API automatically tokenizes PII before storing. The stored content will replace sensitive data with deterministic tokens.
Response 201
{
  "id": 2847,
  "content": "Patient [PII_NAME:a7f3] (SSN [PII_SSN:b2e1]) prefers morning appointments",
  "tenant_id": "agent_clinical_01",
  "created_at": "2026-05-18T11:42:00.000Z",
  "governance": {
    "pii_detected": true,
    "tokens_applied": 2,
    "types": ["NAME", "SSN"]
  }
}
3

Retrieve with tenant isolation

Query memories scoped to a tenant. Each API key can only access memories belonging to its authorized tenants — cross-tenant access is blocked at the infrastructure level.

curl
curl "https://tracecontinuity.com/v1/memories?tenant_id=agent_clinical_01" \
  -H "Authorization: Bearer $TC_API_KEY"
python
response = requests.get(
    "https://tracecontinuity.com/v1/memories",
    headers={"Authorization": f"Bearer {os.environ['TC_API_KEY']}"},
    params={"tenant_id": "agent_clinical_01"}
)
memories = response.json()["memories"]
for m in memories:
    print(m["content"])
node.js
const res = await fetch(
  "https://tracecontinuity.com/v1/memories?tenant_id=agent_clinical_01",
  { headers: { "Authorization": `Bearer ${process.env.TC_API_KEY}` } }
);
const { memories } = await res.json();
memories.forEach(m => console.log(m.content));
Response 200
{
  "memories": [
    {
      "id": 2847,
      "content": "Patient [PII_NAME:a7f3] (SSN [PII_SSN:b2e1]) prefers morning appointments",
      "tenant_id": "agent_clinical_01",
      "created_at": "2026-05-18T11:42:00.000Z"
    }
  ],
  "total": 1
}
4

Verify the audit trail

Check your usage dashboard to see governance events — every PII detection, tokenization, and access check is logged with timestamps and tenant context.

curl
curl https://tracecontinuity.com/v1/usage \
  -H "Authorization: Bearer $TC_API_KEY"
python
response = requests.get(
    "https://tracecontinuity.com/v1/usage",
    headers={"Authorization": f"Bearer {os.environ['TC_API_KEY']}"}
)
usage = response.json()
print(f"Memories: {usage['total_memories']}")
print(f"Governance events: {usage['governance_events']}")
print(f"Tier: {usage['tier']}")
node.js
const res = await fetch("https://tracecontinuity.com/v1/usage", {
  headers: { "Authorization": `Bearer ${process.env.TC_API_KEY}` }
});
const usage = await res.json();
console.log(`Memories: ${usage.total_memories}`);
console.log(`Governance events: ${usage.governance_events}`);
console.log(`Tier: ${usage.tier}`);
Response 200
{
  "total_memories": 1,
  "api_calls_today": 3,
  "governance_events": 2,
  "tier": "business",
  "rate_limit": {
    "max": 1000,
    "remaining": 997
  }
}
5

You're live. What's next?

Your agent now has governed memory with automatic PII redaction, audit logging, and tenant isolation. Here's where to go from here:

Early Access

Ready to build with governed memory?

Tell us what you're building and we'll get you set up. Healthcare, legal, and fintech use cases prioritized.