All URIs are relative to https://api.brevo.com/v3
| Method | HTTP request | Description |
|---|---|---|
| createExternalFeed | POST /feeds | Create an external feed |
| deleteExternalFeed | DELETE /feeds/{uuid} | Delete an external feed |
| getAllExternalFeeds | GET /feeds | Fetch all external feeds |
| getExternalFeedByUUID | GET /feeds/{uuid} | Get an external feed by UUID |
| updateExternalFeed | PUT /feeds/{uuid} | Update an external feed |
InlineResponse2015 createExternalFeed(createExternalFeed)
Create an external feed
This endpoint will create an external feed.
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.ExternalFeedsApi;
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");
ExternalFeedsApi apiInstance = new ExternalFeedsApi();
CreateExternalFeed createExternalFeed = new CreateExternalFeed(); // CreateExternalFeed | Values to create a feed
try {
InlineResponse2015 result = apiInstance.createExternalFeed(createExternalFeed);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalFeedsApi#createExternalFeed");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| createExternalFeed | CreateExternalFeed | Values to create a feed |
- Content-Type: application/json
- Accept: application/json
deleteExternalFeed(uuid)
Delete an external feed
This endpoint will delete an external feed.
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.ExternalFeedsApi;
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");
ExternalFeedsApi apiInstance = new ExternalFeedsApi();
String uuid = "uuid_example"; // String | UUID of the feed to delete
try {
apiInstance.deleteExternalFeed(uuid);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalFeedsApi#deleteExternalFeed");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| uuid | String | UUID of the feed to delete |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
GetAllExternalFeeds getAllExternalFeeds(search, startDate, endDate, sort, authType, limit, offset)
Fetch all external feeds
This endpoint can fetch all created external feeds.
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.ExternalFeedsApi;
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");
ExternalFeedsApi apiInstance = new ExternalFeedsApi();
String search = "search_example"; // String | Can be used to filter records by search keyword on feed name
LocalDate startDate = LocalDate.now(); // LocalDate | Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date.
LocalDate endDate = LocalDate.now(); // LocalDate | 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.
String sort = "desc"; // String | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed.
String authType = "authType_example"; // String | Filter the records by `authType` of the feed.
Long limit = 50L; // Long | Number of documents returned per page.
Long offset = 0L; // Long | Index of the first document on the page.
try {
GetAllExternalFeeds result = apiInstance.getAllExternalFeeds(search, startDate, endDate, sort, authType, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalFeedsApi#getAllExternalFeeds");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| search | String | Can be used to filter records by search keyword on feed name | [optional] |
| startDate | LocalDate | Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date. | [optional] |
| endDate | LocalDate | 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. | [optional] |
| sort | String | Sort the results in the ascending/descending order of record creation. Default order is descending if `sort` is not passed. | [optional] [default to desc] [enum: asc, desc] |
| authType | String | Filter the records by `authType` of the feed. | [optional] [enum: basic, token, noAuth] |
| limit | Long | Number of documents returned per page. | [optional] [default to 50] |
| offset | Long | Index of the first document on the page. | [optional] [default to 0] |
- Content-Type: application/json
- Accept: application/json
GetExternalFeedByUUID getExternalFeedByUUID(uuid)
Get an external feed by UUID
This endpoint will update an external feed.
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.ExternalFeedsApi;
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");
ExternalFeedsApi apiInstance = new ExternalFeedsApi();
String uuid = "uuid_example"; // String | UUID of the feed to fetch
try {
GetExternalFeedByUUID result = apiInstance.getExternalFeedByUUID(uuid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalFeedsApi#getExternalFeedByUUID");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| uuid | String | UUID of the feed to fetch |
- Content-Type: application/json
- Accept: application/json
updateExternalFeed(uuid, updateExternalFeed)
Update an external feed
This endpoint will update an external feed.
// Import classes:
//import brevo.ApiClient;
//import brevo.ApiException;
//import brevo.Configuration;
//import brevo.auth.*;
//import brevoApi.ExternalFeedsApi;
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");
ExternalFeedsApi apiInstance = new ExternalFeedsApi();
String uuid = "uuid_example"; // String | UUID of the feed to update
UpdateExternalFeed updateExternalFeed = new UpdateExternalFeed(); // UpdateExternalFeed | Values to update a feed
try {
apiInstance.updateExternalFeed(uuid, updateExternalFeed);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalFeedsApi#updateExternalFeed");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| uuid | String | UUID of the feed to update | |
| updateExternalFeed | UpdateExternalFeed | Values to update a feed |
null (empty response body)
- Content-Type: application/json
- Accept: application/json