Install a Norbix SDK
Install a Norbix SDK, get a key and set your credentials once.
Norbix has one SDK per language. They all work the same way: install the package, set your key and project id once as environment variables, and create a client with no arguments — the client reads the environment for you.
Every command and every line of code on this page was run on 2026-10-06 against a Norbix installation, with the package version shown in the table.
Pick your language
Kotlin / Java
ai.norbix:norbix-kotlin (Maven Central)
1.9.0
implementation("ai.norbix:norbix-kotlin:1.9.0")
React + Redux Toolkit
@norbix.ai/react-redux (npm)
1.8.2
npm install @norbix.ai/react-redux @norbix.ai/ts @reduxjs/toolkit react-redux react
The source code of each SDK is on GitHub: sdk-ts · sdk-python · sdk-net · sdk-go · sdk-dart · sdk-swift · sdk-kotlin · react-redux.
Two parts of the API
Norbix answers on two hosts. Most SDKs give you a client for each:
Api
https://api.norbix.ai
your app's data: records, files, users, sign-in
Hub
https://hub.norbix.ai
configuration: schemas, integrations, templates, campaigns, account
The quick starts use the Api part: they write and read records.
Get a key
Code proves who it is with an AI service user key (nbsu_…). An AI service user belongs to your account and gets roles — the same roles a person gets: a project role (for example Data Editor, which reads and writes records) or an account role. The key can do what its roles allow, and nothing more. The key is shown once; Norbix keeps only a hash of it.
Run these three calls once (on your own installation, use your Hub address instead of https://hub.norbix.ai):
Step 2 answers with the project's roles (Administrator, Viewer, Data Editor, Developer, …), each with a viewId like pr_6JMU7afJi9tZQwfo6de4qq_nr_3ItSzVryuoXel0XG1hOYkx. Step 3 answers:
Copy key now. Keep it in a secret store or an environment variable — never in your app's source code and never in a public web page. Pick the role that fits: Viewer reads but cannot write (an insert fails with Caller is missing required permission 'database:create …'); Data Editor reads and writes records. More about keys and environments: Keys and environments.
Set your credentials
Set these environment variables once — in your shell, your hosting settings, or a .env file that your app loads. The SDKs do not read .env files themselves.
NORBIX_API_KEY
your AI service user key (nbsu_…)
always (or NORBIX_BEARER_TOKEN)
NORBIX_PROJECT_ID
the project the calls run against (pr_…), shown in Cloud → Project → Settings → Brand
always (Dart does not read it — see below)
NORBIX_BEARER_TOKEN
a signed-in user's token, used instead of a key
when the code acts as one user
NORBIX_ENV
the project environment; PROD when not set
to work in TEST or another environment
NORBIX_API_URL · NORBIX_HUB_URL
your own Api and Hub addresses, for example https://api.example.com
only when you run Norbix yourself (self-hosted)
Create the client
With the variables set, the client needs no arguments. These are the first lines of each quick start:
React Redux builds on the JavaScript / TypeScript client. A web page has no environment variables, so there you pass the values in code — see React Redux.
Pass values in code
You do not have to use environment variables. Every client also takes the values in code — useful when one app talks to several projects. Anything you leave out still comes from the environment variables above.
Next steps
Follow the quick start of your language: it writes a record, reads the records back and handles an error, with the output you should see.
The quick starts use a
bookscollection. Create it in Cloud first, as in step 3 of the Quickstart.Every operation of every module, with a tab per language, is in the SDK reference — for example Insert Record.
Last updated