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 provides a comprehensive set of functions to automate interactions with Brevo using the Brevo API.
For detailed API reference, see the Brevo API documentation.
| General | Contact Management | Marketing | Account and Settings | Sales CRM |
|---|---|---|---|---|
| Connect-Brevo | Add-BrevoContactListMember | Get-BrevoEmailCampaign | Confirm-BrevoDomain | Get-BrevoNote |
| Disconnect-Brevo | Get-BrevoContact | Remove-BrevoEmailCampaign | Get-BrevoAccount | New-BrevoNote |
| Invoke-BrevoCall | Get-BrevoContactAttribute | Send-BrevoEmailCampaign | Get-BrevoDomain | Remove-BrevoNote |
| Get-BrevoContactEmailCampaignStatistic | Get-BrevoSender | Update-BrevoNote | ||
| Get-BrevoContactFolder | Get-BrevoUser | |||
| Get-BrevoContactList | Get-BrevoUserActivitylog | |||
| Get-BrevoContactListMember | Get-BrevoUserPermission | |||
| Get-BrevoContactSegment | New-BrevoDomain | |||
| Import-BrevoContact | Remove-BrevoDomain | |||
| New-BrevoContact | Remove-BrevoSender | |||
| New-BrevoContactAttributeMultipleChoiceOption | Send-BrevoUserInvitation | |||
| New-BrevoContactList | Test-BrevoDomain | |||
| Remove-BrevoContact | ||||
| Remove-BrevoContactAttributeMultipleChoiceOption | ||||
| Remove-BrevoContactFolder | ||||
| Remove-BrevoContactList | ||||
| Update-BrevoContact | ||||
| Update-BrevoContactAttribute | ||||
| Update-BrevoContactFolder | ||||
| Update-BrevoContactList |
# 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 Brevo
# Disconnect from Brevo
Disconnect-BrevoFirst, you'll need an API key. Using your API key to authenticate
- Log in to Brevo.com or register for a free account
- Navigate to My Profile > SMTP & API > API-Key > Generate a new API Key
- Copy the generated key for later use
# Store Credentials Securely
# $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-BrevoContactAttributeGet-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,355See Create-Contacts.ps1 for a complete code example