Skip to content

Brevo ​

Brevo (formerly Sendinblue) is a marketing platform for email, SMS, and transactional messaging.

ingestr supports Brevo as a source.

URI format ​

The URI format for Brevo is as follows:

plaintext
brevo://?api_key=<api-key>

URI parameters:

  • api_key: A Brevo API key (v3).

Setting up a Brevo Integration ​

To get an API key:

  1. Log in to your Brevo account.
  2. Open SMTP & API → API Keys in your account settings.
  3. Click Generate a new API key and copy it.

Once you have the key, here's a sample command that copies Brevo contacts into a DuckDB database:

sh
ingestr ingest \
  --source-uri 'brevo://?api_key=your_api_key' \
  --source-table 'contacts' \
  --dest-uri duckdb:///brevo.duckdb \
  --dest-table 'brevo.contacts'

Tables ​

TablePKInc KeyInc StrategyDetails
contactsidmodifiedAtmergeAll contacts with their attributes, list memberships, and blocklist flags. Incremental runs only fetch contacts modified since the interval start.
listsid-replaceContact lists.
segmentsid-replaceContact segments.
foldersid-replaceFolders that group contact lists.
contact_attributescategory, name-replaceContact attribute definitions, including the values of category attributes.
email_campaignsid-replaceEmail campaigns of every status, including archived ones (status is archive), with their global statistics. HTML content is excluded.
sms_campaignsid-replaceSMS campaigns of every status, including archived ones.
email_templatesid-replaceTransactional email templates.
transactional_email_events-event_datedelete+insertOne row per transactional email event (request, delivered, opened, click, bounce, and so on). event_date is the day of the event's date.
transactional_email_reports-datedelete+insertDaily totals for transactional email.
blocked_contactsemail-replaceContacts blocked or unsubscribed from transactional email, with the reason.
companiesidmodifiedAtmergeCRM companies with their attributes and linked contacts and deals. modifiedAt is copied from the last_updated_at attribute.
dealsidmodifiedAtmergeCRM deals with their attributes and links. modifiedAt is copied from the last_updated_date attribute.
crm_tasksid-replaceCRM tasks.
crm_notesid-replaceCRM notes.
ordersidupdatedAtmergeEcommerce orders. Brevo keeps every update of an order; the table keeps the latest one.
productsidmodifiedAtmergeEcommerce products, including deleted ones (isDeleted is true).
categoriesidmodifiedAtmergeEcommerce categories, including deleted ones (isDeleted is true).
sms_events-event_datedelete+insertOne row per transactional SMS event. event_date is the day of the event's date.
whatsapp_events-event_datedelete+insertOne row per WhatsApp event. event_date is the day of the event's date.
whatsapp_campaignsid-replaceWhatsApp campaigns.
custom_events-event_datedelete+insertCustom events tracked for contacts, with their properties.

Use these as --source-table parameter in the ingestr ingest command.

Notes ​

  • transactional_email_events, transactional_email_reports, sms_events and whatsapp_events are loaded in whole days. Each run replaces the days from --interval-start through --interval-end, inclusive. Without an interval, they load the last 90 days.
  • event_date is the event's day in the timezone set in your Brevo account.
  • Brevo returns createdAt and modifiedAt of email templates in Central European Time but marks them as UTC, so they can be an hour or two ahead.
  • A full refresh of the event and report tables without an interval keeps only the last 90 days, and of custom_events only the last 6 months.
  • The ecommerce tables need ecommerce enabled in Brevo, and the SMS and WhatsApp tables need those channels on your plan.
  • Deleted contacts are not returned by Brevo, so they stay in the destination contacts table.