---
title: Loops
description: Configure the Loops transactional email adapter.
sidebar:
  icon: "https://cdn.simpleicons.org/loops"
---



**[Loops](https://loops.so)** · `@opencoredev/email-sdk/loops` · [setup guide](/docs/adapters/loops)



Loops transactional sends normally use a `transactionalId`.

```ts
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

| Option            | Type           | Required | Notes                                |
| ----------------- | -------------- | -------- | ------------------------------------ |
| `apiKey`          | `string`       | Yes      | Loops API key.                       |
| `transactionalId` | `string`       | Usually  | 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 and metadata through `dataVariables`. Unsupported fields throw before the API call.
