Sending your key
Send your API key as a bearer token on every request:401.
Creating a key
Create and revoke keys in the Cerium dashboard. Choose the scopes the key needs when you create it.Scopes
A scope limits what a key can do. A call that needs a scope the key does not hold returns403.
Keeping keys safe
Keep keys on your servers
Keep keys on your servers
Never ship a key in a mobile app, a browser bundle or a public repository. Anyone who holds the key can act as your company.
Load keys from the environment
Load keys from the environment
Read the key from an environment variable or a secrets manager. Do not write it into source code.
Rotate without downtime
Rotate without downtime
Create a new key, deploy it, confirm traffic has moved, then revoke the old one.
If a key leaks
If a key leaks
Revoke it in the dashboard straight away and create a replacement.