Operate

Teams and alerts

Share one credit balance across a team, with roles, and get an email, plus a signed webhook if you add one, when your balance runs low or a day's spend passes your cap.

Roles

Owner
Everything: funds the shared balance (and is the only role that sees it), billing and auto top-up, team key approvals, member budgets and rate limits, model access, and roles.
Admin
Invites members, approves and limits team keys, sets member budgets and rate limits, manages model access, and exports team spend — without seeing the owner's balance.
Developer
Makes personal keys, and team keys that spend the shared balance within their budget once the owner or an admin approves them. Sees only their own budget and spend.
Viewer
Read-only: the members list and the activity feed (the team's audit log).

How the shared balance works

The organization owner's credits are the team's shared balance: whatever the owner tops up (or auto top-up adds) is what the team spends. When a member creates an API key they choose Personal or the team. A team key made by the owner or an admin works immediately; one made by a developer starts pending and bills the developer's own credits until the owner or an admin approves it on the Teams page. From approval on, every request on that key is paid from the shared balance, and the Teams page shows the spend under the member who made it. The pool balance itself is the owner's money and only the owner sees it: admins see each member's budget and spend, and a developer sees just their own.

  • Member budgets: the owner or an admin can cap what each member may spend from the pool per calendar month (UTC). At the cap, that member's team keys get a 403 (member_budget_reached) while everyone else keeps working.
  • Key limits: approved team keys' spend and rate limits are managed on the Teams page by the owner or admins, not by the key's creator.
  • Member rate limits: the owner or an admin can also cap a member's requests per minute across all their team keys. Past it, requests get a 429 whose message names the seat, not the key.
  • Model access: the team can be limited to an allowlist of models. A team key calling anything else gets a 403 (model_not_allowed); personal keys are never restricted.
  • Activity feed: every team change — invites, roles, key approvals, budgets — is logged and visible to every member, Viewers included, on the Teams page's Activity view.
  • Spend export: owners and admins can download the team's usage as CSV, one row per request with the member who made it.
  • Leaving the team: removing a member — or demoting them to viewer — disables their team keys and stops them billing the pool within seconds.
  • BYOK stays personal: provider keys you bring are always your own, whichever balance a request bills.

Spend and balance alerts

Turn alerts on and save them on the Alerts page in the dashboard; until then nothing is sent. Each alert goes by email to your account address. If you add a webhook URL, it also goes there as JSON signed with HMAC-SHA256. A Slack or Discord incoming webhook shows it as a message; anything else, like PagerDuty or your own tools, reads the JSON.

  • Low balance: when your balance drops below the dollar amount you set (for example $5.00).
  • Daily spend: when spend over a rolling 24 hours reaches your cap.

We check every 5 minutes. A low balance alert is sent once, then again only after your balance has gone back above the threshold. A daily spend alert is sent at most once every 24 hours.

Team owners can tick “Also email my teams' admins” on the Alerts page: since the owner's balance is the team's shared pool, the same alert then goes to each admin too, marked as a copy. The webhook stays the owner's own.

Verify the signature

Every alert carries an X-Nicrron-Signature header: an HMAC-SHA256 of the raw body with your signing secret, shown under Signing secret on the Alerts page.

Alert request
POST https://your-domain.com/api/webhooks/nicrron
Content-Type: application/json
User-Agent: Nicrron-Alerts/1.0
X-Nicrron-Signature: sha256=d5a2f...
X-Nicrron-Event: alert.low_balance

{
  "id": "evt_low_balance_8f93a1c2_1792425600000",
  "event": "alert.low_balance",
  "timestamp": "2026-10-19T16:00:00.000Z",
  "user": {
    "id": "6f1c2a9e-…",
    "email": "lead@company.com"
  },
  "data": {
    "currentBalance": 4.25,
    "threshold": 10,
    "currency": "USD",
    "message": "Your Nicrron balance is $4.25, below the $10.00 alert you set."
  },
  "text": "Your Nicrron balance is $4.25, below the $10.00 alert you set.",
  "content": "Your Nicrron balance is $4.25, below the $10.00 alert you set."
}

Check it before trusting the body. In Node.js or Next.js:

TypeScript
import crypto from "crypto";

export async function POST(req: Request) {
  const rawBody = await req.text();
  const signature = req.headers.get("x-nicrron-signature");

  const expectedSignature = "sha256=" + crypto
    .createHmac("sha256", process.env.NICRRON_WEBHOOK_SECRET!)
    .update(rawBody)
    .digest("hex");

  if (signature !== expectedSignature) {
    return new Response("Invalid signature", { status: 401 });
  }

  // Handle alert event...
  return new Response("OK");
}