Create Contact via DOI (Double-Opt-In) Flow
<Note title="How to use attributes param?">attributes param in this endpoint is an object containing key-value pairs where values can be either a string, integer, array, or boolean. You can create key-value pairs with these four datatypes. When a value is an array, it should be an array of strings.</Note>
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Request
Values to create the Double opt-in (DOI) contact
email
Email address where the confirmation email will be sent. This email address will be the identifier for all other contact attributes.
includeListIds
Lists under user account where contact should be added
redirectionUrl
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 }}.
templateId
Id of the Double opt-in (DOI) template
attributes
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’]}
excludeListIds
Lists under user account where contact should not be added
Response
DOI Contact created