Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Adding data feeds

Edit in CMS

A data feed fills your Content Library from any JSON API — product listings, event schedules, sports scores, headlines, anything an endpoint returns as a list. Connect the API once, tell Letterhead which parts of each item map to a title, a link, and the rest of your curation fields, and its items flow into your library like any other curated content: ready to drop into a newsletter, deduplicated, and refreshed for you on a schedule. It’s the hands-off way to pull a source that isn’t an RSS feed.

  • Check the response shape — the URL must return JSON containing an array of items (for example, a list of products or articles). Open it in a browser and confirm you get back a list, not a single object.
  • Use a secure address — the feed URL must be https://. Letterhead won’t fetch a plain http:// address or one that points at a private or internal network.
  • Have a credential ready if the API needs one — if the endpoint requires authorization to respond, have its bearer token on hand. You’ll paste it once; Letterhead stores it encrypted and never shows it again.
app.tryletterhead.com
  1. Open Resources → Content Library and go to the Data Feeds tab.
  2. Click Add Data Feed.
  3. Enter a Title, a Description and the API’s URL.
  4. Under Authorization, leave None if the API is public, or choose Bearer token and paste the token.
  5. Click Test connection. Letterhead fetches a live sample from the URL and tells you how many items it found. If the fetch fails, fix the URL or token and try again.
  6. Click Add mapping and pick a source field and the curation field it fills. Repeat until Original URL, Title and Excerpt are mapped (see below).
  7. Click Add feed.

Like an RSS feed, a data feed can also carry default Tags, a time span under Automatically Delete Old Curations, and the channels it’s shared with, under Share with Channels.

After you save, Letterhead begins pulling the feed, and its items should start appearing in your library within a few minutes — from then on it refreshes on the same regular schedule as your other feeds.

Map the API’s fields to your curation fields

Section titled “Map the API’s fields to your curation fields”

Mapping is how Letterhead turns one of the API’s items into a curation. For each Letterhead field, pick the part of the item that fills it. You’ll choose from the fields found in the live sample, and each Letterhead field is mapped once.

  • A title, an excerpt, and a link are required (the link is the Original URL field) — the same essentials every curated story needs. Until all three are mapped, Letterhead names the missing ones and won’t save the feed. The link is also how Letterhead recognizes an item it has seen before, so each item needs its own unique URL.
  • An image and your custom curation fields are optional — map them when the feed carries them, leave them unset when it doesn’t.
  • Reach values nested inside an item — when a value lives inside a nested object or a list rather than at the top level, you can still map to it. Letterhead surfaces the first few entries of a list so you can pick one directly (for example, the first image in a gallery); to reach a deeper position, type the path by hand and Letterhead will follow it.

If an item is missing one of the required fields, Letterhead skips just that item and keeps the rest, so one incomplete entry never blocks the feed.

A data feed behaves like an RSS feed once it’s connected:

  • It refreshes automatically on a regular schedule, pulling new items as the API’s data changes.
  • Duplicates are filtered by each item’s link, so re-fetching the same list doesn’t clutter your library.
  • A feed that keeps failing is marked invalid — after repeated errors Letterhead stops checking it and shows the last error, until you revalidate or reset it.

The Data Feeds tab gives you the same two recovery actions as the RSS list, on any feed’s row:

  • Revalidate — a one-click action on a feed that’s gone invalid. It clears the error state and puts the feed back in line to be fetched. Fix the underlying problem first — a wrong URL or an expired token — or the next fetch will just fail again.
  • Reset — does the same thing as Revalidate: clears the feed’s error status and puts it back in line for its next scheduled fetch, rather than fetching it on the spot. That fetch adds every item the API returns that isn’t already in your library, however old; items already there aren’t added twice. Since the two buttons trigger the same check, fix the underlying problem — a wrong URL or an expired token — before trying either one, or the next fetch will just fail again. Letterhead still asks you to confirm before resetting, since it’s easy to click by mistake.

Manage data feeds from a connected AI tool

Section titled “Manage data feeds from a connected AI tool”

If you’ve connected an AI tool such as Claude to Letterhead, you can ask it to look after your data feeds too. It can:

  • List your data feeds, with their field mappings, the newsletters each is shared with, whether it’s healthy and whether it has a saved credential.
  • Fetch a sample from an address, or from a saved data feed using that feed’s own credential, to see the fields you can map.
  • Add a data feed from an address, a title and its field mappings (Original URL, Title and Excerpt are required), shared with the newsletters you name.
  • Change a data feed’s address, title, mappings or newsletters, keeping its saved credential.
  • Delete a data feed after you confirm.

It never handles a credential. Add a data feed that needs a bearer token in the app, as described above. If your access is limited to some newsletters, your AI tool can’t manage data feeds for you.

Still can’t find what you need? Contact support.