https://api.opentype.dev actually does. Where a behavior needs action on your side, such as rotating a key that leaked, the page says so and shows the call.
Pages in this tab
Authentication
The bearer header, the two kinds of credential, and every 401, 403 and 503 an auth check can return.
API key security
Key format, what is stored, the secret shown once, revocation, rotation, and what to do after a leak.
Scopes and roles
The nine scopes, the role-to-scope table, the scope ceiling on new keys, and service-account keys.
Data handling
What reaches the model, what a run keeps and returns, and how credentials are kept out of logs.
What OpenType does, and what you do
Four rules that cover most of it
- Keep keys on the server. A key in browser or mobile code can be read by anyone who loads it.
- One key per process and environment. Name it after what holds it, so a leak or a
last_used_atcheck points to one place. - Least privilege. A process that only sends runs needs
runs_write, plusruns_readif it reads runs back. It does not needkeys_writeorbilling_write. - Plan for rotation. A secret you cannot replace in minutes is a secret you will leave in place after a leak. See Key rotation.
Related
- Authentication - start here if a request returns 401 or 403.
- Console API keys - create and revoke keys without writing code.
- Key rotation - replace a secret with or without an overlap.
- Scopes reference - every route and the scope it demands.
- Production checklist - the security items to confirm before launch.