Skip to content

Quickstart

Get your first AuditProof in 5 minutes.


1. Sign Up

curl -X POST https://api.nanorix.io/v1/signup \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]", "jurisdiction": "US"}'

Response:

{
  "api_key": "nrx_live_a1b2c3d4e5f6...",
  "customer_id": "3f2a9c1e-...",
  "email": "[email protected]",
  "tier": "free",
  "limits": {
    "capsules_per_month": 100,
    "max_lifetime_seconds": 300,
    "concurrent_capsules": 3,
    "rate_limit_rpm": 20
  },
  "warning": "Store this API key securely — it will not be shown again."
}

Save your API key

The API key is shown exactly once. Nanorix stores a SHA-256 hash of it, with a short hint for display. If you lose it, you'll need to contact support for a key rotation.

The jurisdiction field is required and determines which regulatory frameworks appear in your AuditProofs. Options: US, EU, UK, CA, AU, IN, OTHER. A signup without it is refused with a 400 naming these values.


2. Create a Capsule

curl -X POST https://api.nanorix.io/v1/capsules \
  -H "Authorization: Bearer nrx_live_a1b2c3d4e5f6..." \
  -H "Content-Type: application/json" \
  -d '{"data_classification": "general"}'

Response:

{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "status": "active",
  "max_lifetime_seconds": 300,
  "created_at": "2026-03-01T14:00:00Z",
  "expires_at": "2026-03-01T14:05:00Z"
}

The capsule is now running inside a sealed ephemeral environment with volatile-memory-only storage. The data_classification field is your declaration of what kind of data you'll process. Options: PHI, PII, financial, credentials, general. The hosted endpoint is an evaluation sandbox for synthetic data: do not send it PHI or other regulated data.


3. Execute a Command

curl -X POST https://api.nanorix.io/v1/capsules/7c9e6679-7425-40de-944b-e07fc1f90ae7/exec \
  -H "Authorization: Bearer nrx_live_a1b2c3d4e5f6..." \
  -H "Content-Type: application/json" \
  -d '{
    "command": "cat /data/input/uploads/data",
    "input_data": "{\"record_id\": \"R-1234\", \"category\": \"sample\"}",
    "timeout": 30
  }'

Response:

{
  "capsule_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "stdout": "{\"record_id\": \"R-1234\", \"category\": \"sample\"}",
  "stderr": "",
  "exit_code": 0,
  "duration_ms": 12,
  "executed_at": "2026-03-01T14:01:00.482913587Z"
}

The input_data is written to a file inside the sealed sandbox before execution. Your command reads it from /data/input/uploads/data; it is not sent to stdin. The data never touches persistent disk and never appears in command-line arguments.


4. Destroy and Get Your AuditProof

curl -X DELETE https://api.nanorix.io/v1/capsules/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -H "Authorization: Bearer nrx_live_a1b2c3d4e5f6..."

Response (truncated for readability):

{
  "capsule_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "status": "destroyed",
  "cdp": {
    "cdp_version": "2.2",
    "capsule_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "destroyed_at": "2026-03-01T14:04:58Z",
    "chain": [
      {"step": 1, "subsystem": "eee_namespace", "operation": "environment_isolation", "evidence_hash": "sha512:...", "chain_hash": "sha512:..."},
      {"step": 8, "subsystem": "capsule_destroy", "operation": "lifecycle_completion", "evidence_hash": "sha512:...", "chain_hash": "sha512:..."}
    ],
    "final_hash": "sha512:2c8a4f63d19e7b...",
    "attestation": {
      "algorithm": "Ed25519",
      "public_key": "base64:MCowBQYDK2Vw...",
      "signature": "base64:VGhpcyBpcyBh..."
    },
    "regulatory_context": {
      "notice": "This mapping identifies regulatory provisions related to the destruction evidence. It is not a compliance certification. Compliance determinations should be made by qualified legal and compliance professionals.",
      "framework_version": "2026-08",
      "jurisdiction": "US",
      "mappings": [
        {
          "step": 3,
          "subsystem": "eee_memory",
          "frameworks": [
            {
              "regulation": "HIPAA",
              "provision": "§164.310(d)(2)(i)",
              "description": "Device and media controls — disposal",
              "relationship": "related_to"
            }
          ]
        }
      ]
    }
  }
}

Save the cdp object as auditproof.json. This is your AuditProof — signed evidence of the capsule's full lifecycle, and the document that verifies offline. It carries the capsule's activity trail (file names; commands only as hashes) and your metadata, which the signature does not cover (the capsule_started event (signed on 2.1 and 2.2) carries its hash). The verification_cdp summary leaves out the file names and the per-step chain, carries your metadata and the capsule ID, and verifies only through POST /v1/verify; it does not keep the full proof from anyone who holds the capsule ID, because the API serves that proof without authentication, on the hosted service and on your own deployment.

The regulatory_context section maps each destruction step to relevant regulatory provisions. This is a factual reference mapping, not a compliance certification. Your compliance team uses it as evidence alongside their own controls.


5. Verify the AuditProof

Online (API)

The endpoint takes the AuditProof under a cdp key, so wrap the file before sending it:

jq '{cdp: .}' auditproof.json \
  | curl -X POST https://api.nanorix.io/v1/verify \
      -H "Content-Type: application/json" \
      --data-binary @-
{
  "valid": true,
  "checks": {
    "cdp_version_valid": true,
    "chain_integrity": true,
    "final_hash_valid": true,
    "step_count": 8,
    "signature_valid": true,
    "algorithm": "Ed25519",
    "verification_scope": "trust_chain_anchored: the signing key resolved to an authority in this service's published trust-chain manifest, which verified against its pinned identity fingerprint, and the signature verified against that key (stage 8). This establishes which published authority's key produced the signature over the signed message (the final chain hash for a 1.0 proof, and for 2.1 and 2.2 the canonical-view hash recomputed from the document's fields); content that message does not cover is not attested by the signature, and the signature does not by itself establish that the events the document describes occurred."
  },
  "verified_at": "2026-...Z"
}

valid is the single answer. The checks object shows which part of the proof established it. valid is true only when the signing key was resolved against the published trust chain, and that verdict's checks.verification_scope begins trust_chain_anchored:. A verdict whose checks hold under any other prefix is integrity only (the signing key was not resolved against a published root): it answers valid: false with no failure_reason. See Verification. No API key is required — anyone holding the file can verify it.

Online (Web)

Go to nanorix.io/verify and drag-and-drop your AuditProof file.

Offline (Python)

from pathlib import Path
from nanorix.verifier import TrustChain, VerifierPolicy, verify

# The signed key list and its identity fingerprint, fetched yourself from
# https://verify.nanorix.io/.well-known/trust-chain.json and
# https://verify.nanorix.io/.well-known/identity.txt
with open("trust-chain.json", "rb") as f, open("identity.txt") as pin:
    chain = TrustChain.from_key_list(f.read(), pin.read().strip())

# Give the file itself: a parsed dict has lost the original bytes and the earlier
# copies of a repeated key, so a document the reference verifier refuses can verify.
# verify() recomputes the full hash chain, checks the Ed25519 signature and resolves its key, offline.
result = verify(Path("auditproof.json"), VerifierPolicy(trust_chain=chain))
print("status:", result.status)   # verified, not_anchored or not_verified
print("ok:", result.ok)           # True only when status is verified
if result.status == "not_verified":
    print("failed step:", result.failed_step, "-", result.failure_reason)

verify(proof) without the key list reports not_anchored at best, with ok False: the signature checks against the key the proof carries, which a proof signed with any freshly made key also does. It shows the bytes are unchanged, not who signed.

The full manual algorithm (for verifying with no Nanorix code at all) is in Verification.

For all verification methods, see Verification.


6. Retrieve the Stored Record

If you need the record later:

curl https://api.nanorix.io/v1/proofs/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -H "Authorization: Bearer nrx_live_a1b2c3d4e5f6..."

This returns the stored full proof, including its activity trail, for any destroyed capsule you own.


What's Next