cloakDocs

Authentication

The keyless free tier, API keys, and how limits are metered.

Cloak uses a single optional Bearer API key. Authentication is entirely opt-in: the free tier needs no credentials, and a key exists only to raise your daily limits.

The header

Authorization: Bearer bm_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Keys look like bm_live_ followed by 48 hex characters. Send the header on any /v1/* request. Omit it to use the free tier.

Keyless free tier vs a key

Keyless (free)With an API key
CredentialsnoneAuthorization: Bearer <key>
Metered perIP addresskey
Requests / day602,000
Pages / day20010,000

Per-IP vs per-key

Without a key, usage is counted per IP address — everyone behind the same NAT or egress IP shares the free allowance. With a key, usage is counted per key, independent of where the request comes from, which is why a key is the right choice for servers and shared infrastructure.

Getting and managing keys

Keys are created in the developer dashboard:

  1. Sign in and click Create key.
  2. Copy the key — it is shown once and never again (only a hash is stored).
  3. Revoke a key any time from the dashboard. Revocation propagates within 5 minutes: validation results are cached that long, so a revoked key may still be accepted until its cache entry expires. If a key has leaked, revoke it and treat the next five minutes as exposed.

The dashboard only ever stores a SHA-256 hash of your key plus a short non-secret prefix, so we can never reveal or recover the plaintext.

What a key does not do

A key does not unlock extra endpoints, change how redaction works, or attach any identity to your documents. It only raises the daily limits. If you need limits beyond the keyed caps, get in touch.