Get receipts

Ask what one message's delivery and read receipts say now

GET/v1/messages/{messageId}/receipts

Asks the channel behind a message's line what it can prove about that message now, and answers with what it said. Nothing is stored, and the answer does not change the message's status. For receipts as they happen, open the stream with ?events=receipts.

curl https://api.mapier.ai/v1/messages/0192a7c4-5a31-7bd2-8e6f-1d0c9b8a7f65/receipts \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "x-mapier-version: 2026-12-01"
200 OK
{
  "messageId": "0192a7c4-5a31-7bd2-8e6f-1d0c9b8a7f65",
  "upstreamMessageId": "8C2E4A61-3B7D-4F90-A1C5-6D8E0F2B4A73",
  "delivered": true,
  "read": null,
  "checkedAt": "2026-08-24T18:09:40.000Z",
  "upstreamStatus": "delivered"
}

messageId in the path is Mapier's id for a message this key can read — the messageId a receipt or delivery_failed event carries, or the one a message.* webhook names.

Response

Prop

Type

delivered and read are three-valued. null is "the channel does not know", not "no". A client that writes if (!answer.delivered) reports a delivered message as undelivered the first time the channel answers null.

When there is nothing to ask about

  • 409 conflict with details.reason: "no_command" — the message is real and this key may read it, but it was never handed to a channel, so there are no receipts to ask for. That is every inbound message, and every outbound one whose channel never accepted it.
  • 404 not_found with a details.reason is the channel's answer: not_settled means the channel knows the message and has not finished sending it, so ask again shortly. not_a_send and no_echo_guid mean this message will never have receipts.
  • 404 not_found with no reason is a message this key cannot read, or one the channel does not know.

Errors

StatusCodeCause
400bad_requestThe channel refused the question; details.reason is its own word; or, with 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_foundNo such message for this key, or the channel's not_settled, not_a_send or no_echo_guid (above)
409conflictdetails.reason: "no_command" — the message was never handed to a channel. A channel's own reason may add details.retryAfter: the seconds to wait before asking again
409project_archivedThe project is archived
422validation_failedmessageId is not a UUID, or an x-mapier-version that is not a published version
429rate_limitedMore than 60 reads a minute on this key (Retry-After), the channel's own rate limit (details.retryAfter when it gave a wait), or too many failed authentications from your calling address
500internal_errorAn unexpected error on Mapier's side; quote the error's requestId to support
503line_unavailableThe message's line cannot be asked right now; details.reason says why
503upstream_unavailableThe channel did not answer, or answered with something Mapier could not use
503service_busyMapier was too busy to take the request and did nothing; wait details.retryAfter seconds and ask again

Each call asks the line's channel, so the route has a budget of its own: 60 requests per minute, per key — see Rate limits. To follow receipts as they arrive, open the stream with ?events=receipts instead of asking again and again. Every refusal is the one envelope described in Error codes.

Guide