Get your whole audience's engagement over time
const url = 'https://api.tryletterhead.com/api/v3/contacts/engagement-timeline?api=true&dateFrom=example&dateTo=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/contacts/engagement-timeline?api=true&dateFrom=example&dateTo=example' \ --header 'Authorization: Bearer <token>'Returns your whole company audience’s daily unique-engager rates (open / click / click-to-open / bounce) across a date window — the “Everyone” default of the engagement-over-time chart. For a single saved segment’s series, use Get a segment’s engagement over time.
This is a company-level (v3) read. Authenticate with a company API key as a Bearer token.
The result is prepared in the background
The timeline is worked out in the background, so the first request for a date window usually answers 202 Accepted with status: "computing" and no points yet. Repeat the exact same request, with the same query parameters, every few seconds until it answers 200 OK with status: "ready" and the daily points. Once a window has been worked out, asking for it again returns 200 straight away for a while.
items is an object holding status, requestId (the same for every repeat of the same request) and points, not the list of days itself.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Set to true.
Start of the window (inclusive), e.g. 2026-06-01.
End of the window (inclusive). Must be on or after dateFrom.
Restrict the timeline to the given channel identifier (slug).
Responses
Section titled “ Responses ”200 OK. The timeline is ready.
object
object
ready when points holds the timeline.
Identifies this request. Repeating the same request returns the same value.
One entry per day in the window. Rates are percentages.
object
The number of days in points; 0 while computing.
Example
{ "items": { "status": "ready", "requestId": "3f2b8c1e9d7a4b6c8e0f1a2b3c4d5e6f", "points": [ { "date": "2026-06-07", "deliveredContacts": 21400, "uniqueOpeners": 9800, "uniqueClickers": 1220, "bouncedContacts": 68, "openRate": 45.8, "clickRate": 5.7, "clickToOpenRate": 12.4, "bounceRate": 0.3 }, { "date": "2026-06-14", "deliveredContacts": 21650, "uniqueOpeners": 10120, "uniqueClickers": 1340, "bouncedContacts": 54, "openRate": 46.7, "clickRate": 6.2, "clickToOpenRate": 13.2, "bounceRate": 0.2 } ] }, "message": "Audience engagement timeline retrieved.", "total": 2}202 Accepted. The timeline is still being prepared. Repeat the same request until it returns 200.
object
object
computing while the timeline is being prepared.
Identifies this request. Repeating the same request returns the same value.
Empty while computing.
object
The number of days in points; 0 while computing.
Example
{ "items": { "status": "computing", "requestId": "3f2b8c1e9d7a4b6c8e0f1a2b3c4d5e6f", "points": [] }, "message": "Audience engagement timeline is being computed.", "total": 0}Still can’t find what you need? Contact support.