All URIs are relative to https://api.brevo.com/v3
| Method | HTTP request | Description |
|---|---|---|
| crmAttributesDealsGet | GET /crm/attributes/deals | Get deal attributes |
| crmAttributesPost | POST /crm/attributes | Create a deal/company attribute |
| crmDealsGet | GET /crm/deals | Get all deals |
| crmDealsIdDelete | DELETE /crm/deals/{id} | Delete a deal |
| crmDealsIdGet | GET /crm/deals/{id} | Get a deal |
| crmDealsIdPatch | PATCH /crm/deals/{id} | Update a deal |
| crmDealsImportPost | POST /crm/deals/import | Import deals(creation and updation) |
| crmDealsLinkUnlinkIdPatch | PATCH /crm/deals/link-unlink/{id} | Link and Unlink a deal with contacts and companies |
| crmDealsPost | POST /crm/deals | Create a deal |
| crmPipelineDetailsAllGet | GET /crm/pipeline/details/all | Get all pipelines |
| crmPipelineDetailsGet | GET /crm/pipeline/details | Get pipeline stages |
| crmPipelineDetailsPipelineIDGet | GET /crm/pipeline/details/{pipelineID} | Get a pipeline |
DealAttributes crmAttributesDealsGet()
Get deal attributes
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
try {
DealAttributes result = apiInstance.crmAttributesDealsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmAttributesDealsGet");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
InlineResponse2004 crmAttributesPost(body)
Create a deal/company attribute
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
Body9 body = new Body9(); // Body9 | Attribute creation data for company
try {
InlineResponse2004 result = apiInstance.crmAttributesPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmAttributesPost");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Body9 | Attribute creation data for company |
- Content-Type: application/json
- Accept: application/json
DealsList crmDealsGet(filtersAttributesDealName, filtersLinkedCompaniesIds, filtersLinkedContactsIds, modifiedSince, createdSince, offset, limit, sort, sortBy)
Get all deals
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
String filtersAttributesDealName = "filtersAttributesDealName_example"; // String | Filter by attributes. If you have a filter for the owner on your end, please send it as filters[attributes.deal_owner] and utilize the account email for the filtering.
String filtersLinkedCompaniesIds = "filtersLinkedCompaniesIds_example"; // String | Filter by linked companies ids
String filtersLinkedContactsIds = "filtersLinkedContactsIds_example"; // String | Filter by linked companies ids
String modifiedSince = "modifiedSince_example"; // String | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
String createdSince = "createdSince_example"; // String | Filter (urlencoded) the contacts created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
Long offset = 789L; // Long | Index of the first document of the page
Long limit = 50L; // Long | Number of documents per page
String sort = "sort_example"; // String | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
String sortBy = "sortBy_example"; // String | The field used to sort field names.
try {
DealsList result = apiInstance.crmDealsGet(filtersAttributesDealName, filtersLinkedCompaniesIds, filtersLinkedContactsIds, modifiedSince, createdSince, offset, limit, sort, sortBy);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmDealsGet");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| filtersAttributesDealName | String | Filter by attributes. If you have a filter for the owner on your end, please send it as filters[attributes.deal_owner] and utilize the account email for the filtering. | [optional] |
| filtersLinkedCompaniesIds | String | Filter by linked companies ids | [optional] |
| filtersLinkedContactsIds | String | Filter by linked companies ids | [optional] |
| modifiedSince | String | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] |
| createdSince | String | Filter (urlencoded) the contacts created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] |
| offset | Long | Index of the first document of the page | [optional] |
| limit | Long | Number of documents per page | [optional] [default to 50] |
| sort | String | Sort the results in the ascending/descending order. Default order is descending by creation if `sort` is not passed | [optional] [enum: asc, desc] |
| sortBy | String | The field used to sort field names. | [optional] |
- Content-Type: application/json
- Accept: application/json
crmDealsIdDelete(id)
Delete a deal
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
String id = "id_example"; // String |
try {
apiInstance.crmDealsIdDelete(id);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmDealsIdDelete");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
Deal crmDealsIdGet(id)
Get a deal
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
String id = "id_example"; // String |
try {
Deal result = apiInstance.crmDealsIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmDealsIdGet");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: application/json
- Accept: application/json
crmDealsIdPatch(id, body)
Update a deal
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
String id = "id_example"; // String |
Body11 body = new Body11(); // Body11 | Updated deal details.
try {
apiInstance.crmDealsIdPatch(id, body);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmDealsIdPatch");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| body | Body11 | Updated deal details. |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
InlineResponse2005 crmDealsImportPost(file, mapping)
Import deals(creation and updation)
Import deals from a CSV file with mapping options.
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
File file = new File("/path/to/file.txt"); // File | The CSV file to upload.The file should have the first row as the mapping attribute. Some default attribute names are (a) deal_id [brevo mongoID to update deals] (b) associated_contact (c) associated_company (f) any other attribute with internal name
String mapping = "mapping_example"; // String | The mapping options in Json format. json { \"link_entities\": true, // Determines whether to link related entities during the import process \"unlink_entities\": false, //Determines whether to unlink related entities during the import process. \"update_existing_records\": true, // Determines whether to update based on deal ID or treat every row as create \"unset_empty_attributes\": false // Determines whether unset a specific attribute during update if values input is blank }
try {
InlineResponse2005 result = apiInstance.crmDealsImportPost(file, mapping);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmDealsImportPost");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The CSV file to upload.The file should have the first row as the mapping attribute. Some default attribute names are (a) deal_id [brevo mongoID to update deals] (b) associated_contact (c) associated_company (f) any other attribute with internal name | |
| mapping | String | The mapping options in Json format. json { "link_entities": true, // Determines whether to link related entities during the import process "unlink_entities": false, //Determines whether to unlink related entities during the import process. "update_existing_records": true, // Determines whether to update based on deal ID or treat every row as create "unset_empty_attributes": false // Determines whether unset a specific attribute during update if values input is blank } |
- Content-Type: multipart/form-data
- Accept: application/json
crmDealsLinkUnlinkIdPatch(id, body)
Link and Unlink a deal with contacts and companies
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
String id = "id_example"; // String |
Body12 body = new Body12(); // Body12 | Linked / Unlinked contacts and companies ids.
try {
apiInstance.crmDealsLinkUnlinkIdPatch(id, body);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmDealsLinkUnlinkIdPatch");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| body | Body12 | Linked / Unlinked contacts and companies ids. |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
InlineResponse2011 crmDealsPost(body)
Create a deal
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
Body10 body = new Body10(); // Body10 | Deal create data.
try {
InlineResponse2011 result = apiInstance.crmDealsPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmDealsPost");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Body10 | Deal create data. |
- Content-Type: application/json
- Accept: application/json
Pipelines crmPipelineDetailsAllGet()
Get all pipelines
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
try {
Pipelines result = apiInstance.crmPipelineDetailsAllGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmPipelineDetailsAllGet");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
Pipeline crmPipelineDetailsGet()
Get pipeline stages
This endpoint is deprecated. Prefer /crm/pipeline/details/{pipelineID} instead.
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
try {
Pipeline result = apiInstance.crmPipelineDetailsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmPipelineDetailsGet");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
Pipelines crmPipelineDetailsPipelineIDGet(pipelineID)
Get a pipeline
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.DealsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
DealsApi apiInstance = new DealsApi();
String pipelineID = "pipelineID_example"; // String |
try {
Pipelines result = apiInstance.crmPipelineDetailsPipelineIDGet(pipelineID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#crmPipelineDetailsPipelineIDGet");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| pipelineID | String |
- Content-Type: application/json
- Accept: application/json