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

Loops

Trigger a published Loops transactional email for one recipient, with metadata delivered as dataVariables.

The Loops adapter calls the Loops transactional API over fetch — no extra dependency. It triggers a published transactional email by transactionalId for exactly one recipient and hands your message to the template as dataVariables.

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

Configure

Create an API key in Loops with permission to send transactional email, then publish the transactional email and copy its transactionalId.

PropType
apiKeystring

Loops API key.

Typestring
transactionalIdstring

Published transactional email to render. Must be non-empty — the adapter throws at construction otherwise.

Typestring
baseUrl?string

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

Typestring
Default"https://app.loops.so"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

The Loops template renders the email. The adapter merges subject, html, text, from, and every metadata key into dataVariables — your template decides which of them appear. Exactly one to recipient is allowed per send.

Attachments are supported and sent as { filename, contentType, data } with base64-encoded content.

Verify from the CLI

Drop --dry-run to trigger one real template send and confirm the API key and published transactional email are live.

Last updated on