Skip to content
Sign in Create account

GET receipts/by-jti/{}

GET /api/v1/receipts/by-jti/{jti}

Looks up a published receipt envelope by JTI.

This operation needs no authentication.

Parameters

  • jti string path required
    Pattern: ^[0-9A-Za-z-]+$

Responses

200 Successful response.

application/json ReceiptsByJti

  • alg string required

    Signature algorithm (FIPS 186-5)

    One of: "ecdsa-p256-sha256"
  • chain ReceiptChain required
  • claims ReceiptClaims required
  • exp integer

    Expiry (optional)

  • iat integer required

    Issued-at (Unix seconds)

  • iss string (uri) required

    Issuer URL identifying the producer, e.g. https://issuer.example (reserved example domain).

  • jti string required

    Unique ULID identifier

  • kid string required

    Key identifier; resolves via /.well-known/cloakapi-receipt-pubkey.pem

  • nbf integer

    Not-before (defaults to iat)

  • sig string required

    Base64url-encoded ECDSA P-256 signature (raw r||s)

  • sub string required

    Opaque request/session identifier; no PII

  • v string required

    Envelope version tag

    Example: "v1"

Generated sample

{
  "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"
}
400 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.

401 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.

404 The referenced resource was not found.

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 route throttle limit was exceeded.

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

503 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.