Reference
Team and roles
An account can have as many people on it as you like, each with a role that decides what they may do. Roles are about people, not about keys — and the difference matters more than it looks, so it is worth two minutes.
The four roles
| Role | Can do | Cannot do |
|---|---|---|
owner | Everything, including billing and removing other people. | Be removed, if they are the last one. An account with no owner has nobody who can administer it. |
admin | Invite, change roles, remove people, manage domains and keys. | Promote anybody to owner, or remove an owner. |
member | Send mail, manage domains, read the logs — the everyday work. | Touch billing, membership or credentials. |
viewer | Read messages, domains and statistics. | Send anything, or change anything. |
Some things an API key can never do
Inviting somebody, changing a role, removing a colleague, minting a key, and everything to do with billing require a signed-in person. There is no scope that grants them, and adding one to a key will not help.
That is deliberate. These are the actions where a leaked server-side credential stops being an incident and becomes a takeover: a key that could mint keys and change membership would let anybody who found it in a log lock you out of your own account. A key can send your mail; it cannot decide who else may.
Listing the team
/v1/teamteam:readGET /v1/team
# Needs a key with team:read, or a signed-in session.
{
"data": [
{ "id": "usr_AZLm…", "email": "[email protected]",
"role": "owner", "status": "active" },
{ "id": "usr_BQpk…", "email": "[email protected]",
"role": "member", "status": "invited" }
]
}status is active for somebody who has accepted, and invited for somebody who has been sent an invitation and has not used it yet.
Inviting somebody
/v1/team/invitesdashboard session only| Field | Type | Notes |
|---|---|---|
| string required | Where the invitation is sent. | |
| role | string required | owner, admin, member or viewer. There is no default. |
POST /v1/team/invites
{ "email": "[email protected]", "role": "member" }
# There is no default role. Choosing one for you is how somebody
# ends up with more access than anybody decided to give them.They receive an email with a single-use link. Following it sets their password and verifies the address — it does not sign them in, so they choose a password and then log in with it like anybody else.
The link is spent once used, and expires. If somebody comes back to a dead link there is no self-serve resend, by design: an invitation that can be replayed is a way in for whoever else has seen the mailbox. Ask an owner or admin to invite them again.
Changing a role, and removing somebody
/v1/team/:iddashboard session only/v1/team/:iddashboard session onlyChanging somebody’s role signs them out everywhere. Their permissions just changed, and a session minted under the old ones would keep working until it expired otherwise.
Removing the last owner is refused. So is promoting somebody to owner unless you are one.
Sub-accounts
If you send mail on behalf of your own clients, a sub-account gives each of them a real, separate Posthaste account — their own domains, their own API keys, and above all their own suppression list — while everything stays on your plan and your one invoice.
They are genuinely separate
A sub-account is not a label or a folder. It is an ordinary account with its own account id, and every isolation rule in Posthaste applies to it exactly as it would to a stranger’s account. That means:
| Between sub-accounts | What happens |
|---|---|
| One client’s key reading another’s messages | Refused. Not filtered — invisible. |
| An unsubscribe on one client | Applies to that client only. It can never silence another client’s password reset, which is usually the whole reason to use these. |
| Domains, API keys, webhooks, statistics | Separate per sub-account. |
| Sending reputation | Each warms up on its own ladder, so a new client cannot inherit volume it has not earned. |
Paying for an account does not let you read its mail. Your own key cannot fetch a sub-account’s messages, and this is deliberate rather than an oversight: your clients’ recipients are real people, and the billing relationship is not their consent.
What you can see is what a payer needs — the name, the status, and how much it has sent this month. To work inside a sub-account, sign in to it.
One bill, one allowance
A sub-account inherits your plan and cannot hold a subscription of its own. Change your plan and every sub-account moves with it.
The monthly allowance is shared across the whole family. If you are on a plan with 300,000 emails a month, that is 300,000 between you and all of your sub-accounts together — not 300,000 each. Sub-accounts are an isolation feature, not a volume discount, and the price you pay tracks the mail you actually send.
If your subscription lapses, the downgrade applies to the family. If your account is suspended, its sub-accounts are suspended with it.
Creating one
/v1/sub-accountsdashboard session only| Field | Type | Notes |
|---|---|---|
| name | string required | What you call this client. Shown on your own list, never to their recipients. |
POST /v1/sub-accounts
{ "name": "Acme Ltd" }
{
"id": "acct_AZLm…",
"name": "Acme Ltd",
"plan": "scale", // inherited from you, not chosen
"status": "active"
}Creating a sub-account requires a signed-in owner or admin — an API key cannot do it, however it is scoped. It adds to what you are paying for, and that belongs with the other actions a person takes rather than a credential sitting on a server.
How many you may have depends on your plan: Free none, Starter none, Growth 5, Scale 25, Enterprise unlimited. Exceeding it returns 403 with "type": "sub_account_limit_reached", carrying the limit and how many you have. A sub-account cannot itself have sub-accounts.
Seeing what you pay for
/v1/sub-accountsaccount:read/v1/sub-accounts/:idaccount:readGET /v1/sub-accounts
{
"data": [
{ "id": "acct_AZLm…", "name": "Acme Ltd",
"status": "active", "sentThisMonth": 12480 }
]
}sentThisMonth is what that client has sent so far this month, which is what you need to see which of them is consuming the allowance.
NextAuthentication →How to get an API key, what the scopes allow, and why there is no test environment.