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

Loops

Configure the Loops transactional email adapter.

Loops logo
Loops@opencoredev/email-sdk/loops
Provider docs

Loops sends through a published Loops transactional email. It is best for product-triggered lifecycle messages where the template lives in Loops and your app passes data variables.

Before live sends

Create or publish the transactional email in Loops, copy its transactionalId, and create an API key with permission to send transactional email. Loops may require account-level enablement for attachments, so omit attachments until that capability is enabled.

Configure

Send

Loops maps metadata into dataVariables together with subject, html, text, and from. It only supports one recipient per transactional send.

Send with an attachment

Options

Option Type Required Notes
apiKey string Yes Loops API key.
transactionalId string Yes Transactional email ID.
baseUrl string No Defaults to https://app.loops.so.
fetch typeof fetch No Useful for tests or custom runtimes.

Loops transactional sends support one recipient, metadata through dataVariables, and attachments through the transactional attachments payload. Loops documents that attachments require support enablement on the account, so accounts without that enablement should omit attachments. Unsupported fields throw before the API call.

Response

The adapter maps Loops id or transactionalId to the normalized id field when the API returns one.

CLI smoke test

Last updated on