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

200 OK
{
  "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

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 messages:read scope
404not_foundA contact this key cannot see, or none
409project_archivedThe project is archived
422validation_failedAn x-mapier-version the API does not support
429rate_limitedOver this route's budget; 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