---
title: "Create Contact via DOI (Double-Opt-In) Flow"
method: POST
path: "/contacts/doubleOptinConfirmation"
tags: ["Contacts"]
---

# Create Contact via DOI (Double-Opt-In) Flow

`POST /contacts/doubleOptinConfirmation`

## Request body

- CreateDoiContact
  - `email` string, email, required — Email address where the confirmation email will be sent. This email address will be the identifier for all other contact attributes.
  - `attributes` object — Pass the set of attributes and their values. These attributes must be present in your Brevo account. For eg. {'FNAME':'Elly', 'LNAME':'Roger', 'COUNTRIES':['India','China']}
  - `includeListIds` integer[], required — Lists under user account where contact should be added
  - `excludeListIds` integer[] — Lists under user account where contact should not be added
  - `templateId` integer, required — Id of the Double opt-in (DOI) template
  - `redirectionUrl` string, url, required — URL of the web page that user will be redirected to after clicking on the double opt in URL. When editing your DOI template you can reference this URL by using the tag {{ params.DOIurl }}.

## Response `201`

DOI Contact created

## Other responses

- `204` — DOI Contact updated
- `400` — bad request

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/versions/2aec3cf66501/schema)
