List newsletter links across a set of a channel's editions
const url = 'https://api.tryletterhead.com/api/v3/channels/example/newsletter-links?api=true&mode=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tryletterhead.com/api/v3/channels/example/newsletter-links?api=true&mode=example' \ --header 'Authorization: Bearer <token>'Return the distinct enriched links found across a set of this channel’s published editions —
either the last numberOfEmails published (mode=recently_published) or a specific list of
editions (mode=specific_emails). Built for the automation click-link picker, so results are
deduplicated across the whole selection in a single request.
An edition contributes nothing here until Letterhead’s link-enrichment pipeline has crawled it, so a very recently published edition may not yet appear.
v3 endpoints expect a company API key.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The newsletter’s channel identifier (slug).
Query Parameters
Section titled “Query Parameters ”Required. Set to true.
recently_published or specific_emails.
Required when mode=recently_published. 1-50.
Required when mode=specific_emails. 1-64 letter uniqueIds.
Responses
Section titled “ Responses ”200 OK
object
object
Example
{ "items": [ { "urlMd5": "5d41402abc4b2a76b9719d911017c592", "url": "https://example.com/an-article", "title": "An Example Article" } ], "message": "Newsletter links retrieved.", "total": 1}400 Validation Error — mode is missing/invalid, or the field its value requires (numberOfEmails or newsletterIds) is missing or out of range.
object
object
Example
{ "data": [ "The mode field is required." ], "items": [], "message": "Looks like the input data doesn't meet our requirements.", "total": 0}404 Not Found — no channel matches channel for this company.
object
object
object
Example
{ "data": [], "items": [], "message": "Channel not found", "total": 0}Still can’t find what you need? Contact support.