-
Notifications
You must be signed in to change notification settings - Fork 0
Home
tsubotitsch edited this page Jun 25, 2025
·
3 revisions
Brevo is a versatile digital marketing platform that enables businesses to streamline customer communication through multiple channels, including email, SMS, and more.
This PowerShell module contains functions to automate Brevo via the Brevo API
| General | Contact Management | Marketing | Account and Settings |
|---|---|---|---|
| Connect-Brevo | Add-BrevoContactListMember | Get-BrevoEmailCampaign | Get-BrevoUser |
| Disconnect-Brevo | Get-BrevoContact | Remove-BrevoEmailCampaign | Get-BrevoUserActivitylog |
| Invoke-BrevoCall | Get-BrevoContactAttribute | Send-BrevoEmailCampaign | Get-BrevoUserPermission |
| Get-BrevoContactFolder | Send-BrevoUserInvitation | ||
| Get-BrevoContactList | |||
| Get-BrevoContactListMember | Confirm-BrevoDomain | ||
| Get-BrevoContactSegment | Get-BrevoDomain | ||
| Import-BrevoContact | New-BrevoDomain | ||
| New-BrevoContact | Remove-BrevoDomain | ||
| New-BrevoContactAttribute | Test-BrevoDomain | ||
| New-BrevoContactFolder | |||
| Remove-BrevoContact | Get-BrevoSender | ||
| Remove-BrevoContactAttribute | New-BrevoSender | ||
| Remove-BrevoContactFolder | Remove-BrevoSender | ||
| Remove-BrevoContactList | |||
| Update-BrevoContact | Get-BrevoAccount | ||
| Update-BrevoContactList | |||
| New-BrevoDomain | |||
| Remove-BrevoDomain | |||
| Test-BrevoDomain |
# PowerShellGet 2.x
Install-Module -Name Brevo -Repository PSGallery
# PowerShellGet 3.x
Install-PSResource -Name Brevo
Import-Module Brevo
# List all available cmdlets provided by the module
Get-Command -Module BrevoYou have to have an API key first. Using your API key to authenticate
- Login to Brevo.com or register for free
- Navigate to My Profile > SMTP & API > API-Key > Generate ne API Key
- Copy the generated key for later use
- Note: IPs have to be explicitly whitelisted in Brevo to allow API access. See IP Whitelisting, navigate to Menu > SMTP & API > Authorized IPs or click here to manage your IPs in Brevo: Manage IPs
- Alternatively, you can turn off the IP restriction (if it regularly changes) and use the API key without IP restrictions - see the screenshot below

After deactivation, you can use the API key without IP restrictions - see the screenshot below
- Alternatively, you can turn off the IP restriction (if it regularly changes) and use the API key without IP restrictions - see the screenshot below
# Create Credentials
# $apikey = Get-credential -Message "Please enter your Brevo API key (username doesn't matter)"
# $apikey | Export-Clixml -Path ".\Brevo-APIkey.local.xml"
$apikey = Import-Clixml -Path ".\Brevo-APIkey.local.xml"
Connect-Brevo -APIkey $apikeyGet-BrevoContactAttributesGet-BrevoContactFolder | Format-TableGet-BrevoContactList | Format-TableNew-BrevoContactFolder -Name "MyFolder01"$ContactFolder = Get-BrevoContactFolder | Where-Object { $_.name -eq "MyFolder01" }
New-BrevoContactList -Name "MyList" -FolderId $ContactFolder.idNew-BrevoContactAttribute -attributeCategory normal -type text -attributeName USERTYPENew-BrevoContact -Email "test01@example.org" -attributes @{FNAME="Elly"; LNAME="Roger";COUNTRIES=@("India","China")} -listIds 22,355- Connect-Brevo
- Disconnect-Brevo
- Invoke-BrevoCall
- Account and Settings
- Contact Management
- Attribute
- Contact
- Folder
- List
- Segment
- Marketing
- Sales CRM