Get line health
How one of your lines is doing, what to do about it, and the last seven days
Use this to see a slow-down coming before it happens. An iMessage line is
graded on two axes: load, what it sends before anyone reacts (new
conversations, sends per day and per hour, people reached), and quality, how
recipients and Apple react (delivered share, sends with no known result, reply
rate, opt-outs). Every measure is published beside its limit, so a reading such
as "38 of 50 new chats" is one you can act on before the status moves. A line
not on iMessage answers reputation: null.
A cold conversation is one your line opens with someone who has not written to it; a warm one is one where they have written.
The status is the worse of the two axes:
| Status | What to do |
|---|---|
HEALTHY | Send normally. |
AT_RISK | Open fewer cold conversations, and keep replying. |
CRITICAL | Stop opening cold conversations. Replies and warm ones are fine. |
FLAGGED | Rest the line, and use another line for new conversations. |
actionItems says what to do in words, most important first. A reading is
taken about every 15 minutes. GET /v1/whoami carries each
line's status in a word under lines[].reputation; this route is the full
reading. Find the lineId in whoami under lines[].id, or in the console
under Channels › iMessage.
GET /v1/lines/{lineId}/reputation is deprecated. It returns the same answer,
and the two routes share one budget: 60 requests a minute, per key — see
Rate limits.
curl https://api.mapier.ai/v1/lines/0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d/health \
-H "Authorization: Bearer $MAPIER_API_KEY" \
-H "x-mapier-version: 2026-12-01"Request
Prop
Type
Response
{
"lineId": "0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d",
"reputation": {
"status": "AT_RISK",
"confidence": "ok",
"confidenceReasons": [],
"computedAt": "2026-10-16T14:15:00.000Z",
"policyVersion": "2026-10-15b",
"primaryDriver": {
"axis": "load",
"key": "cold_new_chats_24h",
"summary": "20 of 30 new chats opened by the line in the last 24 hours"
},
"load": {
"status": "AT_RISK",
"components": [
{
"key": "cold_new_chats_24h",
"value": 20,
"limit": 30,
"unit": "count",
"status": "warn",
"note": "New conversations the line opened in 24 hours, new groups included."
}
]
},
"quality": {
"status": "HEALTHY",
"components": [
{
"key": "cold_reply_rate_7d",
"value": 0.29,
"limit": 0.15,
"unit": "share",
"status": "ok"
}
]
},
"chats": {
"active": 186,
"counts": { "HEALTHY": 171, "AT_RISK": 9, "CRITICAL": 2, "OPTED_OUT": 4 }
},
"actionItems": [
{
"key": "pace_new_chats",
"title": "Pace new chats",
"detail": "20 of 30 new chats opened by the line in the last 24 hours. Hold new cold chats until the count falls; replies and warm chats are fine."
}
]
},
"history": [
{ "computedAt": "2026-10-16T14:00:00.000Z", "status": "HEALTHY" },
{ "computedAt": "2026-10-16T14:15:00.000Z", "status": "AT_RISK" }
]
}Prop
Type
reputation
Prop
Type
components[] item
Prop
Type
Errors
| Status | Code | Cause |
|---|---|---|
400 | bad_request | With a personal access token, no x-mapier-project header |
401 | invalid_credentials | No key, or one that is unknown, revoked or expired |
403 | forbidden | A personal access token not made for this environment, or whose owner's role no longer allows this |
403 | insufficient_scope | A personal access token without the lines:read scope |
404 | not_found | No line this key can see has that id: it never existed, or it is another project's |
409 | project_archived | The project is archived |
422 | validation_failed | lineId is not a UUID, or an x-mapier-version the API does not support |
429 | rate_limited | 60 requests per minute, per key, shared with the reputation route; the Retry-After header says how long to wait |
500 | internal_error | Mapier failed on its side; give requestId to support |
503 | service_busy | Mapier is busy and did nothing; wait details.retryAfter seconds and call again |
503 | upstream_unavailable | Mapier could not answer right now; retry with backoff |