Rerun checks

Run every check a line setup can run now, again

POST/v1/line-setups/{setupId}/checks

Runs again every check that can run now, and returns the setup. Use it after the person has fixed what a failed check named. Once per setup every ten seconds; sooner is a 429 with details.retryAfter.

Example request

curl -X POST https://api.mapier.ai/v1/line-setups/0192a7d0-7a8b-7c9d-8eaf-b0c1d2e3f405/checks \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "x-mapier-version: 2026-12-01" \
  -d '{}'

Response

200 OK
{
  "id": "0192a7d0-7a8b-7c9d-8eaf-b0c1d2e3f405",
  "channel": "imessage",
  "method": "operator",
  "purpose": "connect",
  "state": "verifying",
  "checks": {
    "credentials": {
      "state": "pending",
      "detail": "Mapier is attaching a number.",
      "reason": null,
      "retryable": true,
      "checkedAt": null,
      "docUrl": "https://docs.mapier.ai/convo/guides/connect/imessage#request-a-line",
      "fixUrl": null,
      "sub": null
    },
    "webhook": {
      "state": "pending",
      "detail": "Waiting for the line to connect.",
      "reason": null,
      "retryable": true,
      "checkedAt": null,
      "docUrl": "https://docs.mapier.ai/convo/guides/connect/imessage#request-a-line",
      "fixUrl": null,
      "sub": null
    },
    "platform_approval": {
      "state": "n/a",
      "detail": "Not needed.",
      "reason": null,
      "retryable": false,
      "checkedAt": null,
      "docUrl": null,
      "fixUrl": null,
      "sub": null
    },
    "policy_ack": {
      "state": "n/a",
      "detail": "Not needed.",
      "reason": null,
      "retryable": false,
      "checkedAt": null,
      "docUrl": null,
      "fixUrl": null,
      "sub": null
    },
    "inbound_proof": {
      "state": "n/a",
      "detail": "Not needed.",
      "reason": null,
      "retryable": false,
      "checkedAt": null,
      "docUrl": null,
      "fixUrl": null,
      "sub": null
    },
    "outbound_proof": {
      "state": "n/a",
      "detail": "Not needed.",
      "reason": null,
      "retryable": false,
      "checkedAt": null,
      "docUrl": null,
      "fixUrl": null,
      "sub": null
    }
  },
  "nextStep": {
    "kind": "wait",
    "reason": "operator_attaching",
    "etaSeconds": null
  },
  "handoffUrl": null,
  "handoffExpiresAt": null,
  "identity": null,
  "lineId": null,
  "number": null,
  "failureReason": null,
  "createdAt": "2026-10-18T17:02:11.000Z",
  "updatedAt": "2026-10-18T17:02:11.000Z",
  "expiresAt": null
}

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_scopeThe key does not carry the lines:write scope
404not_foundA setup this key cannot see, or none
409conflictThe channel's service refused the check for its own reason (details.reason); wait details.retryAfter seconds when it gives one
409project_archivedThe project is archived
422validation_failedAn x-mapier-version the API does not support
429rate_limitedOver this route's budget, or checks run again within ten seconds; wait details.retryAfter seconds
500internal_errorMapier failed on its side; give requestId to support
503line_unavailableMapier cannot reach the channel's service right now; details.reason says why
503service_busyMapier is busy and did nothing; wait details.retryAfter seconds and call again
503upstream_unavailableThe channel's service did not answer; retry with backoff

Guide