Sgraal in 5 lines of code.
See your first memory verdict in under 60 seconds. Python, Node.js, or any HTTP client.
You'll need
sg_demo_playground. Get your own →# pip install sgraal from sgraal import SgraalClient client = SgraalClient(api_key="sg_demo_playground") verdict = client.preflight(memory_state=[{"id": "mem1", "content": "user prefers email", "type": "preference"}]) print(verdict["recommended_action"]) # USE_MEMORY / WARN / ASK_USER / BLOCK
// Node 18+ — global fetch, no SDK package needed const res = await fetch("https://api.sgraal.com/v1/preflight", { method: "POST", headers: { "Authorization": "Bearer sg_demo_playground", "Content-Type": "application/json" }, body: JSON.stringify({ memory_state: [{ id: "mem1", content: "user prefers email", type: "preference" }] }), }); const verdict = await res.json(); console.log(verdict.recommended_action); // USE_MEMORY / WARN / ASK_USER / BLOCK
curl -X POST https://api.sgraal.com/v1/preflight \ -H "Authorization: Bearer sg_demo_playground" \ -H "Content-Type: application/json" \ -d '{"memory_state": [{"id": "mem1", "content": "user prefers email", "type": "preference"}]}'
Hit POST /v1/preflight on api.sgraal.com — the scoring endpoint that returns the four-band decision plus full analytics. For an unmetered plain-strings preview, see POST /v1/check.
{
"decision": "USE_MEMORY",
"confidence": 0.87,
"request_id": "req_abc123",
"reasoning": "Memory aligns with agent context, no provenance conflict detected.",
"policy_version": "v12"
}
USE_MEMORY, WARN, ASK_USER, or BLOCK.Pick the proof artifact your auditor or regulator asks for.
Upgrade verdicts to GDPR-grade signed W3C Verifiable Credentials. /v1/certify/mvmem
Generate FDA-style audit artifacts. Lyapunov stability analysis (assumed decay model) + signed PDF. /v1/proofs/convergence
365 endpoints across preflight, scoring, healing, vaccines, fleet health, compliance.
/docs →The demo key is great for testing. Real keys give you full quota, per-tenant signing, and the dashboard.
This quickstart uses live endpoints on api.sgraal.com. The sample key sg_demo_playground is real and works for /v1/check, /v1/preflight, and other non-sensitive endpoints. It is blocked on admin/destructive endpoints (audit-log export, key generation, team management). Real production keys are scoped per-tenant with full quota and no endpoint restrictions.