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

Helo

Send individual emails through Helo's transactional endpoint with native idempotency, Channel routing, tags, and metadata.

Capabilities

Repeated headers Idempotency Scheduling Personalized
No native No expanded

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

The Helo adapter calls POST /send/transactional on the Helo API with plain fetch and Bearer authentication. Helo groups sending into Channels, and the adapter can pin every send to one Channel.

Helo supports both transactional and broadcast email. Email SDK sends one message at a time to explicit recipients, so this adapter uses the transactional endpoint. Send broadcasts from Helo directly through POST /send/broadcast.

Helo logo
Helo@opencoredev/email-sdk/helo
Provider docs

Configure

Create an API credential in Helo and verify the domain you send from.

PropType
apiKeystring

Helo API credential.

Typestring
channelId?string

Channel to send through, sent as the X-Helo-Channel-Id header. Required when the credential is valid for every Channel; omit it for a credential scoped to one Channel.

Typestring
baseUrl?string

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

Typestring
Default"https://api.helohq.com"
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

The adapter maps cc, bcc, replyTo, custom headers, attachments, tags, and metadata. An attachment goes out inline when it has a contentId or disposition: "inline".

Helo tags are plain strings, so the adapter sends each tag’s value and drops its name. Metadata values are sent as strings: numbers and booleans are converted, and null becomes an empty string.

Helo has no scheduled sending. A message with sendAt throws an EmailValidationError.

The client’s idempotency key goes out as the X-Helo-Idempotency-Key header. Helo accepts keys up to 36 characters. Longer keys, such as the per-recipient keys sendPersonalized derives, are hashed into a UUID-shaped SHA-256 digest, so the same client key always maps to the same Helo key.

Failed sends

Helo can answer HTTP 200 with status: "failed" and an errorCode. That message was never queued, so the adapter throws an EmailAdapterError with retryable: false and delivery: "not_sent", and includes Helo’s reason in the error message.

Other 4xx responses are reported with delivery: "not_sent". A 409 or 5xx response reports delivery: "unknown", because a 409 can mean another request with the same idempotency key is still in flight.

Verify from the CLI

The live check posts an empty body to /send/transactional. Once the credential authenticates, Helo rejects the request with a 422 validation_failed or invalid_channel error, which the check reports as authenticated. Nothing is sent.

Drop --dry-run to send for real. The CLI also reads HELO_CHANNEL_ID and HELO_BASE_URL from the environment. Failed requests surface Helo’s error detail, any field errors, and its error code.

Last updated on