See llms.txt for all machine-readable content.

Back to Templates

Manage Brevo contact folders and lists with HTTP requests

Quick overview

This workflow demonstrates how to manage Brevo (Sendinblue) contact folders via the Brevo API, including listing folders, creating a folder, retrieving folder details, listing lists within a folder, renaming a folder, and deleting a folder.

How it works

  1. Sends a paginated request to the Brevo API to retrieve all contact folders and merges all pages into a single folders output.
  2. Creates a new Brevo contact folder with a specified name.
  3. Fetches details for a specific Brevo folder ID.
  4. Sends a paginated request to the Brevo API to retrieve all lists inside a specific folder and merges all pages into a single lists output.
  5. Updates an existing Brevo folder by renaming it.
  6. Deletes a specified Brevo folder using the Brevo API.

Setup

  1. Create or select a Brevo account credential in n8n (SendinBlue API) with an API key that has access to your contacts.
  2. Replace the hardcoded folder IDs in the “Get a Folder’s Details”, “Get Lists in a Folder”, “Update a Folder”, and “Delete a Folder” requests with your own folder ID values.
  3. Update the folder names used in the create and update requests to match your intended naming conventions.

Requirements

  • Brevo account with an active API key (v3).

Customization

  • Adjust the sort order (asc/desc) and limit parameters in the GET requests to fit your data volume.

Additional info

Important: Deleting a folder in Brevo permanently removes all contact lists contained within it (though contacts themselves remain in your database).
Need full control over contacts and lists? Pair this workflow with the "Brevo List Management Master Template".