Skip to main content
The hosted memory candidate plane is deployed at api.praxa.io, but it remains a qualification preview. Its unauthenticated gateway boundary is proven. A complete authenticated positive, wrong-scope, revoked-key, and two-tenant by two-subject canary matrix is still pending.
Candidate records do not become Praxa personal memory, Vectorize content, Cognitive Events, AHCE observations, task context, or world-model facts. Use disposable test data until your authenticated qualification passes.

Prerequisites

  • A personal workspace key with memory:write for create and delete.
  • A personal workspace key with memory:read for query and export.
  • A subject identifier owned by your application.
  • A provider/source record you can safely represent as a portable candidate.
Organization workspaces cannot mint hosted memory scopes. Identity and tenant come from the authenticated key; neither is accepted from the request body.

1. Create one candidate

Save this body as candidate.json:
candidate.json
The first successful request returns 201 with replayed: false. Persist candidate.id. Replaying the exact body under the same key returns the same candidate with replayed: true. A different body under that key returns 409.

2. Query the subject

The response always identifies retrievalMode: "lexical". Do not describe this hosted endpoint as semantic or graph retrieval.

3. Export candidate and deletion history

The response is newline-delimited JSON. If X-Praxa-Next-Cursor is present, send it as cursor on the next request. Each line is either a candidate event or a content-free deletion receipt event.

4. Erase the candidate

Deletion hard-erases the candidate content and returns an immutable receipt. The receipt retains identifiers, digests, and timestamps, not the content. It does not delete the original record from customer-profile or any other provider-owned source.

5. Run the qualification matrix

Run the matrix with two disposable tenants and two subjects per tenant before using real customer data. Passing package tests or an unauthenticated 401 probe does not substitute for this authenticated boundary test.

Open the memory API playground

Inspect the generated request schema and examples. Use only disposable least-privilege keys while the plane remains a qualification preview.

Troubleshooting

Best practices

  • Keep provider writes and lifecycle under the provider’s documented API.
  • Resolve tenant and subject in trusted backend code and test 2x2 isolation.
  • Preserve provenance, source matches, contradictions, and per-source status.
  • Bound concurrency, result count, context bytes, and source timeout.
  • Never promote checkpoint, hidden, or unverified content into portable recall.

Optimize for production

  • Query only providers and record kinds relevant to the current purpose.
  • Use bounded parallel recall and give each source an explicit timeout budget.
  • Deduplicate normalized content while retaining every source match and contradiction.
  • Measure source p50/p95 latency, partial/failed recalls, result precision, context bytes, and isolation failures.
Optimize only after the correctness and isolation matrix passes. Lower latency or cost is not an improvement if verified outcomes, authority checks, or recovery rates regress.

Cleanup and next steps

  1. Delete synthetic provider records using the provider’s normal API.
  2. Hard-erase disposable hosted candidates and verify content-free receipts when used.
  3. Revoke test credentials and remove namespace fixtures for every tenant and subject.
  4. Retain only non-content source statuses, identifiers, and test results required for audit.
After cleanup, run the shared integration test matrix and record any environment-specific check that remains pending.

Frequently asked questions

What proves this tutorial works?

The minimum observable result is that create, lexical query, export, hard erasure, replay, and 2x2 isolation all pass. A compile, package import, mocked response, or initial admission alone does not prove the complete workflow.

Can a browser, mobile app, or model prompt hold the credential?

No. Provider clients and Praxa credentials stay in the backend; adapters receive clients, not raw credentials.

How should an ambiguous mutation be retried?

Persist the exact logical input and idempotency key before the first attempt. Reconcile through authoritative readback or replay the exact request with that same key before creating new work.

What should we monitor after release?

Monitor per-source latency/status, partial and failed recall rates, result precision, context bytes, provenance coverage, and isolation failures. Alert on authorization bypass, cross-tenant disclosure, repeated conflicts, or cleanup failure.
Last modified on August 14, 2026