Get audience overlap across all newsletters
const url = 'https://api.tryletterhead.com/api/v3/contacts/overlap?api=true';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/contacts/overlap?api=true' \ --header 'Authorization: Bearer <token>'Returns a pairwise newsletter-overlap matrix across your company audience. For every pair of your newsletters it reports how many active subscribers the two share, and the diagonal carries each newsletter’s own active-subscriber total. Counts are deduplicated by email across your audience.
This is a company-level (v3) read. Authenticate with a company API key as a Bearer token.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Set to true.
Responses
Section titled “ Responses ”200 OK
object
object
One entry per newsletter — the matrix diagonal.
object
The newsletter’s channel identifier (slug).
The newsletter’s display name.
The newsletter’s own active-subscriber total.
One entry per newsletter pair — the off-diagonal cells.
object
The two newsletters in the pair, each as { channel, name }.
object
Active subscribers shared by the pair.
Example
{ "items": { "newsletters": [ { "channel": "the-daily", "name": "The Daily", "activeSubscribers": 12400 }, { "channel": "weekend-reads", "name": "Weekend Reads", "activeSubscribers": 8800 }, { "channel": "product-updates", "name": "Product Updates", "activeSubscribers": 5300 } ], "overlaps": [ { "channels": [ { "channel": "the-daily", "name": "The Daily" }, { "channel": "weekend-reads", "name": "Weekend Reads" } ], "sharedActiveSubscribers": 3100 }, { "channels": [ { "channel": "the-daily", "name": "The Daily" }, { "channel": "product-updates", "name": "Product Updates" } ], "sharedActiveSubscribers": 1450 }, { "channels": [ { "channel": "weekend-reads", "name": "Weekend Reads" }, { "channel": "product-updates", "name": "Product Updates" } ], "sharedActiveSubscribers": 920 } ] }, "message": "Newsletter overlap matrix", "total": 1}Still can’t find what you need? Contact support.