Each automation and recipe: started, finished, stopped and why, messages and replies
const url = 'https://api.threadkite.app/v1/reports/automations?preset=today&granularity=day&inboxType=sales&sourceCategory=website&channel=email&trafficChannel=paid_search&touch=first';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.threadkite.app/v1/reports/automations?preset=today&granularity=day&inboxType=sales&sourceCategory=website&channel=email&trafficChannel=paid_search&touch=first' \ --header 'Authorization: Bearer <token>'Contacts who started in the range, in threads you can see, and what followed (replies, appointments, sales). Part of Pro.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Date range in your organisation’s time zone. Defaults to 30d (the last 30 days, today included); custom needs from and to. Dates without a preset are custom.
Date range in your organisation’s time zone. Defaults to 30d (the last 30 days, today included); custom needs from and to. Dates without a preset are custom.
First day (custom ranges), YYYY-MM-DD
First day (custom ranges), YYYY-MM-DD
Last day, included (custom ranges)
Last day, included (custom ranges)
Group charts over time by day or week. Defaults to days up to 62 days, else weeks
Group charts over time by day or week. Defaults to days up to 62 days, else weeks
Only this inbox (one you can see)
Only this inbox (one you can see)
Only inboxes of this type
Only inboxes of this type
Only leads at this location
Only leads at this location
Only leads from this source
Only leads from this source
Only sources of this kind
Only sources of this kind
Only threads this person owns, or unassigned for threads nobody owns
Only threads this person owns, or unassigned for threads nobody owns
Only leads on this channel
Only leads on this channel
Only leads from this campaign
Only leads from this campaign
Only leads whose visit came this way (paid search, email…)
Only leads whose visit came this way (paid search, email…)
Sales, funnel and campaigns reports: credit each sale to the first lead in the look-back (first) or the latest before the sale (last, the default). Source, source type, channel, campaign and traffic channel filters then apply to that lead.
Sales, funnel and campaigns reports: credit each sale to the first lead in the look-back (first) or the latest before the sale (last, the default). Source, source type, channel, campaign and traffic channel filters then apply to that lead.
Responses
Section titled “Responses”object
object
Your organisation’s time zone
The period compared against
object
The Free plan’s basic reports: only leads by source and first response times are filled in; other breakdowns are empty
object
Contacts who started in the range
Still going
Contacts who wrote back after one of its messages
Replies out of contacts who started (0 to 1)
Contacts with an appointment booked after they started
Contacts who bought after they started
Most started first
object
Contacts who started in the range
Still going
Contacts who wrote back after one of its messages
Replies out of contacts who started (0 to 1)
Contacts with an appointment booked after they started
Contacts who bought after they started
Null: every inbox
Deleted since (its runs still count)
object
Per recipe, across inboxes
object
Contacts who started in the range
Still going
Contacts who wrote back after one of its messages
Replies out of contacts who started (0 to 1)
Contacts with an appointment booked after they started
Contacts who bought after they started
Automations made from it (across inboxes)
Bulk messages that started sending in the period, in inboxes you can see
object
Kept from it (no consent, opted out, frequency cap…)
Recipients who replied
Replied ÷ sent
Example
{ "range": { "from": "2026-09-06", "to": "2026-10-05", "days": 30, "preset": "today", "timeZone": "Europe/London", "granularity": "day", "previous": { "from": "2026-09-06", "to": "2026-10-05", "days": 30 } }, "flows": [ { "name": "New lead follow-up", "recipeKey": "out_of_hours_reply", "status": "draft", "exitReasons": [ { "reason": "contact_replied", "label": "They replied" } ] } ], "recipes": [ { "recipeKey": "out_of_hours_reply", "name": "New lead follow-up" } ], "bulkMessages": [ { "channel": "sms" } ]}Unusable dates or filters
object
Stable machine-readable reason
With code invalid: every problem with the request, by field (message is the first)
object
Dotted path inside the item, e.g. attributes.price.amountMinor
Example
{ "statusCode": 403, "code": "forbidden", "message": "You do not have permission to do that.", "errors": [ { "message": "Enter the make" } ]}Missing or invalid API key
object
Stable machine-readable reason
With code invalid: every problem with the request, by field (message is the first)
object
Dotted path inside the item, e.g. attributes.price.amountMinor
Example
{ "statusCode": 403, "code": "forbidden", "message": "You do not have permission to do that.", "errors": [ { "message": "Enter the make" } ]}The organisation is on the Free plan (code upgrade_required)
object
Stable machine-readable reason
The feature that needs Pro
Where to upgrade or pay, in the web app
Example
{ "statusCode": 402, "code": "upgrade_required", "message": "Connections are part of Pro. Upgrade to connect texts, calls and more.", "feature": "extraSeats", "upgradePath": "/settings/billing"}The key does not have the scope (or the person the permission)
object
Stable machine-readable reason
With code invalid: every problem with the request, by field (message is the first)
object
Dotted path inside the item, e.g. attributes.price.amountMinor
Example
{ "statusCode": 403, "code": "forbidden", "message": "You do not have permission to do that.", "errors": [ { "message": "Enter the make" } ]}Rate limit reached
object
Stable machine-readable reason
Seconds until another request will be accepted
Example
{ "statusCode": 429, "code": "rate_limited", "message": "Too many requests. Each key can make 120 requests a minute; try again in 12 seconds.", "retryAfter": 12}