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

Loops

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

Capabilities

Repeated headers Idempotency Scheduling Personalized
No none No expanded

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

The Loops adapter calls the Loops transactional API with plain fetch. 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.

Compare Loops with other providers

Side-by-side message-field support from the SDK capability matrix, with working code for both adapters:

Last updated on