Three steps to your first call: a key, a sender on your own domain, and your first email — to yourself. Your first email needs no domain. Leave channel_id out and it goes through the Arowana test sender to your own address — free. So you can make the first call right after step 1, and do step 2 before you send to anyone else. In the app, Settings → API & webhooks shows the same three steps with where you stand, and a ready command with your base URL, your own address and — once your sender is ready — your channel ID filled in. This page walks the same steps, in the same order, with the same command.
The first 50 emails are free — through the API too. Every organisation starts with 50 free emails; while they last, a send holds nothing and costs nothing (billing.hold_amount: 0). See Free starter units.

1. Create a key

In the app, open Settings → API & webhooks and choose Create key with the ready-made set Send messages (messages:send, messages:read, campaigns:read). People with the role Manage create keys. The key is shown once. Keep it in your integration’s secret settings — and for this first call in an environment variable, so it never ends up in a command you share:
Done when the app shows Key ready: there is a key that may send — not revoked and not past its end date. A key with only other permissions (for example Sync contacts) doesn’t count for this step.

2. Get your sender ready

Optional for the first call. Without a sender, your first email goes to yourself through the Arowana test sender (step 3). To send to anyone else, you need this step.
Through the API, email to others goes out only from your own verified domain. In the app, open Channels → Add channel → Email, enter your sender address and add the DNS records it shows (SPF, DKIM, DMARC) — or, from the same screen, send them to whoever looks after your domain (Send to my webmaster). Done when the app shows Sender ready: the email channel is approved and its sender address is on the verified domain. The command in the app then carries the channel’s ID (ch_…). You also find it at the end of the channel’s Settings (Channel ID for the API), or through the API:
Until the sender is ready, a send with its channel_id answers 403 forbidden with channel_status — and a hint that says what is missing.

3. Make the first call

The same command as in the app. Put your own address in — the address you sign in to Arowana with (the app fills it in for you). It has no channel_id: before your sender is ready, that is the test to yourself.
  • to is you. Without channel_id, the API sends only to the Arowana account address of the person who created the key — any other address is refused with 403 test_recipient_not_own_address (“verify your domain first”). Use a key you created yourself.
  • The Arowana test sender sends it: from “Your workspace via Arowana”, with [Test] in front of the subject and one line under it saying it went only to you. It is free and doesn’t use your free emails. Limits: 10 tests an hour per person, 30 a day per workspace — together with the tests you send from the app.
  • MESSAGE is a transactional email: it needs no marketing consent.
  • Idempotency-Key names the operation — “my first email”. Sent again with the same key and body, the request answers with the first result and never sends twice; a new email needs a new key. For real sends, use one key per logical operation, such as booking-confirmation-BK-10427 (Conventions → Idempotency).
  • Your base URL is the one the app shows next to the command (https://api.arowana.app/v1 here).
A test to yourself answers status: sent and test: true. It is not a message of the workspace: it has no message_id, no webhook events, and doesn’t appear in GET /v1/messages (abridged):
Check your inbox.

Once your sender is ready

Add your channel’s ID — the app’s command then carries it — and send to anyone, like this booking confirmation’s recipient:
A real send answers status: queued with what the message costs — 0 while the free emails last (abridged):
The full answer also carries billing.tier — see Send response. Like any recipient, the address becomes a contact of the workspace. With a sender ready, a send without channel_id is refused (400 validation_error on channel_id): the test to yourself is for before that. Done when the app shows First call made: the first call through the API that went out — a test to yourself, or a send that was accepted (not refused, not revoked).

If it doesn’t work

Every error answer has a stable error code and a message; where it helps, it also carries a hint (what to do, in one sentence) and a docs_url. Branch on error — hint is for people, like message. A 4xx answer changed nothing: fix the cause and retry with the same Idempotency-Key. All codes: Error codes.

Next