---
title: SparkPost
description: Configure the SparkPost Transmissions API adapter.
sidebar:
  icon: "https://cdn.simpleicons.org/sparkpost"
---



**[SparkPost](https://www.sparkpost.com)** · `@opencoredev/email-sdk/sparkpost` · [setup guide](/docs/adapters/sparkpost)



```ts
import { createEmailClient } from "@opencoredev/email-sdk";
import { sparkpost } from "@opencoredev/email-sdk/sparkpost";

const email = createEmailClient({
  adapters: [sparkpost({ apiKey: process.env.SPARKPOST_API_KEY! })],
});
```

## Options

| Option    | Type           | Required | Notes                                           |
| --------- | -------------- | -------- | ----------------------------------------------- |
| `apiKey`  | `string`       | Yes      | SparkPost API key.                              |
| `baseUrl` | `string`       | No       | Defaults to `https://api.sparkpost.com/api/v1`. |
| `sandbox` | `boolean`      | No       | Enables SparkPost sandbox mode.                 |
| `fetch`   | `typeof fetch` | No       | Useful for tests or custom runtimes.            |

SparkPost does not expose normalized CC/BCC in this adapter. See <a href="/v0.4.0/docs/adapters/field-support">field support</a>.
