CLI
Send email from your terminal
The sendio command line sends mail, adds domains, creates agent inboxes and forwards webhooks to localhost. Add --json for output scripts and agents can parse.
zshExample session$ curl -fsSL https://app.send.io/install.sh | sh
$ sendio login
✓ signed in to your team
$ sendio inbox create --name signup-bot --org acme
✓ signup-bot@acme.sendioinbox.com
$ sendio emails send --to delivered@send.io \
--subject "Welcome" --text "Hi" --wait delivered
deliveredBuilt for people. Built for agents.
Run it yourself with readable output. When an agent or a CI job runs it, ask for JSON.
Commands print JSON automatically when stdout is not a terminal.
$ sendio inbox create
Name (the part before @): signup-bot
Org label: acme
✓ signup-bot@acme.sendioinbox.com
Mail is held 72 h until fetched · receive onlyExit codes: 0 ok, 1 API error, 2 usage, 3 auth, 4 network, 5 not found, 6 rate limited, 7 timeout.
The whole API, in the shell.
Each area of the API has its own command group. Anything without a shortcut can still be called with sendio api.
Send
Send and track
Send inline or from a template, batch, schedule, cancel and read each event.
sendio emails send --template welcome@2Domains
DNS, added and checked
Add a sending domain, publish the records, then watch until it is verified.
sendio domains verify dom_example --watchWebhooks
Events on localhost
Forward signed events to your dev server, or fire a test event without sending mail.
sendio listen --forward-to localhost:3000Keys
Keys and audiences
Rotate API keys and manage contacts, segments and broadcasts.
sendio api-keys create --name ci-deployPassthrough
Any endpoint
Call any endpoint with the same auth, typed fields and cursor pagination.
sendio api GET /domains --paginateProfiles
Several accounts
Store a key per profile, switch between them and check the one in use.
sendio --profile staging whoami
Mail from the deploy job.
Set the key as an environment variable, send with an idempotency key so retries do not double-send, and wait for the outcome.
--dry-run prints the request instead of sending it. delivered@send.io is a test address.
.github/workflows/deploy.ymlExampleenv:
SENDIO_API_KEY: ${{ secrets.SENDIO_API_KEY }}
steps:
- run: |
sendio emails send \
--from "Acme <deploys@yourdomain.com>" \
--to delivered@send.io \
--subject "Deploy complete" \
--text "Version ${{ github.sha }} deployed." \
--idempotency-key auto \
--wait deliveredInstall it in one line.
curl -fsSL https://app.send.io/install.sh | sh on macOS and Linux. Windows has a PowerShell installer.
