Get a contact
One address of one person, on one channel
GET/v1/contacts/{contactId}
One address of one person, on one channel: the contactId every message
event carries. optedOut applies to the person on every channel, not to this
address alone. personId leads to the person and their other addresses.
Example request
curl https://api.mapier.ai/v1/contacts/0192a7c0-2222-7333-8444-555566667777 \
-H "Authorization: Bearer $MAPIER_API_KEY" \
-H "x-mapier-version: 2026-12-01"Response
{
"id": "0192a7c0-2222-7333-8444-555566667777",
"channel": "imessage",
"address": "+14155550100",
"addressKind": "e164",
"displayName": "Ada",
"personId": "0192a7c0-1111-7222-8333-444455556666",
"lineId": "0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d",
"optedOut": false,
"firstSeenAt": "2026-10-01T09:12:00.000Z",
"lastInboundAt": "2026-10-18T17:55:00.000Z",
"lastOutboundAt": "2026-10-18T17:56:10.000Z"
}A contact in another project is a 404, the same answer as an id that never
existed.
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 messages:read scope |
404 | not_found | A contact this key cannot see, or none |
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; 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 |