For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Help CenterAPI KeysStatusSign In
GuidesAPI ReferenceChangelog
GuidesAPI ReferenceChangelog
  • Introduction
    • Getting started
  • Email API
  • Transactional SMS
  • Transactional WhatsApp
  • Marketing Campaigns
  • Contact Management
  • Events
    • GETGet events
    • POSTCreate an event
    • POSTCreate events in batch
  • Object Management
  • Accounts and Settings
      • GETGet all external feeds
      • POSTCreate external feed
      • GETGet external feed details
      • PUTUpdate external feed
      • DELDelete external feed
  • Sales CRM
  • Conversations
  • Ecommerce
  • Loyalty
LogoLogo
Help CenterAPI KeysStatusSign In
Accounts and SettingsExternal Feeds

Create external feed

POST
https://api.brevo.com/v3/feeds
POST
/v3/feeds
1import { BrevoClient } from "@getbrevo/brevo";
2
3async function main() {
4 const client = new BrevoClient({
5 apiKey: "YOUR_API_KEY_HERE",
6 });
7 await client.externalFeeds.createExternalFeed({
8 name: "Public API Feed",
9 url: "https://jsonplaceholder.typicode.com/posts",
10 authType: "noAuth",
11 maxRetries: 3,
12 cache: true,
13 });
14}
15main();
1{
2 "id": "b1c2d3e4-f5a6-47b8-89c0-d1e2f3a4b5c6"
3}
Creates a new external feed for dynamic content in email campaigns. **Use this to:** - Set up external data sources for dynamic content - Configure authentication for protected feeds - Enable real-time content updates in campaigns - Establish connections to product catalogs, blogs, or APIs **Key information returned:** - Created feed UUID for reference in campaigns - Success confirmation **Important considerations:** - Feed URL must be accessible from Brevo infrastructure - Authentication credentials are securely encrypted - Test feed accessibility before campaign use - Consider feed response time for campaign performance - Monitor feed reliability and uptime - Use caching for frequently accessed feeds - Maximum 5 retry attempts allowed for failed requests - Custom headers support for API integration requirements
Was this page helpful?
Previous

Get external feed details

Next
Built with

Creates a new external feed for dynamic content in email campaigns.

Use this to:

  • Set up external data sources for dynamic content
  • Configure authentication for protected feeds
  • Enable real-time content updates in campaigns
  • Establish connections to product catalogs, blogs, or APIs

Key information returned:

  • Created feed UUID for reference in campaigns
  • Success confirmation

Important considerations:

  • Feed URL must be accessible from Brevo infrastructure
  • Authentication credentials are securely encrypted
  • Test feed accessibility before campaign use
  • Consider feed response time for campaign performance
  • Monitor feed reliability and uptime
  • Use caching for frequently accessed feeds
  • Maximum 5 retry attempts allowed for failed requests
  • Custom headers support for API integration requirements

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Request

External feed configuration
namestringRequired
Name of the feed
urlstringRequiredformat: "url"
URL of the external data source
authTypeenumOptionalDefaults to noAuth
Authentication type for accessing the feed
Allowed values:
usernamestringOptional

Username for basic authentication (required if authType is ‘basic’)

passwordstringOptional

Password for basic authentication (required if authType is ‘basic’)

tokenstringOptional

Token for token-based authentication (required if authType is ‘token’)

maxRetriesintegerOptional1-5Defaults to 5
Maximum number of retry attempts for failed requests
cachebooleanOptionalDefaults to true
Whether to cache the feed response
headerslist of objectsOptional
Custom HTTP headers for the feed request

Response

External feed created successfully
idstringformat: "uuidv4"
UUID of the created feed

Errors

400
Bad Request Error