Get line health

How one of your lines is doing, what to do about it, and the last seven days

GET/v1/lines/{lineId}/health

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:

StatusWhat to do
HEALTHYSend normally.
AT_RISKOpen fewer cold conversations, and keep replying.
CRITICALStop opening cold conversations. Replies and warm ones are fine.
FLAGGEDRest 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

200 OK (one measure per axis shown)
{
  "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

StatusCodeCause
400bad_requestWith a personal access token, no x-mapier-project header
401invalid_credentialsNo key, or one that is unknown, revoked or expired
403forbiddenA personal access token not made for this environment, or whose owner's role no longer allows this
403insufficient_scopeA personal access token without the lines:read scope
404not_foundNo line this key can see has that id: it never existed, or it is another project's
409project_archivedThe project is archived
422validation_failedlineId is not a UUID, or an x-mapier-version the API does not support
429rate_limited60 requests per minute, per key, shared with the reputation route; the Retry-After header says how long to wait
500internal_errorMapier failed on its side; give requestId to support
503service_busyMapier is busy and did nothing; wait details.retryAfter seconds and call again
503upstream_unavailableMapier could not answer right now; retry with backoff

Guide