Skip to content
Sign in Create account

Glossary

API key

A cloak_… token issued from the portal. It identifies a tenant and a capability scope. See Authentication.

BYOK

Bring your own key. The tenant connects its own provider account; CloakAPI stores the upstream key encrypted and decrypts it in memory only for the duration of a single request.

Capability

A fine-grained model allowlist scope, for example gpt-5.4-mini or claude-haiku-5-5. API keys are issued with one or more capabilities.

Chain hash

sha256(canonical_json(previous_envelope)). It links each receipt to the previous one for the same tenant.

Detector

A tokenizer component that recognizes one kind of personal data, such as an email address, a phone number or an IBAN. Client-signed v3 receipts record which detector categories fired. Detection is best-effort and can miss values; see Detection coverage.

JTI

JWT ID: the unique receipt identifier. It is random hex in v2 envelopes and a UUID v7 in client-signed v3 envelopes.

JWKS

JSON Web Key Set: the public list of CloakAPI signing keys, served at https://api.cloakapi.io/api/.well-known/cloakapi-receipt-pubkeys.jwks. See Public JWKS.

KID

Key ID. It identifies which signing key sealed a receipt and matches a kid in the JWKS.

OpenReceipt

The open protocol for signed AI gateway receipts. The specification is at signedreceipts.org, and CloakAPI is the reference implementation. See OpenReceipt protocol.

Organization and sub-organization

An organization is the top-level tenant. Partner mode allows nested sub-organizations, each with its own quotas, rate limits and balances.

Provider

A provider is a supported upstream LLM service, such as OpenAI, Anthropic, Google Gemini, Grok, DeepSeek, OpenRouter, Perplexity or Mistral. Some providers can be connected with your own key (BYOK). The gateway routes requests using account routing defaults and supported failover behavior.

Provider-routing rules

Saved and validated configuration for provider selection. These rules are not applied to requests yet; requests follow the account’s default routing.

Receipt

A signed envelope attached to a gateway response; on client-side paths, the device can also issue an on-device receipt. You can verify a receipt long after the call: gateway receipts against the public JWKS, and client-signed v3 receipts offline through the embedded attester key. See Verification methods.

Stand-in

The value that replaces a detected value in a tokenized request. Which form you get depends on the mode and the value type:

  • Default mode (balanced): a realistic stand-in of the same kind, for example jane.doe@acme.com becomes mark.allen@brightwave.com.
  • In balanced, detected payment cards, government IDs, IBANs, dates of birth and secrets can use bracketed markers such as [CLK-IBAN-…].
  • In measurements of the browser TypeScript SDK 1.6.1, detected payment cards became [CLK-CARD-…] in both balanced and max. A native FFI token in max can use a six-digit hexadecimal ID, as in <<CLOAK:CONTACT_EM:7ab202>> for an email address.

Tokenization

Replacing detected personal data in customer strings with stand-ins before requests leave the tenant’s perimeter. On client-side paths (browser chat, desktop app, extension, local proxy, and the SDK tokenize step), the mapping table stays in the tenant’s local store and is not sent to the gateway. The gateway does not tokenize the inference body. Its proof check authenticates the submitted bytes and the caller’s declaration; it does not verify that all PII was tokenized.