API keys
Nuvion authenticates requests using API keys passed as Bearer tokens in theAuthorization header.
| Key prefix | Environment | Base URL |
|---|---|---|
nv_test_ | Sandbox | https://api.nuvion.dev |
nv_live_ | Production | https://api.nuvion.co |
nv_test_ keys during development and testing.
Getting your API keys
API keys are environment-specific. Sandbox and production keys are managed separately.Sandbox keys
Create and manage sandbox keys from the Nuvion sandbox dashboard.
Production keys
Create and manage production keys from the Nuvion production dashboard.
Key scopes
API keys inherit the permissions of the user who created them. A key can only perform actions that its creator is authorized to perform within your organization. For example:- A key created by an admin can access all resources.
- A key created by a user with read-only access can only perform
GETrequests.
Making authenticated requests
Pass your API key in theAuthorization header on every request.
401 error:
403 error:
Keeping keys secure
- Store keys in environment variables or a secrets manager — never hardcode them.
- Rotate keys immediately if you suspect they have been compromised. You can do this from your dashboard without downtime by creating a new key before deleting the old one.
- Delete keys that are no longer in use.
