Lodol Docs

Brevo

API actions for the Brevo integration.

Brevo

Automate Brevo: manage contacts, lists, and email campaigns.


Add contact to list

Add a contact to a Brevo list by email.

Parameters

ParameterTypeRequiredDescription
list_idstringYesThe ID of the Brevo list.
emailstringYesContact email

Response

{}

Create contact

Create a Brevo contact and optionally add it to lists.

Parameters

ParameterTypeRequiredDescription
emailstringYesContact email
attributesobjectNoThe contact's details to save, such as first name, last name, or phone number.
list_idsarrayNoIDs of the lists to add the contact to.
update_existingbooleanNoSet to true to update the contact if one with this email already exists.

Response

{}

Create email campaign

Create an email campaign targeting specific lists.

Parameters

ParameterTypeRequiredDescription
sender_namestringYesSender name
sender_emailstringYesSender email
subjectstringYesCampaign subject
html_contentstringYesThe content of the email. You can use HTML formatting, such as <b>bold</b> text and links.
list_idsarrayYesIDs of the contact lists that will receive the campaign.

Response

{}

Create contact list

Create a new Brevo contact list.

Parameters

ParameterTypeRequiredDescription
namestringYesList name
folder_idnumberYesID of the folder to create the list in. Brevo requires every list to live in a folder. New accounts have a default folder with ID 1.

Response

{}

Get contact

Fetch a contact by email.

Parameters

ParameterTypeRequiredDescription
emailstringYesContact email

Response

{}

List contacts

List contacts from your Brevo account, one page at a time.

Parameters

ParameterTypeRequiredDescription
limitnumberNoMaximum results
offsetnumberNoThe number of contacts to skip before starting the list. Use this to see later pages of results.

Response

{
  "results": [
    {}
  ]
}

Send transactional email

Send a single transactional email, such as an order confirmation or receipt, with a subject and message body.

Parameters

ParameterTypeRequiredDescription
sender_emailstringYesSender email
to_emailstringYesRecipient email
subjectstringYesEmail subject
html_contentstringYesThe content of the email. You can use HTML formatting, such as <b>bold</b> text and links.
sender_namestringNoSender name

Response

{}

Update contact

Update a contact's details and which lists they belong to.

Parameters

ParameterTypeRequiredDescription
emailstringYesContact email
attributesobjectNoThe contact details to change, such as first name or last name.
list_idsarrayNoIDs of the lists to add the contact to.
unlink_list_idsarrayNoIDs of the lists to remove the contact from.

Response

{}

On this page