Brevo officially supports the following API libraries:
For more information about our repositories, see this link.
For the date attribute, the Brevo API accepts dates only in yyyy-mm-dd format and displays them according to the client’s dashboard/portal setting.
For example (DOB is a date type attribute):
Note: \\n separates contacts.
Some endpoints return a limited number of records per request. For example: Get all your transactional email activity (unaggregated events) returns only 100 records per call.
These endpoints support an offset parameter (the starting point in the list) to fetch all records.
For example:
limit=100&offset=0 returns the first 100 events (1-100).limit=100&offset=100 returns the next 100 events (101-200).limit=100&offset=200 returns events 201-300.limit=100&offset=300 returns events 301-400.Increase the offset value to fetch more records.
To create a custom DOI template, add an optin tag in the campaign template setup.
Specify which CTA in your template design triggers the confirmation by adding the {{ doubleoptin }} placeholder in your CTA link or button.
See the screenshot for setting up the optin tag:

The endpoint requires an active DOI template, otherwise it returns the following error:
Note: Replace {{ doubleoptin }} with {{ params.DOIurl }} in your DOI template design to specify a custom redirection URL after your contact clicks the CTA. DOIurl is passed as an attribute in the API call and embedded in the {{params.DOIurl}} placeholder.
API V3 doesn’t support it directly, but you can achieve the same result via params with the Send a transactional email endpoint.
Example: displaying a logo image in the email body.
Step 1. Obtain the absolute URL of the logo image.
Example url: https://img.mailinblue.com/2601503/images/rnb/original/5f8d7a79c93a8f36627df383.png
Note: If you’re using Base64 encoding, host the image to get an absolute URL instead of using base64-encoded data of a local file.
Step2. Send the logo image URL as a params variable such as LOGO_IMAGE_URL.
Step 3. Reference the LOGO_IMAGE_URL attribute in htmlContent:
{{ params.LOGO_IMAGE_URL}}
Example
Example curl command:
The recipient email looks like:

A single transactional email supports 99 recipients in total across to, cc, and bcc.