A live key cannot authenticate against a test environment, and a test key cannot authenticate against live data. A prefix/environment mismatch returns
401.
Recommended setup
For most teams:- One project for development and staging, using test keys
- One project for production, using live keys
- Separate customer records in each project
Create keys
Create keys in the dashboard under API keys. A key secret is shown once:Rotation
Create a replacement key, deploy it, confirm traffic uses it, then revoke the old key. Revocation is immediate for future requests. Do not overwrite a secret in source control or a client bundle.Project disable switch
A disabled project returns403 project_disabled from the runtime. The setting is reversible and is useful as an operational stop switch. Build a clear customer-facing fallback for this case.