Email

The hanzo email commands.

Also for this capability: API · CLI · MCP · SDKs

API reference →

hanzo email list

Every command takes --json for the raw response and --help for its own flags. Sign in once with hanzo auth login; the commands below use that session, and the org they act in is the one it carries.

CommandWhat it does
hanzo email createSends commercial email from the org through SES or SendGrid: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058), and every http(s) link tagged with utm_source=email, utm_medium=<provider>, utm_campaign=<campaign>, utm_content=link<n> and from=<message id>, each only where the link does not carry it already.
hanzo email get <id>Reads one message of the org's ledger, sent through this API or told of by its provider, with what became of it.
hanzo email listReads a page of the org's ledger, newest first: every message sent through POST /v1/email, and every message SES or SendGrid told of by its events, sent from anywhere on the org's account.
hanzo email providerSets the provider the org's mail leaves by when a send pins none: ses or sendgrid.
hanzo email statsCounts the org's mail over a range: sent, delivered, opened, clicked, bounced, complained and unsubscribed, each a count of messages, in all, by provider, by campaign and by day or hour (UTC).
hanzo email verifyEvaluates an email address using explicitly selected, composable checks.

Sendgrid

CommandWhat it does
hanzo email sendgrid statusReports the org's SendGrid configuration: whether it holds the credentials a send needs, the account's credits as SendGrid answers them, what the org's ledger counted sent by SendGrid in the last 24 hours, and the DNS records of the sending domain.

Ses

CommandWhat it does
hanzo email ses statusReports the org's Amazon SES configuration: whether it holds the credentials a send needs, the account's limits as SES answers them (sandbox, sending enabled, 24-hour quota, rate, sent in the last 24 hours), what the org's ledger counted sent by SES in the last 24 hours, and the DNS records of the sending domain.

Webhooks

CommandWhat it does
hanzo email webhooks sendgridReceives SendGrid's Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential).
hanzo email webhooks sesReceives Amazon SES events as an SNS HTTPS subscription delivers them.
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.