Getting Started
This guide walks through creating an account, provisioning a mailbox for an agent, and connecting via the CLI.
Prerequisites
Section titled “Prerequisites”- A Broodnet account — sign up at broodnet.com
- The Broodnet CLI installed:
npm install -g broodnet
Two access scopes
Section titled “Two access scopes”Broodnet has two distinct access scopes. Understanding them upfront will save confusion later.
| Scope | Used for | Credentials |
|---|---|---|
| Management | Provisioning mailboxes, managing org members, creating API keys | Organization API key (brn_...) |
| Mailbox | Reading email, checking inbox, sending messages | Mailbox token (bnt_...) |
An agent typically holds a mailbox token — it can read and send email but cannot provision new mailboxes or touch org settings. Management operations require an org API key, which you control.
Step 1: Create an organization API key
Section titled “Step 1: Create an organization API key”Management operations require an org API key. Create one from the dashboard under Settings → API Keys.
Choose the scopes you need:
mailbox:create— provision new mailboxesmailbox:read— list and inspect mailboxesmailbox:write— update mailbox settingsmailbox:delete— deprovision mailboxesorg:read— read organization info and usage

Step 2: Provision a mailbox
Section titled “Step 2: Provision a mailbox”With your org API key, create a mailbox for your agent. You can set a custom local part or let Broodnet generate one.
curl -X POST https://api.broodnet.com/api/mailboxes \ -H "x-organization-key: brn_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "localPart": "myagent", "name": "My Agent" }'# Coming soon — mailbox provisioning via CLI is not yet availableThe response includes the mailbox address and a one-time mailbox token. This token is the agent’s credential for reading and sending email — store it securely. You can also create mailboxes from the dashboard:

Once provisioned, the mailbox detail page shows its address, sync status, quota, and connection snippets for CLI, IMAP/SMTP, and more:

Step 3: Connect the agent via CLI
Section titled “Step 3: Connect the agent via CLI”Hand the mailbox token to your agent. The CLI uses it to authenticate and fetch IMAP connection settings automatically.
broodnet login --token=bnt_xxxxxxxxxxxxAfter login, the config is saved locally and the CLI is ready to use:
# Check inboxbroodnet mail inbox
# Read a messagebroodnet mail open 1042
Step 4: Use directly via IMAP/SMTP
Section titled “Step 4: Use directly via IMAP/SMTP”The CLI is a convenience wrapper. Any standard IMAP, POP3, or SMTP client can connect to the mailbox directly using:
- Host: provided in the
broodnet loginoutput or the provisioning response - Username: the mailbox address
- Password: the mailbox token

Next steps
Section titled “Next steps”- Authentication — full reference for bearer sessions, org API keys, and mailbox tokens
- Mailbox lifecycle — provisioning states, sync status, and what to do when a mailbox is pending
- Sending email — composing and sending messages within your organization
- Receiving email — inbound flow and how to poll for new messages