> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create double-opt-in contact

> Create double-opt-in contact through the Brevo API.

`brevo.createDoubleOptInContact` create double-opt-in contact through the Brevo API.

## Example

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { brevo } from "automate.ax/brevo"

export default automation("Create double-opt-in contact", () => {
  onDashboardRun({ title: "Create double-opt-in contact" })

  brevo.createDoubleOptInContact({
    email: "person@example.com",
    includeListIds: [12],
    redirectionUrl: "https://example.com/confirmed",
    templateId: 42,
  })
})
```

## Inputs and output

Inputs: `email`, non-empty `includeListIds`, positive `templateId`, and absolute `redirectionUrl` are required. `attributes` and `excludeListIds` are optional.

Completes after Brevo accepts the confirmation flow. Brevo sends the DOI template and adds the contact only after confirmation. Pass `{ account }` as the second argument to select a named Brevo account binding.
