$ unitpost login
✓ Signed in to profile default.
session refreshes automatically
$ unitpost email send --from hi@acme.com \
--to ada@example.com --subject "Welcome" \
--html-file ./welcome.html
id 0192f4c1-7b2e-7c41-9a6d-3f8e2b1c5d70
status queued
scheduled_at —
$ ▍Commands
One command per API operation
256 commands, generated from the OpenAPI spec. A new endpoint becomes a command with no CLI code change.
- send
- batch
- get
- list
- update
- stats
- +11
email campaigns
- create
- validate
- send
- pause
- resume
- cancel
- +13
email templates
- create
- get
- list
- update
- delete
- +7
email domains
- create
- verify
- get
- list
- update
- delete
- +1
contacts
- create
- get
- list
- update
- delete
- imports
- +7
segments
- create
- get
- list
- update
- delete
- members
- +3
sms
- send
- get
- list
- brands
- numbers
- consent
- +26
webhooks
- create
- test
- get
- list
- update
- delete
- +4
Plus api-keys, brand-kits, branding, contact-fields, files, jobs, library-images, logs, org, spend-caps, suppressions, usage, workspace, and login, doctor, whoami, completion.
Examples
Reads like the API, typed by a human
The flags are the request fields. Piped, the output is JSON.
Fields, kebab-cased. A body or an attachment can come from a file.
unitpost email send \
--from "Acme <hi@acme.com>" \
--to ada@example.com \
--subject "Welcome aboard" \
--html-file ./welcome.html \
--attach ./guide.pdfAgents
Driven by people. Built for agents.
The skill teaches the mapping. JSON and exit codes do the rest.
Skill-taught
email_send becomes unitpost email send. Same scopes.
Parseable
One JSON document on stdout. Stable 0 / 1 / 2 exits.
Preview first
--dry-run prints the request. Nothing sends.
Email Ada her March invoice. Check it before it goes.
Agent, using the unitpost skill
unitpost email send … --var month March
exit 2--var expects key=value, got "month".
unitpost email send … --var month=March --dry-run
exit 0"dry_run": true, "path": "/email"
unitpost email send … --var month=March
exit 0"status": "queued"
Sent. One flag needed fixing and the dry run looked right. Ada's invoice is queued.
Questions
Common questions
Do I need to install anything to use the CLI?
How does login work?
Can AI agents drive the CLI?
Can the CLI manage API keys?
How do I know the commands match the API?
Meet your new favorite way to send
Install it, sign in once, and run the whole API from your shell.