Skip to content
You're viewing documentation for v3.0.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

SendHeron

Send through the SendHeron transactional email API with native idempotency, scheduling, and suppressed sends reported as errors.

Capabilities

Repeated headers Idempotency Scheduling Personalized
No native Yes expanded

These values come from the adapter’s exported capabilities declaration. The field support matrix covers normalized message fields.

The SendHeron adapter calls POST /emails/send on the SendHeron API with plain fetch. Every send passes through SendHeron’s compliance gate, which can refuse a message on policy. The adapter turns that refusal into an error so it is never mistaken for a sent email.

SendHeron logo
SendHeron@opencoredev/email-sdk/sendheron
Provider docs

Configure

Create an API key with the emails:send scope in your SendHeron workspace and verify the domain you send from.

PropType
apiKeystring

SendHeron API key with the emails:send scope.

Typestring
baseUrl?string

Override the API base URL, e.g. for a proxy.

Typestring
Default"https://api.sendheron.com/api/v1"
headers?Record<string, string>

Extra request headers sent with every call.

TypeRecord<string, string>
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

SendHeron takes one recipient per send. The adapter maps cc and bcc (up to 50 each), one replyTo, headers, attachments, and sendAt. The sender’s display name goes into SendHeron’s fromName field.

SendHeron has no plain-text body. When a message has html, the adapter sends it and drops text. A text-only message is HTML-escaped and wrapped in a <pre> block so line breaks survive.

The client’s idempotency key goes out as SendHeron’s idempotency-key header. SendHeron honors a key for 24 hours, so a retry after a timeout replays the first response instead of sending twice.

Suppressed sends

SendHeron answers a refused send with HTTP 201 and status: "suppressed", with the reason (such as HARD_SUPPRESSED or ORG_SENDING_PAUSED) in errorMessage. The adapter throws an EmailAdapterError for it with retryable: false and delivery: "not_sent", and the reason appears in the error message. Fix the cause instead of retrying.

Verify from the CLI

The live check reads a send ID that cannot exist. SendHeron answers emailSending.notFound once the key authenticates and holds the emails:send scope, so no email is sent. A missing scope reports insufficient_permissions.

Drop --dry-run to send for real. Failed requests surface SendHeron’s description and its stable error key, for example SendHeron failed with 401: Unauthorized (apiKeys.invalidToken).

Last updated on