External feeds management
This document provides a descriptive view on the public API reference for the External feed endpoints.
1. Fetch all external feeds
To call this API, you need to request the endpoint https://api.brevo.com/v3/feeds with the GET method. This endpoint performs the function of retrieving all of your created external feeds. You can use the cURL request below:
The attributes used in the cURL request are defined below in a table.
Response
A sample JSON response for the request would be:
Some response codes are defined in the table below:
2. Create an external feed
To create an external feed, you need to call the endpoint https://api.brevo.com/v3/feeds with the POST method. You can use the cURL request below to send a request to the API.
The values and attributes to create a feed are mentioned below in a table:
As headers is an array of objects, it has two more attributes name and value:
Response
When the request is run, the API will send you an id in the response which will be the unique id of the feed. A sample is given below:
The response codes are defined below:
3. Get an external feed by UUID
To send a request, you need to call the endpoint https://api.brevo.com/v3/feeds/{uuid} with the GET method. You can use the cURL request below:
There is only one attribute which is uuid which is a universal identifier for the external feed. It is defined in the table below:
Response
4. Update an external feed
You can use this endpoint https://api.brevo.com/v3/feeds/{uuid} by calling the PUT method to update an external feed. You can use the cURL request below to send the request:
There are two types of parameters to update a field path params and body params which are mentioned below:
Path params
Body params
As headers is an array of objects, it contains two objects which are:
Response
A sample response would show no message but with a 204 response code which shows that the external feed has been updated. Below some of the response codes and their descriptions are mentioned:
5. Delete an external feed
To delete a feed, you can call the endpoint https://api.brevo.com/v3/feeds/{uuid} with the DELETE method. For the deletion, you can make use of the cURL request below.
Only uuid is used as an attribute and it is defined below.
Response
A sample JSON response would show nothing with the response code 200 which shows that the feed has been deleted.
Response codes for this endpoint are mentioned in the table.