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

Iterable

Trigger an Iterable campaign template for one recipient, with message content delivered as dataFields.

The Iterable adapter calls Iterable’s target email API over fetch — no extra dependency. Instead of sending raw content, it triggers an existing campaign template for exactly one recipient and hands your message to the template as dataFields.

Iterable logo
Iterable@opencoredev/email-sdk/iterable
Provider docs

Configure

Create a server-side API key in Iterable and copy the campaign ID of the template you want to trigger.

PropType
apiKeystring

Iterable API key.

Typestring
campaignIdnumber

Campaign whose template renders the email. Non-numeric values throw an EmailValidationError when the adapter is created.

Typenumber
allowRepeatMarketingSends?boolean

Forwarded to Iterable to allow re-sending a marketing campaign to the same user.

Typeboolean
dataFields?Record<string, unknown> | (message) => Record<string, unknown>

Extra template fields — a static object or a function of the message. Merged in before the normalized fields, so subject/html/text/from win on conflicts.

TypeRecord<string, unknown> | (message) => Record<string, unknown>
sendAt?string

Schedule the send — UTC timestamp in Iterable's expected format.

Typestring
baseUrl?string

Override the API origin, e.g. for a proxy.

Typestring
Default"https://api.iterable.com"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

The campaign template renders the email. The adapter passes subject, html, text, and from into dataFields so the template can use them, and forwards metadata as Iterable webhook metadata.

Verify from the CLI

--campaign-id and --send-at override ITERABLE_CAMPAIGN_ID and ITERABLE_SEND_AT. Drop --dry-run to trigger one real campaign send and confirm the API key and campaign are live.

Last updated on