Nimbuz API Docs
Guides

Authentication

The Nimbuz API uses JWT bearer tokens. Log in with the same credentials you use for the portal, then send the token on every request:

Code
Authorization: Bearer <token>
  1. Log in

    Call POST /user/v1/user/login. Individual accounts use orgName: "nimbuz". Business accounts use their organization name, which is the sub-domain they sign in on.

    curl -s https://api.nimbuz.tech/user/v1/user/login \ -H 'Content-Type: application/json' \ -d '{"username":"jane@example.com","password":"your-password","orgName":"nimbuz"}'
    JSONResponse
    { "status": "success", "message": "Token fetched successfully", "data": { "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." } }
  2. Send the token

    export NIMBUZ_TOKEN=eyJhbGciOi... curl -s https://api.nimbuz.tech/project/v1/projects \ -H "Authorization: Bearer $NIMBUZ_TOKEN"
  3. Re-login when it expires

    There is no refresh token. When any call returns 401, log in again and retry the request.

Try it in the playground

Every endpoint in the API Reference has a Test button. Paste your token into the Bearer auth field once, and the playground sends it on every request.

Two-factor authentication

If 2FA is enabled, login returns a challenge instead of a token:

JSONCode
{ "status": "success", "data": { "mfaRequired": true, "challengeId": "6f1c1e0a-3b7e-4c7f-9a51-2d6f0f6d2c11", "methods": ["totp", "email"], "expiresIn": 300 } }

Before expiresIn seconds have passed, send the 6-digit code from your authenticator app:

TerminalCode
curl -s https://api.nimbuz.tech/user/v1/user/login/2fa/verify \ -H 'Content-Type: application/json' \ -d '{"challengeId":"6f1c1e0a-3b7e-4c7f-9a51-2d6f0f6d2c11","code":"492817"}'

The response contains data.token, the same as a normal login.

CI pipelines

Use a dedicated Nimbuz user without 2FA that is a member of only the projects the pipeline deploys to. Keep its credentials in your CI secret store.

Your account ID

Billing endpoints need an account_id. It's stored in the token, in the properties.nimbuzAccountId claim:

echo $NIMBUZ_TOKEN | cut -d. -f2 | base64 -d 2>/dev/null | jq -r '.properties.nimbuzAccountId'

Login errors

StatusCodeWhat to do
400EMAIL_NOT_VERIFIEDVerify your e-mail from the sign-up message.
400INVALID_ORGANIZATIONCheck orgName.
403ACCOUNT_SUSPENDED / ACCOUNT_INACTIVEContact support.
429MFA_TOO_MANY_ATTEMPTSStart a new login.