To send leads to Brevo will require an API key and the List ID of the list you want to add the leads to.
Generating an API Key
The API key can be obtained by clicking on the profile dropdown, then clicking on SMTP & API.
Click on the API Keys tab then Generate a new API Key. Type a name for your new key then click "Generate".
Make note of the new API key, Brevo won't show it again later.
Getting your List ID
When you view your Lists you will see the ID in one of the columns. You will only need the number without the # symbol.
Setting up your Action
In your Action use "https://api.brevo.com/v3/contacts" as the remote URL and add the following to the "Headers" field: {"accept": "application/json", "api-key": "your-api-key-here", "content-type": "application/json"}
Be sure to replace the value for the API key with the one your generated in Brevo.
Set the Remote Method to "POST" and the tick Send as JSON.
In fields, add all the following:
updateEnabled - true
emailBlacklisted - false
smsBlacklisted - false
email - Select the email address field.
attributes:FIRSTNAME - Select the First Name field. - Optional
attributes:LASTNAME - Select the Last Name field. - Optional
attributes:SMS - Select the Phone Number field. - Optional, but sending the incorrect format may cause failure, see Advanced Options below.
listIds:0 - enter the list ID you want to send the lead to. If you want to add the contact to multiple lists you can add additional Fields as listIds:1, listIds:2, etc.
Brevo doesn't accept string values for some of their fields, so we need to do some conversions of the data in the background. Click the Advanced Options arrows to the left of each field and add the following:
updateEnabled, EmailBlacklisted and SMSBlacklisted should all have {"convertToBool": true}
attributesSMS should have {"intPhone": "US"} with the appropriate country code.
listIds:0 should have {"convertToInt": true}
NOTE: If you do not see the Headers or Advanced Options field in your instance, please contact us by creating a new ticket, as we may need to enable them for you.