Email SDK
Adapters

Loops

Configure the Loops transactional email adapter.

Loops logo
Loops
email-sdk/loops

Loops transactional sends normally use a transactionalId.

import { createEmailClient } from "email-sdk";
import { loops } from "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.
transactionalIdstringUsuallyTransactional email ID.
baseUrlstringNoDefaults to https://app.loops.so.
fetchtypeof fetchNoUseful for tests or custom runtimes.

Loops transactional sends support one recipient and metadata through dataVariables. Unsupported fields throw before the API call.

On this page