/crm/files
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| entity | query | optional | string | Filter by file entity type |
| entityIds | query | optional | string | Filter by file entity IDs |
| dateFrom | query | optional | integer | dateFrom to date range filter type (timestamp in milliseconds) |
| dateTo | query | optional | integer | dateTo to date range filter type (timestamp in milliseconds) |
| offset | query | optional | integer | Index of the first document of the page |
| limit | query | optional | integer | Number of documents per page |
| sort | query | optional | string | Sort the results in the ascending/descending order. Default order is descending by creation if |
Returns files list with filters
Returned when query params are invalid
GET /crm/files
/crm/files
multipart/form-data
FilesUploadFileRequest
| Property | Type | Required |
|---|---|---|
| file | string | required |
| dealId | string | optional |
| companyId | string | optional |
| contactId | integer | optional |
Returns the created File with additional details
Returned when invalid data posted
POST /crm/files
/crm/files/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | File id to delete. |
Returned when file is deleted.
Returned when invalid data posted
Returned when item not found
DELETE /crm/files/{id}
/crm/files/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | File id to download. |
Returns downloadable file link. Valid for next 5 minutes only.
Returned when invalid data posted
Returned when item not found
GET /crm/files/{id}
/crm/files/{id}/data
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | File id to get file data. |
Returned when file is found.
Returned when invalid data posted
Returned when item not found
GET /crm/files/{id}/data
/inbound/attachments/{downloadToken}
This endpoint will retrieve inbound attachment with download token.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| downloadToken | path | required | string | Token to fetch a particular attachment |
Attachment information
bad request
attachment not found
GET /inbound/attachments/{downloadToken}
/inbound/events
This endpoint will show the list of all the events for the received emails.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| sender | query | optional | string | Email address of the sender. |
| startDate | query | optional | string | Mandatory if endDate is used. Starting date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ) from which you want to fetch the list. Maximum time period that can be selected is one month. |
| endDate | query | optional | string | Mandatory if startDate is used. Ending date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ) till which you want to fetch the list. Maximum time period that can be selected is one month. |
| limit | query | optional | integer | Number of documents returned per page |
| offset | query | optional | integer | Index of the first document on the page |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation |
List of events for received emails.
bad request
GET /inbound/events
/inbound/events/{uuid}
This endpoint will show the list of all events history for one particular received email.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| uuid | path | required | string | UUID to fetch events specific to recieved email |
Email campaign informations
bad request
GET /inbound/events/{uuid}
/corporate/group
This endpoint allows to create a group of sub-accounts
application/json
MasterAccountCreateGroupOfSubAccountsRequest
| Property | Type | Required |
|---|---|---|
| groupName | string | required |
| subAccountIds | array | optional |
Group ID
Bad request
POST /corporate/group
/corporate/group/unlink/{groupId}/subAccounts
This endpoint allows you to remove a sub-organization from a group.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| groupId | path | required | string | Group id |
List of sub-account ids
application/json
MasterAccountUnlinkSubAccountFromGroupRequest
| Property | Type | Required |
|---|---|---|
| subAccountIds | array | required |
SubAccounts removed from the group
bad request
PUT /corporate/group/unlink/{groupId}/subAccounts
/corporate/group/{id}
This endpoint allows you to delete a group of sub-organizations. When a group is deleted, the sub-organizations are no longer part of this group. The users associated with the group are no longer associated with the group once deleted.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | Id of the group |
Group deleted
bad request
DELETE /corporate/group/{id}
/corporate/group/{id}
This endpoint allows you to retrieve a specific group’s information such as the list of sub-organizations and the user associated with the group.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | Id of the group of sub-organization |
Group details
GET /corporate/group/{id}
/corporate/group/{id}
This endpoint allows to update a group of sub-accounts
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | Id of the group |
Group details to be updated.
application/json
MasterAccountUpdateGroupSubAccountsRequest
| Property | Type | Required |
|---|---|---|
| groupName | string | optional |
| subAccountIds | array | optional |
Group details updated
bad request
PUT /corporate/group/{id}
/corporate/groups
This endpoint allows you to list all groups created on your Admin account.
list of all the sub-account groups
GET /corporate/groups
/corporate/invited/users
This endpoint allows you to list all Admin users of your Admin account
list of all admin users
GET /corporate/invited/users
/corporate/masterAccount
This endpoint will provide the details of the master account.
Master account details
bad request
GET /corporate/masterAccount
/corporate/ssoToken
This endpoint generates an SSO token to authenticate and access the admin account using the endpoint https://account-app.brevo.com/account/login/corporate/sso/[token], where [token] will be replaced by the actual token.
application/json
MasterAccountGenerateSsoTokenRequest
| Property | Type | Required |
|---|---|---|
| string | required |
Session token
bad request
Current account is not an admin account
POST /corporate/ssoToken
/corporate/subAccount
This endpoint will provide the list all the sub-accounts of the master account.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| offset | query | required | integer | Index of the first sub-account in the page |
| limit | query | required | integer | Number of sub-accounts to be displayed on each page |
Sub-accounts list
bad request
GET /corporate/subAccount
/corporate/subAccount
This endpoint will create a new sub-account under a master account
Request body with sub-account organization name
application/json
createSubAccount
| Property | Type | Required |
|---|---|---|
| string | required | |
| language | string | optional |
| timezone | string | optional |
| companyName | string | required |
Created sub-account ID
Bad request
POST /corporate/subAccount
/corporate/subAccount/key
This endpoint will generate an API v3 key for a sub account
application/json
MasterAccountCreateSubAccountKeyRequest
| Property | Type | Required |
|---|---|---|
| id | integer | required |
| name | string | required |
API key
bad request
POST /corporate/subAccount/key
/corporate/subAccount/ssoToken
This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.brevo.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
application/json
MasterAccountGenerateSsoTokenRequest1
| Property | Type | Required |
|---|---|---|
| id | integer | required |
| url | string | optional |
| string | optional | |
| target | string | optional |
Session token
bad request
Current account is not a master account
POST /corporate/subAccount/ssoToken
/corporate/subAccount/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | integer | Id of the sub-account organization to be deleted |
Returned when sub-account is deleted succesfully
bad request
sub-account not found
DELETE /corporate/subAccount/{id}
/corporate/subAccount/{id}
This endpoint will provide the details for the specified sub-account company
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | integer | Id of the sub-account organization |
Sub-account organization details
bad request
GET /corporate/subAccount/{id}
/corporate/subAccount/{id}/applications/toggle
API endpoints for the Corporate owner to enable/disable applications on the sub-account
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | integer | Id of the sub-account organization (mandatory) |
List of applications to activate or deactivate on a sub-account
application/json
subAccountAppsToggleRequest
| Property | Type | Required |
|---|---|---|
| crm | boolean | optional |
| inbox | boolean | optional |
| meetings | boolean | optional |
| web-push | boolean | optional |
| boolean | optional | |
| automation | boolean | optional |
| facebook-ads | boolean | optional |
| conversations | boolean | optional |
| landing-pages | boolean | optional |
| sms-campaigns | boolean | optional |
| email-campaigns | boolean | optional |
| transactional-sms | boolean | optional |
| transactional-emails | boolean | optional |
Sub-account application(s) enabled/disabled
bad request
Current account is not a master account
PUT /corporate/subAccount/{id}/applications/toggle
/corporate/subAccount/{id}/plan
This endpoint will update the sub-account plan
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | integer | Id of the sub-account organization |
Values to update a sub-account plan
application/json
subAccountUpdatePlanRequest
| Property | Type | Required |
|---|---|---|
| credits | object | optional |
| integer | optional | |
| features | object | optional |
| └ inbox | integer | optional |
| └ users | integer | optional |
| └ landingPage | integer | optional |
Sub account plan updated
bad request
Current account is not a master account
PUT /corporate/subAccount/{id}/plan
/corporate/user/invitation/send
`This endpoint allows you to invite a member to manage the Admin account
Features and their respective permissions are as below:
my_plan:
api:
user_management:
app_management |
Not available in ENTv2: |
Note:
all_features_access: false then only privileges are required otherwise if true then it’s assumed that all permissions will be there for the invited admin user.Payload to send an invitation
application/json
inviteAdminUser
| Property | Type | Required |
|---|---|---|
| string | required | |
| groupIds | array | optional |
| privileges | array | required |
| └ feature | string | optional |
| └ permissions | array | optional |
| all_features_access | boolean | required |
Invitation ID
Bad request
POST /corporate/user/invitation/send
/corporate/user/invitation/{action}/{email}
This endpoint will allow the user to:
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| action | path | required | string | Action to be performed (cancel / resend) |
| path | required | string | Email address of the recipient |
Response of the action performed
bad request
PUT /corporate/user/invitation/{action}/{email}
/corporate/user/revoke/{email}
This endpoint allows to revoke/remove an invited member of your Admin account
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| path | required | string | Email of the invited user |
User revoked
bad request
DELETE /corporate/user/revoke/{email}
/corporate/user/{email}/permissions
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| path | required | string | Email of the invited user. |
List of user’s permissions
bad request
GET /corporate/user/{email}/permissions
/crm/notes
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| entity | query | optional | string | Filter by note entity type |
| entityIds | query | optional | string | Filter by note entity IDs |
| dateFrom | query | optional | integer | dateFrom to date range filter type (timestamp in milliseconds) |
| dateTo | query | optional | integer | dateTo to date range filter type (timestamp in milliseconds) |
| offset | query | optional | integer | Index of the first document of the page |
| limit | query | optional | integer | Number of documents per page |
| sort | query | optional | string | Sort the results in the ascending/descending order. Default order is descending by creation if |
Returns notes list with filters
Returned when query params are invalid
GET /crm/notes
/crm/notes
Note data to create a note.
application/json
NoteData
| Property | Type | Required |
|---|---|---|
| text | string | required |
| dealIds | array | optional |
| companyIds | array | optional |
| contactIds | array | optional |
Created new note
Returned when invalid data posted
Format is not supported
POST /crm/notes
/crm/notes/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | Note ID to delete |
Returned when item deleted
Returned when invalid data posted
Returned when item not found
DELETE /crm/notes/{id}
/crm/notes/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | Note ID to get |
Returns the Note by id
Returned when invalid data posted
Returned when item not found
GET /crm/notes/{id}
/crm/notes/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | Note ID to update |
Note data to update a note.
application/json
NoteData
| Property | Type | Required |
|---|---|---|
| text | string | required |
| dealIds | array | optional |
| companyIds | array | optional |
| contactIds | array | optional |
Note updated successfully
Returned when invalid data posted
Returned when item not found
Format is not supported
PATCH /crm/notes/{id}
/payments/requests
Create a payment request
application/json
createPaymentRequest
| Property | Type | Required |
|---|---|---|
| cart | object | required |
| └ currency | string | required |
| └ specificAmount | integer | required |
| contactId | integer | required |
| reference | string | required |
| notification | object | optional |
| └ text | string | required |
| └ channel | string | required |
| configuration | object | required |
| └ customSuccessUrl | string | required |
Payment request created.
Bad request.
Unauthorized.
Permission denied. Either you don’t have access to Brevo Payments or your Brevo Payments account is not validated.
POST /payments/requests
/payments/requests/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | ID of the payment request. |
Payment request deleted successfully.
Unauthorized.
Permission denied. Either you don’t have access to Brevo Payments or your Brevo Payments account is not validated.
Payment request not found.
DELETE /payments/requests/{id}
/payments/requests/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | Id of the payment Request |
Payment request details
Bad request.
Unauthorized.
Permission denied. Either you don’t have access to Brevo Payments or your Brevo Payments account is not validated.
Payment request not found.
GET /payments/requests/{id}
/processes
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| limit | query | optional | integer | Number limitation for the result returned |
| offset | query | optional | integer | Beginning point in the list to retrieve from. |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation. Default order is descending if |
processes informations
bad request
GET /processes
/processes/{processId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| processId | path | required | integer | Id of the process |
process informations
bad request
Process ID not found
GET /processes/{processId}
/reseller/children
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| limit | query | optional | integer | Number of documents for child accounts information per page |
| offset | query | optional | integer | Index of the first document in the page |
list of children
Current account is not a reseller
GET /reseller/children
/reseller/children
reseller child to add
application/json
createChild
| Property | Type | Required |
|---|---|---|
| string | required | |
| language | string | optional |
| lastName | string | required |
| password | string | required |
| firstName | string | required |
| companyName | string | required |
child created
Bad request
Current account is not a reseller
POST /reseller/children
/reseller/children/{childIdentifier}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or child id of reseller’s child |
child deleted
bad request
Current account is not a reseller
Child auth key or child id not found
DELETE /reseller/children/{childIdentifier}
/reseller/children/{childIdentifier}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
Information for the child
bad request
Current account is not a reseller
Child auth key or child id not found
GET /reseller/children/{childIdentifier}
/reseller/children/{childIdentifier}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
values to update in child profile
application/json
updateChild
| Property | Type | Required |
|---|---|---|
| string | optional | |
| lastName | string | optional |
| password | string | optional |
| firstName | string | optional |
| companyName | string | optional |
reseller’s child updated
bad request
Current account is not a reseller
Child auth key or child id not found
PUT /reseller/children/{childIdentifier}
/reseller/children/{childIdentifier}/accountCreationStatus
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
status of reseller’s child account
bad request
Current account is not a reseller
Child auth key or child id not found
GET /reseller/children/{childIdentifier}/accountCreationStatus
/reseller/children/{childIdentifier}/accountStatus
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
values to update in child account status
application/json
updateChildAccountStatus
| Property | Type | Required |
|---|---|---|
| smsCampaign | boolean | optional |
| transactionalSms | boolean | optional |
| transactionalEmail | boolean | optional |
| marketingAutomation | boolean | optional |
reseller’s child account status updated
bad request
Current account is not a reseller
Child auth key or child id not found
PUT /reseller/children/{childIdentifier}/accountStatus
/reseller/children/{childIdentifier}/auth
It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
Session token
bad request
Current account is not a reseller
Child auth key or child id not found
GET /reseller/children/{childIdentifier}/auth
/reseller/children/{childIdentifier}/credits/add
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
Values to post to add credit to a specific child account
application/json
addCredits
| Property | Type | Required |
|---|---|---|
| sms | integer | optional |
| integer | optional |
Credits added
bad request
Current account is not a reseller
Child auth key or child id not found
POST /reseller/children/{childIdentifier}/credits/add
/reseller/children/{childIdentifier}/credits/remove
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
Values to post to remove email or SMS credits from a specific child account
application/json
removeCredits
| Property | Type | Required |
|---|---|---|
| sms | integer | optional |
| integer | optional |
Credits removed
bad request
Current account is not a reseller
Child auth key or child id not found
POST /reseller/children/{childIdentifier}/credits/remove
/reseller/children/{childIdentifier}/domains
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
Sender domains of the child
bad request
Current account is not a reseller
Child auth key or child id not found
GET /reseller/children/{childIdentifier}/domains