Skip to content
NimbusNexus

Set up the REST API

Every NimbusNexus product is a REST API: JSON over HTTPS, with your API key in a header. This page takes you from no key to a first successful call. Pick a language at the top of the page and the examples follow it. REST means curl; TypeScript, Python and Go use each language's usual HTTP client, with no SDK needed.

1 · Get an API key

Apps: Webhooks, Inboxes, QR Codes, Request Bins and Transforms. Open API keys in your account console and create a key for the product you want to call. Each key belongs to one product. Choose its scope there: admin, read, or for Webhooks also publish. Copy the key when it appears, because it is shown only once. An app key is a JWT, so it starts with eyJ.

Infrastructure: VMs, storage, networking and DNS. Create the key in the dashboard under Security → API tokens, with the Admin scope, and copy the value labelled API key (Quickstart). It is scoped to one project. Authentication covers roles, access rules and replacing a key.

Keep the key out of your source code. Export it in your shell or keep it in your secret store:

Shell
export WEBHOOKS_API_KEY="<your-api-key>"

2 · Send it on every request

On the apps, send the key as a bearer token. They also accept it as X-API-Key: <key>.

HTTP
Authorization: Bearer <your-api-key>

On the infrastructure API, send the key in X-API-Key. A bearer token there is a signed-in session, not an API key.

HTTP
X-API-Key: <your-api-key>

Each product has its own base URL:

ProductBase URL
Webhookshttps://webhooks.nimbusnexus.net/v1
Inboxeshttps://inboxes.nimbusnexus.net/v1
QR Codeshttps://qr.nimbusnexus.net/v1
Request Binshttps://bins.nimbusnexus.net/v1
Transformshttps://transforms.nimbusnexus.net/v1
Infrastructurehttps://api.nimbusnexus.net/api/v1

3 · Make a first call

GET /v1/auth/me on Webhooks returns the key you sent: its scope and the workspace it belongs to. It reads nothing else, so any valid key can call it.

curl https://webhooks.nimbusnexus.net/v1/auth/me \
  -H "Authorization: Bearer $WEBHOOKS_API_KEY"

The response names your workspace:

JSON
{
  "scope": "admin",
  "workspace_id": "<workspace-id>"
}

The other fields say what kind of credential this is. For an API key, email and created_at are null.

On the infrastructure API, GET /api/v1/account/get_session_auth_data does the same job: any valid key can call it, whatever its access rules. Quickstart goes on from there to your first VM.

Shell
export NIMBUS_KEY="<your-api-key>"

curl https://api.nimbusnexus.net/api/v1/account/get_session_auth_data \
  -H "X-API-Key: $NIMBUS_KEY"

4 · Read errors

On the apps, a failed request answers with a 4xx or 5xx status and one error shape:

JSON
{
  "error": {
    "code": "unauthorized",
    "message": "…",
    "details": { "reason": "missing" },
    "request_id": "…"
  }
}

Branch on code, not on the status or the message. unauthorized means no key arrived or the key was revoked. invalid_credential means the key is not valid: mint a new one, because retrying will not help. forbidden means the key is valid but cannot do this: its scope or role is missing, or the product is not enabled for your workspace. Authentication and Errors list every code. Quote the request_id when you contact support.

The infrastructure API answers differently, with success: false and a message, and no codes: branch on the status (Conventions).

What's next