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
{
"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
| 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 | The key does not carry the lines:write scope |
404 | not_found | A setup this key cannot see, or none |
409 | conflict | The channel's service refused the check for its own reason (details.reason); wait details.retryAfter seconds when it gives one |
409 | project_archived | The project is archived |
422 | validation_failed | An x-mapier-version the API does not support |
429 | rate_limited | Over this route's budget, or checks run again within ten seconds; wait details.retryAfter seconds |
500 | internal_error | Mapier failed on its side; give requestId to support |
503 | line_unavailable | Mapier cannot reach the channel's service right now; details.reason says why |
503 | service_busy | Mapier is busy and did nothing; wait details.retryAfter seconds and call again |
503 | upstream_unavailable | The channel's service did not answer; retry with backoff |