## Authentication

All requests to `/v1/evaluate` must include your secret API key as a Bearer token. Find your key in the [Dashboard](https://maskbreak.com/dashboard).

Authorization: Bearer sk_live_YOUR_SECRET_KEY

Keep your key secret

Never put `sk_live_…` in your HTML, JavaScript, or any client-side code. Only use it in your backend server environment.

### Rotating your key

Rotate from the console (Integration → Rotate, or Settings → API keys; a password account confirms its password, a Google or GitHub account a sign-in from the last 10 minutes). The new key works at once and the previous key keeps working for **24 hours**, so a deploy can switch over without a gap. If a key has leaked, *Revoke old key now* in Settings ends that grace immediately. During the grace both keys count toward the same allowances, and `/v1/usage` reports the same figures for either.

Every account has a personal `sk_test_…` key. It runs the live pipeline and records test events without sending live webhooks; its checks count toward your monthly allowance and it bypasses the IP allowlist. The public `sk_test_sandbox` key only answers deterministic test tokens, with no account or stored events. A live-key IP allowlist restricts `/v1/evaluate`, `/v1/lookup` and minting a token at `/oauth/token` (`400 unauthorized_client` from any other address), not `/v1/usage`.
