Skip to main content
GET
Line Health Report
What each number means, with screenshots: Line health guide.
The “Line health” report for one workspace. Use it to answer two questions: where do my texts go? and why is my line at risk?It covers people texted by country and by US state (map data), per-line stats with a status and last night’s Apple lookup check, speed to lead, your most-used first messages, wording and volume signals, and a risk check against the medians of healthy Tuco lines.Scope is the single workspace behind your key or session. The report never returns another workspace’s data. Benchmarks are medians across many lines, never one customer’s numbers.
Part of Analytics. Companion to Analytics Insights.

Authentication

Same as Analytics Insights. Send a Clerk session or an API key:

Query parameters

string
Start of the window. An ISO 8601 timestamp (2026-11-03T00:00:00Z) or a calendar day (2026-11-03). Defaults to 30 days before dateTo.
string
End of the window. ISO timestamp or YYYY-MM-DD. Defaults to now.
string
Limit the report to one Tuco line (24-character ObjectId hex). The line must belong to your workspace.
string
IANA zone used to cut days and hours, for example America/New_York. Defaults to the workspace time zone. tz is accepted as an alias. An unknown zone is ignored and the workspace zone is used.
The window is 30 days by default. It can be at most 92 days. If you ask for more, the report covers the most recent 92 days ending at dateTo and returns window.clamped: true.

Example

Last 30 days, all
One line

Success response (200)

The numbers below are made up. In this example, states adds up to usPeople (352 + 9 unknown = 361), and usPeople matches the US row in countries.
The explainer object in the real response has one sentence for each of people, countries, abroadPct, repliedPct, lines, status, appleLookup, speedToLead, templates, signals, risk, benchmarks and truncated. It is shortened above. A report is small. Typical payloads are under 10 KB. In production measurements the largest workspace took under 2.5 seconds over 92 days.

Caching and load limits

  • Responses are cached for 2 minutes per workspace, line, window and time zone. Calling again within 2 minutes returns the same report.
  • When you leave out dateTo, it is rounded up to the next minute, so repeat calls share one cache entry.
  • At most 3 reports are computed at once per server. A fourth request waits up to 10 seconds, then gets 429 LINE_REPORT_BUSY.

Response fields

Top level

report.window

report.summary and report.countries

report.lines[]

One row per line that had texts or replies in the window, plus any live line that is down or failed last night’s Apple lookup check. Ordered at_risk, watch, offline, healthy, then by sends. At most 100 rows; the rest are counted in moreLines, and idle lines in idleLines. With lineId, that one line is always returned. appleLookup is a nightly check. The line is asked, silently, whether it can see a number that another line proved is on iMessage that day. failed is an early sign of an Apple block for new contacts. A result older than 48 hours is reported as not_run. “Hostile” covers STOP-style opt-outs and replies such as “who is this”, “wrong number” or “spam”. It is a wording match, not a judgement of intent.

report.speedToLead

report.content

report.risk[]

report.benchmarks

Medians across healthy Tuco lines over the last 30 days. Needs at least 10 lines, refreshed daily. null until enough lines qualify. Fields: linesMeasured, computedAt, windowDays, msgsPerDay, newPerDay, abroadPct, notIMessagePct, linkPct, confirmAskPct, deadlinePct, urgencyPct, hostilePct, chasedPct, messagesPerPerson. Each value can be null. maxToOnePerson, nonReplierPct, medianLength and manualPct are optional and may be missing.

report.truncated

true when the window holds more than 150,000 messages. The counts are then empty, so every line reads as quiet or offline. Narrow the range or pass a lineId.

How status and risk levels are decided

A rate is only judged when it rests on enough events. Below that, a risk entry is unknown and a line is not marked for that signal. A value at or above the watch number is watch. At or above the risk number is risk. Chasing. The follow-up rule allows 3 texts to someone who has not replied: the first text and 2 follow-ups. A person texted 4 or more times who has never replied counts as chased. chasedPct and the chasing risk use this definition. “Never” includes replies from before the window. appleLookup in the risk list is risk if any checked line failed, ok if all passed, and unknown if no line has a passed or failed result. Line status uses these rules, in order:
  1. offline: the line is inactive, not fully provisioned, or its health check reports it down.
  2. quiet: no sends and no replies in the window. A failed Apple lookup still makes a quiet line at_risk.
  3. at_risk: the Apple lookup failed, or notIMessagePct, abroadPct or hostilePct reached its risk number.
  4. watch: one of those three reached its watch number.
  5. healthy: none of the above.
Line status looks at the Apple lookup, not_imessage, abroad and hostile. The deadline and chasing checks appear only in the workspace-level risk list. These levels are rules of thumb based on Tuco’s own line data. They are not a guarantee about what Apple will do.

Error responses

Error bodies look like { "error": "...", "code": "INVALID_DATE" }.

Using it from an AI assistant

The Tuco MCP server exposes this endpoint as the get-line-report tool.