Email SDK
Adapters

Loops

Configure the Loops transactional email adapter.

Loops logo
Loops
@opencoredev/email-sdk/loops
OfficialPayload-testedLive account required
Open website

Loops transactional sends require a transactionalId.

import { createEmailClient } from "@opencoredev/email-sdk";
import { loops } from "@opencoredev/email-sdk/loops";

const email = createEmailClient({
  adapters: [
    loops({
      apiKey: process.env.LOOPS_API_KEY!,
      transactionalId: process.env.LOOPS_TRANSACTIONAL_ID!,
    }),
  ],
});

Options

OptionTypeRequiredNotes
apiKeystringYesLoops API key.
transactionalIdstringYesTransactional email ID.
baseUrlstringNoDefaults to https://app.loops.so.
fetchtypeof fetchNoUseful 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.

On this page