Skip to content
Sign in Create account

GET receipts/chain/export

GET /api/v1/receipts/chain/export

Exports the authenticated account’s receipt chain for local verification.

Authenticate with an API key or a portal session token.

Parameters

  • format string query

Responses

200 Successful response.

application/json ReceiptsChainManifest

  • chain_id string required
  • entries array of object required

    Each item:

    • canonical_sha256 string required
    • created_at string (date-time) or null required
    • jti string required
    • kid string required
    • prev_hash string or null required
    • seq integer required
  • manifest_sha256 string required
  • manifest_signature OpenReceiptEnvelope required

Generated sample

{
  "chain_id": "string",
  "entries": [
    {
      "canonical_sha256": "string",
      "created_at": "2026-01-01T00:00:00Z",
      "jti": "string",
      "kid": "string",
      "prev_hash": "string",
      "seq": 0
    }
  ],
  "manifest_sha256": "string",
  "manifest_signature": {
    "alg": "ecdsa-p256-sha256",
    "chain": {
      "chain_id": "string",
      "prev_hash": "string",
      "seq": 0
    },
    "claims": {
      "egress_attestation": {
        "attester": "desktop",
        "attester_build_hash": "string",
        "zero_payload_proof": {}
      },
      "routing_decision": {
        "model": "string",
        "provider_id": "string",
        "provider_region": "string",
        "reason": "user-selected"
      },
      "tokenisation": {
        "detectors": [
          {
            "count": 0,
            "fingerprint_hmac": "string",
            "id": "string",
            "version": "string"
          }
        ],
        "input_hash": "string",
        "level": "tokenise-reversible",
        "output_hash": "string",
        "tokeniser_binary_hash": "string"
      },
      "x-cloakapi-detection": {
        "basis": "client_declared",
        "coverage": "rules_only",
        "engine_identity": "not_declared"
      }
    },
    "exp": 0,
    "iat": 0,
    "iss": "https://example.com",
    "jti": "string",
    "kid": "string",
    "nbf": 0,
    "sig": "string",
    "sub": "string",
    "v": "v1"
  }
}
401 Authentication is required or the supplied credentials are not accepted.

application/json Error

  • error string required
  • message string
403 The authenticated principal lacks the required permission.

application/json ReceiptsApiError

  • error object required
    • code string required
      Example: "not_found"
    • message string required
      Example: "The requested receipt was not found."
422 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

500 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.