Organizations, workspaces & keys
Four concepts carry everything about who spends what on Heimdallm. From the top down:
| Concept | What it holds |
|---|---|
| User | You — a Google, GitHub or wallet sign-in. |
| Account | The money: the credit balance, ledger and account-wide spend limit. Personal or organization. |
| Workspace | A compartment inside an account: its own API keys, its own spend limit, optionally its own members. |
| API key | Credentials for the API. Lives in a workspace; optionally assigned to a person. |
A request's cost settles against the account behind the key's workspace, is capped by the three spend limits (key, workspace, account), and is attributed to the key — so a dashboard can answer "which integration spent this" without separate accounts per project. All of the below is managed from your account page.
Personal accounts
Signing in for the first time creates your personal account with one workspace, named Default.
For an individual that is the whole model: deposit into the account, create keys in the default
workspace, go. More workspaces are useful the moment you want separation — one per project or per
environment, each with its own keys and its own spend limit, all drawing on the same balance.
Organizations
An organization is the shared version of the same shape: its own account (balance, ledger, account-wide limit) and its own workspaces, with members on top.
- Members join by invitation. An admin adds someone by the email of an existing, verified
Heimdallm account and chooses a role, which sends an invitation rather than a membership: the
invited person holds no role and sees nothing of the organization until they accept. They find the
invitation on their own Organizations tab, where they can accept or
decline it; accepting makes them a member with the role offered. Admins see open invitations in
the member list marked Pending and can revoke one. A pending row shows the address invited and
nothing else about the person: their name joins the list when they accept. An invitation lapses 14 days after it was
sent, and inviting the same person again replaces it with a new role and a new 14 days. Sending,
accepting, declining and revoking each write an audit-log entry. Sends are limited to ten a minute
from one address, counted together with provider invitations; a send past that answers
429and says when to try again. Each member isadminormember; an organization always keeps at least one admin (the last admin can neither demote themself nor leave). - Leaving is open to every member: anyone can remove themself from the member list with Leave, the last admin excepted. Removing anyone else takes the admin role. Leaving or being removed ends the person's standing in every workspace of the organization, and each removal writes an audit-log entry recording how many keys it disabled.
- Admins manage everything: members, workspaces, all keys, spend limits — and only admins (or a personal account's owner) see money: the balance, the ledger and account activity.
- Members work inside the workspaces they belong to: they can create keys there, and they see and manage the keys they created or that are assigned to them — not the whole account, and not the money. The organization page lists a member only the workspaces they belong to or hold an assigned key in, with those workspaces' names, spend limits and routing preferences; the rest of the organization's workspaces are not named to them.
An organization's account is funded directly by any of its admins on the Credits tab — by card, or from a wallet bound to the organization, which credits it for every transfer that wallet sends. See Deposits.
Its traffic reads the same way its money does. The organization page's Activity tab carries the 30-day rollup and, beneath it, the request log — every request the organization made, with the same filters, and each row opening onto the request itself. An organization admin sees the same view from the account switcher on their account page. A request belongs to the account that paid for it, so which organization admins may open one is the same question as who may see the organization's balance: admins, and nobody else.
Organization workspaces can carry an explicit member list, so a contractor can hold keys in one project's workspace without existing anywhere else in the organization.
What a key stores stays in its workspace. Stored files,
batches and their results, render jobs and
request records are read by the keys of the workspace they were
made from, on a personal account and an organization alike: to a key in another workspace of the same
account they answer 404, exactly as they do to another account. The balance, the file quota and the
bound on running batches are the account's and are shared.
API keys
Keys are minted in a workspace and shown once — only a SHA-256 hash is stored, and the hash doubles as the key's identifier in the dashboard. Everything about a key is per key:
| Property | Meaning |
|---|---|
| Name | A label (production, ci, alice-dev). |
| Spend limit | A USD ceiling with an optional daily / weekly / monthly UTC reset window — lifetime when no window is set. Breaching it stops this key with a 402 and touches nothing else. |
| Expiry | An optional timestamp after which the key stops authenticating. |
| Assignee | Optionally an organization member, so usage reads as a person's, and the key follows them in visibility rules. Removing the assignee disables the key and keeps the assignment. |
| Revocation | Disables the key immediately. The row stays, so its ledger history keeps its attribution. Revocation is permanent — mint a new key rather than expecting one back. |
The key authenticates; the workspace locates it; the account pays. Inspect the key you are
calling with at GET /key. A key issued by a current admin, or one on a
personal account, also reads its account's balance at GET /credits; a
member's key spends the shared pool and does not read it.
A key created in an organization workspace holds only what its creator holds. When the creator
leaves, is removed or has their account suspended or deleted, every key they created there stops
authenticating, within a few seconds and with a 401, and an assignment does not keep it alive. The
same holds for one workspace: a member reaches a workspace through its member list, so a key a member
created there stops authenticating when they are taken off that list, starts again if they are put
back, and cannot be edited or revoked by them in between. An admin reaches every workspace by role, so
an admin's key needs no place on a member list, and stops if the admin is made a member of the
organization without one. The creator cannot be changed, so replace a key that is still in use before its creator goes. A key minted
through a management key has no person as its creator and is the way to hold a
credential that outlives anyone's membership.
A key assigned to a member is disabled when that member leaves or is removed, in the same step as the
removal, and answers 401 as any disabled key does. The assignment stays on the key, because it is
what attributes the key's past usage to that person. An admin re-enables the key, or assigns it to
someone still in the organization, by editing it on the API keys tab; a key whose
creator has gone stays stopped whatever its assignment.
Which account does a key bill?
The account that owns the key's workspace — a personal-workspace key bills you, an organization-workspace key bills the organization. One user can carry both: your memberships and your personal account coexist, and the workspace a key lives in decides where its spend lands.
Practical shapes
- Solo — default workspace, one key per integration, a monthly limit on each.
- A team — one organization; workspaces
production,staging,dev; the production workspace capped and its keys unassigned service keys; dev keys assigned per member. - An agency — one workspace per client with an explicit member list, so each contractor sees exactly one client's keys and nothing else.