/reseller/children/{childIdentifier}/domains
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
Sender domain to add for a specific child account. This will not be displayed to the parent account.
application/json
addChildDomain
| Property | Type | Required |
|---|---|---|
| domain | string | optional |
Domain added
bad request
Current account is not a reseller
Child auth key or child id not found
POST /reseller/children/{childIdentifier}/domains
/reseller/children/{childIdentifier}/domains/{domainName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
| domainName | path | required | string | Pass the existing domain that needs to be deleted |
child domain deleted
bad request
Current account is not a reseller
Child auth key or child id not found
DELETE /reseller/children/{childIdentifier}/domains/{domainName}
/reseller/children/{childIdentifier}/domains/{domainName}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
| domainName | path | required | string | Pass the existing domain that needs to be updated |
value to update for sender domain
application/json
updateChildDomain
| Property | Type | Required |
|---|---|---|
| domain | string | optional |
reseller’s child domain updated
bad request
Current account is not a reseller
Child auth key or child id not found
PUT /reseller/children/{childIdentifier}/domains/{domainName}
/reseller/children/{childIdentifier}/ips/associate
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
IP to associate
application/json
manageIp
| Property | Type | Required |
|---|---|---|
| ip | string | optional |
Dedicated IP is associated to the child
bad request
Child auth key or child id not found
POST /reseller/children/{childIdentifier}/ips/associate
/reseller/children/{childIdentifier}/ips/dissociate
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| childIdentifier | path | required | string | Either auth key or id of reseller’s child |
IP to dissociate
application/json
manageIp
| Property | Type | Required |
|---|---|---|
| ip | string | optional |
Dedicated IP is dissociated from the child
bad request
Child auth key or child id not found
POST /reseller/children/{childIdentifier}/ips/dissociate
/smsCampaigns
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| status | query | optional | string | Status of campaign. |
| startDate | query | optional | string | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either ‘status’ not passed and if passed is set to ‘sent’ ) |
| endDate | query | optional | string | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either ‘status’ not passed and if passed is set to ‘sent’ ) |
| 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 |
SMS campaigns informations
bad request
GET /smsCampaigns
/smsCampaigns
Values to create an SMS Campaign
application/json
createSmsCampaign
| Property | Type | Required |
|---|---|---|
| name | string | required |
| sender | string | required |
| content | string | required |
| recipients | object | optional |
| └ listIds | array | required |
| └ exclusionListIds | array | optional |
| scheduledAt | string | optional |
| unicodeEnabled | boolean | optional |
| organisationPrefix | string | optional |
| unsubscribeInstruction | string | optional |
bad request
POST /smsCampaigns
/smsCampaigns/{campaignId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | id of the SMS campaign |
SMS campaign has been deleted
bad request
Campaign ID not found
DELETE /smsCampaigns/{campaignId}
/smsCampaigns/{campaignId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | id of the SMS campaign |
SMS campaign informations
bad request
Campaign ID not found
GET /smsCampaigns/{campaignId}
/smsCampaigns/{campaignId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | id of the SMS campaign |
Values to update an SMS Campaign
application/json
updateSmsCampaign
| Property | Type | Required |
|---|---|---|
| name | string | optional |
| sender | string | optional |
| content | string | optional |
| recipients | object | optional |
| └ listIds | array | required |
| └ exclusionListIds | array | optional |
| scheduledAt | string | optional |
| unicodeEnabled | boolean | optional |
| organisationPrefix | string | optional |
| unsubscribeInstruction | string | optional |
SMS campaign updated
bad request
Campaign ID not found
PUT /smsCampaigns/{campaignId}
/smsCampaigns/{campaignId}/exportRecipients
It returns the background process ID which on completion calls the notify URL that you have set in the input.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | id of the campaign |
Values to send for a recipient export request
application/json
requestSmsRecipientExport
| Property | Type | Required |
|---|---|---|
| notifyURL | string | optional |
| recipientsType | string | required |
bad request
Campaign ID not found
POST /smsCampaigns/{campaignId}/exportRecipients
/smsCampaigns/{campaignId}/sendNow
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | id of the campaign |
SMS campaign has been scheduled
SMS Campaign could not be sent
You don’t have enough credit to send your campaign. Please update your plan
Campaign ID not found
POST /smsCampaigns/{campaignId}/sendNow
/smsCampaigns/{campaignId}/sendReport
Send report of Sent and Archived campaign, to the specified email addresses, with respective data and a pdf attachment in detail.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | id of the campaign |
Values for send a report
application/json
sendReport
| Property | Type | Required |
|---|---|---|
| object | required | |
| └ to | array | required |
| └ body | string | required |
| language | string | optional |
Report has been successfully sent to the defined recipients
bad request
Campaign ID not found
POST /smsCampaigns/{campaignId}/sendReport
/smsCampaigns/{campaignId}/sendTest
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | Id of the SMS campaign |
Mobile number of the recipient with the country code. This number must belong to one of your contacts in Brevo account and must not be blacklisted
application/json
sendTestSms
| Property | Type | Required |
|---|---|---|
| phoneNumber | string | optional |
Test SMS has been sent successfully to the recipient
Test SMS could not be sent to the following email addresses
Campaign ID not found
POST /smsCampaigns/{campaignId}/sendTest
/smsCampaigns/{campaignId}/status
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| campaignId | path | required | integer | id of the campaign |
Status of the campaign.
application/json
updateCampaignStatus
| Property | Type | Required |
|---|---|---|
| status | string | optional |
The campaign status has been updated successfully
bad request
Campaign ID not found
PUT /smsCampaigns/{campaignId}/status
/senders
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| ip | query | optional | string | Filter your senders for a specific ip. Available for dedicated IP usage only |
| domain | query | optional | string | Filter your senders for a specific domain |
list of senders
bad request
GET /senders
/senders
sender’s name
application/json
createSender
| Property | Type | Required |
|---|---|---|
| ips | array | optional |
| └ ip | string | required |
| └ domain | string | required |
| └ weight | integer | optional |
| name | string | required |
| string | required |
sender created
bad request
POST /senders
/senders/ips
list of dedicated IPs
GET /senders/ips
/senders/{senderId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| senderId | path | required | integer | Id of the sender |
sender deleted
bad request
Sender ID not found
DELETE /senders/{senderId}
/senders/{senderId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| senderId | path | required | integer | Id of the sender |
sender’s name
application/json
updateSender
| Property | Type | Required |
|---|---|---|
| ips | array | optional |
| └ ip | string | required |
| └ domain | string | required |
| └ weight | integer | optional |
| name | string | optional |
| string | optional |
sender updated
bad request
Sender ID not found
PUT /senders/{senderId}
/senders/{senderId}/ips
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| senderId | path | required | integer | Id of the sender |
list of dedicated IPs
bad request
Sender ID not found
GET /senders/{senderId}/ips
/senders/{senderId}/validate
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| senderId | path | required | integer | Id of the sender |
otp
application/json
otp
| Property | Type | Required |
|---|---|---|
| otp | integer | required |
Sender verified
bad request
Sender ID not found
PUT /senders/{senderId}/validate
/crm/tasks
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| filter[type] | query | optional | string | Filter by task type (ID) |
| filter[status] | query | optional | string | Filter by task status |
| filter[date] | query | optional | string | Filter by date |
| filter[assignTo] | query | optional | string | Filter by the “assignTo” ID. You can utilize account emails for the “assignTo” attribute. |
| filter[contacts] | query | optional | string | Filter by contact ids |
| filter[deals] | query | optional | string | Filter by deals ids |
| filter[companies] | query | optional | string | Filter by companies 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 |
| sortBy | query | optional | string | The field used to sort field names. |
Returns task list with filters
Returned when query params are invalid
GET /crm/tasks
/crm/tasks
Task name.
application/json
TasksCreateNewTaskRequest
| Property | Type | Required |
|---|---|---|
| date | string | required |
| done | boolean | optional |
| name | string | required |
| notes | string | optional |
| dealsIds | array | optional |
| duration | integer | optional |
| reminder | object | optional |
| └ unit | string | required |
| └ types | array | required |
| └ value | integer | required |
| assignToId | string | optional |
| taskTypeId | string | required |
| contactsIds | array | optional |
| companiesIds | array | optional |
Created new task
Returned when invalid data posted
POST /crm/tasks
/crm/tasks/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | — |
Returned when item deleted
Returned when invalid data posted
Returned when task id is not found
DELETE /crm/tasks/{id}
/crm/tasks/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | — |
Returns the Task by id
Returned when task id is invalid
Returned when item not found
GET /crm/tasks/{id}
/crm/tasks/{id}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| id | path | required | string | — |
Updated task details.
application/json
TasksUpdateTaskRequest
| Property | Type | Required |
|---|---|---|
| date | string | optional |
| done | boolean | optional |
| name | string | optional |
| notes | string | optional |
| dealsIds | array | optional |
| duration | integer | optional |
| reminder | object | optional |
| └ unit | string | required |
| └ types | array | required |
| └ value | integer | required |
| assignToId | string | optional |
| taskTypeId | string | optional |
| contactsIds | array | optional |
| companiesIds | array | optional |
Task updated succussfully
Returned when invalid data posted
Returned when task id is not found
PATCH /crm/tasks/{id}
/crm/tasktypes
Returns all the Task types
GET /crm/tasktypes
/smtp/blockedContacts
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| startDate | query | optional | string | Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts |
| endDate | query | optional | string | Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts |
| limit | query | optional | integer | Number of documents returned per page |
| offset | query | optional | integer | Index of the first document on the page |
| senders | query | optional | array | Comma separated list of emails of the senders from which contacts are blocked or unsubscribed |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation. Default order is descending if |
List of blocked or unsubscribed transactional contacts
bad request
GET /smtp/blockedContacts
/smtp/blockedContacts/{email}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| path | required | string | contact email (urlencoded) to unblock. |
Contact unblocked
bad request
Contact email not found
DELETE /smtp/blockedContacts/{email}
/smtp/blockedDomains
Get the list of blocked domains
List of blocked domains
GET /smtp/blockedDomains
/smtp/blockedDomains
Blocks a new domain in order to avoid messages being sent to the same
Name of the domain to be blocked
application/json
blockDomain
| Property | Type | Required |
|---|---|---|
| domain | string | required |
Domain is successfully blocked
bad request
POST /smtp/blockedDomains
/smtp/blockedDomains/{domain}
Unblocks an existing domain from the list of blocked domains
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| domain | path | required | string | The name of the domain to be deleted |
Domain is successfully deleted from the list of blocked domains
bad request
Domain not found
DELETE /smtp/blockedDomains/{domain}
/smtp/deleteHardbounces
Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures)
values to delete hardbounces
application/json
deleteHardbounces
| Property | Type | Required |
|---|---|---|
| endDate | string | optional |
| startDate | string | optional |
| contactEmail | string | optional |
Hardbounces deleted
bad request
POST /smtp/deleteHardbounces
/smtp/email
Values to send a transactional email
application/json
sendSmtpEmail
| Property | Type | Required |
|---|---|---|
| cc | array | optional |
| └ name | string | optional |
| string | required | |
| to | array | optional |
| └ name | string | optional |
| string | required | |
| bcc | array | optional |
| └ name | string | optional |
| string | required | |
| tags | array | optional |
| params | object | optional |
| sender | object | optional |
| └ id | integer | optional |
| └ name | string | optional |
| string | optional | |
| batchId | string | optional |
| headers | object | optional |
| replyTo | object | optional |
| └ name | string | optional |
| string | required | |
| subject | string | optional |
| attachment | array | optional |
| └ url | string | optional |
| └ name | string | optional |
| └ content | string | optional |
| templateId | integer | optional |
| htmlContent | string | optional |
| scheduledAt | string | optional |
| textContent | string | optional |
| messageVersions | array | optional |
| └ cc | array | optional |
| └ name | string | optional |
| string | required | |
| └ to | array | required |
| └ name | string | optional |
| string | required | |
| └ bcc | array | optional |
| └ name | string | optional |
| string | required | |
| └ params | object | optional |
| └ replyTo | object | optional |
| └ name | string | optional |
| string | required | |
| └ subject | string | optional |
| └ htmlContent | string | optional |
| └ textContent | string | optional |
transactional email sent
transactional email scheduled
bad request
POST /smtp/email
/smtp/email/{identifier}
Delete scheduled batch of emails by batchId or single scheduled email by messageId
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| identifier | path | required | string | The |
Scheduled email(s) deleted
Invalid parameters passed
Record(s) for identifier not found
DELETE /smtp/email/{identifier}
/smtp/emailStatus/{identifier}
Fetch scheduled batch of emails by batchId or single scheduled email by messageId (Can retrieve data upto 30 days old)
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| identifier | path | required | string | The |
| startDate | query | optional | string | Mandatory if |
| endDate | query | optional | string | Mandatory if |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation. Default order is descending if |
| status | query | optional | string | Filter the records by |
| limit | query | optional | integer | Number of documents returned per page. Not valid when identifier is |
| offset | query | optional | integer | Index of the first document on the page. Not valid when identifier is |
Scheduled email batches
Invalid parameters passed
Record(s) for identifier not found
GET /smtp/emailStatus/{identifier}
/smtp/emails
This endpoint will show the list of emails for past 30 days by default. To retrieve emails before that time, please pass startDate and endDate in query filters.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| query | optional | string | Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. |
|
| templateId | query | optional | integer | Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. |
| messageId | query | optional | string | Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. |
| startDate | query | optional | string | Mandatory if endDate is used. Starting date (YYYY-MM-DD) 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) till which you want to fetch the list. Maximum time period that can be selected is one month. |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation. Default order is descending if |
| limit | query | optional | integer | Number of documents returned per page |
| offset | query | optional | integer | Index of the first document in the page |
List of transactional emails
bad request
GET /smtp/emails
/smtp/emails/{uuid}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| uuid | path | required | string | Unique id of the transactional email that has been sent to a particular contact |
Transactional email content
GET /smtp/emails/{uuid}
/smtp/log/{identifier}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| identifier | path | required | string | MessageId or Email of the transactional log(s) to delete |
Transactional Logs deleted
bad request
Message ID not found
DELETE /smtp/log/{identifier}
/smtp/statistics/aggregatedReport
This endpoint will show the aggregated stats for past 90 days by default if startDate and endDate OR days is not passed. The date range can not exceed 90 days
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| startDate | query | optional | string | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate |
| endDate | query | optional | string | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate |
| days | query | optional | integer | Number of days in the past including today (positive integer). Not compatible with ‘startDate’ and ‘endDate’ |
| tag | query | optional | string | Tag of the emails |
Aggregated report informations
bad request
GET /smtp/statistics/aggregatedReport
/smtp/statistics/events
This endpoint will show the aggregated stats for past 30 days by default if startDate and endDate OR days is not passed. The date range can not exceed 90 days
| 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. |
| startDate | query | optional | string | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate |
| endDate | query | optional | string | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate |
| days | query | optional | integer | Number of days in the past including today (positive integer). Not compatible with ‘startDate’ and ‘endDate’ |
| query | optional | string | Filter the report for a specific email addresses |
|
| event | query | optional | string | Filter the report for a specific event type |
| tags | query | optional | string | Filter the report for tags (serialized and urlencoded array) |
| messageId | query | optional | string | Filter on a specific message id |
| templateId | query | optional | integer | Filter on a specific template id |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation. Default order is descending if |
Email events report informations
bad request
GET /smtp/statistics/events
/smtp/statistics/reports
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| limit | query | optional | integer | Number of documents returned per page |
| offset | query | optional | integer | Index of the first document on the page |
| startDate | query | optional | string | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) |
| endDate | query | optional | string | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) |
| days | query | optional | integer | Number of days in the past including today (positive integer). Not compatible with ‘startDate’ and ‘endDate’ |
| tag | query | optional | string | Tag of the emails |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation. Default order is descending if |
Aggregated report informations
bad request
GET /smtp/statistics/reports
/smtp/templates
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| templateStatus | query | optional | boolean | Filter on the status of the template. Active = true, inactive = false |
| limit | query | optional | integer | Number of documents returned per page |
| offset | query | optional | integer | Index of the first document in the page |
| sort | query | optional | string | Sort the results in the ascending/descending order of record creation. Default order is descending if |
transactional email templates informations
bad request
GET /smtp/templates
/smtp/templates
values to update in transactional email template
application/json
createSmtpTemplate
| Property | Type | Required |
|---|---|---|
| tag | string | optional |
| sender | object | required |
| └ id | integer | optional |
| └ name | string | optional |
| string | optional | |
| htmlUrl | string | optional |
| replyTo | string | optional |
| subject | string | required |
| toField | string | optional |
| isActive | boolean | optional |
| htmlContent | string | optional |
| templateName | string | required |
| attachmentUrl | string | optional |
bad request
POST /smtp/templates
/smtp/templates/{templateId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| templateId | path | required | integer | id of the template |
Inactive transactional email template has been deleted
bad request
Template ID not found
DELETE /smtp/templates/{templateId}
/smtp/templates/{templateId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| templateId | path | required | integer | id of the template |
Email template informations
bad request
Template ID not found
GET /smtp/templates/{templateId}
/smtp/templates/{templateId}
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| templateId | path | required | integer | id of the template |
values to update in transactional email template
application/json
updateSmtpTemplate
| Property | Type | Required |
|---|---|---|
| tag | string | optional |
| sender | object | optional |
| └ id | integer | optional |
| └ name | string | optional |
| string | optional | |
| htmlUrl | string | optional |
| replyTo | string | optional |
| subject | string | optional |
| toField | string | optional |
| isActive | boolean | optional |
| htmlContent | string | optional |
| templateName | string | optional |
| attachmentUrl | string | optional |
transactional email template updated
bad request
Template ID not found
PUT /smtp/templates/{templateId}
/smtp/templates/{templateId}/sendTest
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| templateId | path | required | integer | Id of the template |
application/json
sendTestEmail
| Property | Type | Required |
|---|---|---|
| emailTo | array | optional |
Test email has been sent successfully to all recipients
Test email could not be sent to the following email addresses
Template ID not found
POST /smtp/templates/{templateId}/sendTest
/transactionalSMS/sms
Values to send a transactional SMS
application/json
sendTransacSms
| Property | Type | Required |
|---|---|---|
| tag | string | optional |
| type | string | optional |
| sender | string | required |
| webUrl | string | optional |
| content | string | required |
| recipient | string | required |
| unicodeEnabled | boolean | optional |
| organisationPrefix | string | optional |
SMS has been sent successfully to the recipient
bad request
You don’t have enough credit to send your SMS. Please update your plan
POST /transactionalSMS/sms