API keys
Nuvion authenticates requests using API keys passed as Bearer tokens in theAuthorization header.
No real funds move in sandbox. Always use sandbox keys during development and testing.
Getting your API keys
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
Each API key is assigned an access role when it’s created. The role determines which parts of the API the key can use.Only
Owner keys can access Capital: Admin, Operations, and Developer keys get 403 on products, product orders, the portfolio, and capital transactions. Only Owner and Developer keys can read or manage webhooks and send test events. Developer keys also can’t read account details.Access by role
A request from a role that can’t use an endpoint returns403 error_auth_permission_denied before any validation runs. The table shows which roles can call each group of endpoints.
To create an API key in the dashboard, the Create Key form loads the available access groups. A
Developer or Operations user gets 403 error_auth_permission_denied on that request, so the Access list doesn’t load and the form can’t be completed. Ask an Owner to create the key, or to change your role.
API key IP allowlisting
Nuvion lets you restrict an API key to a list of allowed IP addresses, from the dashboard, either when creating the key or later on an existing one. A stolen key then only works from your own servers. Leaving the list empty keeps the key unrestricted, which is the default.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.

