Install a Norbix SDK
Install a Norbix SDK and set your credentials once.
Norbix ships one SDK per language. Every SDK works the same way: you install the package, set your credentials once as environment variables, and then create a client with no arguments โ the client reads the environment for you.
That is why the code examples across these docs use new Norbix(), NorbixHub(), and the like with empty parentheses. You do not paste your API key into every call.
Pick your language
Set your credentials
Set these environment variables once (for example in a .env file or your shell). The client picks them up automatically:
NORBIX_API_KEY
Your project API key (server-to-server)
All server-side calls
NORBIX_PROJECT_ID
The project the call runs against
All calls
NORBIX_ACCOUNT_ID
Your account
Account-scoped Hub calls only
NORBIX_BEARER_TOKEN
A logged-in user's token
Calls made as an end user
NORBIX_REGION
Your data region (optional)
Non-default regions
With those in place, the client needs nothing:
Prefer to pass values in code?
You do not have to use environment variables. Every client also accepts the same values in its constructor โ useful for multi-project apps or tests:
Anything you do not set in code falls back to the environment variables above.
Last updated