Get a conversation

One conversation as it stands, with a group's name and members or the person it is with

GET/v1/conversations/{conversationId}

One conversation as Mapier knows it. For a group: its name, its members, and whether your line can still reach it. For a direct conversation: the person it is with. Read it when conversation.created names a group, and whenever you need a group's members, which no event carries in full.

curl "https://api.mapier.ai/v1/conversations/a0000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "x-mapier-version: 2026-12-01"
200 OK
{
  "conversationId": "a0000000-0000-4000-8000-000000000001",
  "channel": "imessage",
  "lineId": "0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d",
  "kind": "group",
  "title": "Trip to Lisbon",
  "status": "active",
  "statusReason": null,
  "peerAddress": null,
  "participants": [
    {
      "address": "+14155550100",
      "contactId": "0192a7c0-4444-7555-8666-777788889999",
      "displayName": null
    },
    { "address": "sam@icloud.com", "contactId": null, "displayName": null }
  ],
  "createdAt": "2026-10-18T17:55:02.000Z",
  "lastMessageAt": "2026-10-18T18:03:11.000Z"
}

Parameters

Prop

Type

A conversationId comes from message events, command results, the conversation.created event and GET /v1/conversations, which lists a line's conversations.

Response

Prop

Type

A group's status

A group is active while your line can reach it, and closed once it cannot. statusReason says why:

statusReasonWhat happened
removedYour line is no longer in the group: it was removed, or a send found the group out of reach
deletedThe channel deleted the group
archivedThe group was archived
suspendedThe channel suspended the group

A group closed as deleted, archived or suspended keeps that reason when your line is then removed or a send finds the group out of reach. A group closed as removed changes to deleted, archived or suspended if one of those happens later. The reason can change while the group stays closed, with no new conversation.status_changed: statusReason here is the current one.

A closed group is active again once your line is added back, the group is unarchived, the suspension is lifted, or a new message arrives in it. conversation.status_changed announces each move, and a send into a closed group is 409 conversation_closed. A direct conversation is always active.

On iMessage a group closes as removed when your line's group.leave ends succeeded. iMessage does not tell your line when someone else removes it, so the group stays active and a send into it ends failed. See Groups.

Which members are listed

participants is the group's membership as Mapier knows it, your line excluded. On iMessage that is every member. Where a channel does not report a group's whole membership, it is the people who have joined or written since your line was in the group. conversation.updated announces each change to the list and to title. See Conversation events.

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 conversation this key cannot read — another project's — the same answer a made-up id gets
409project_archivedThe project is archived
422validation_failedA conversationId that is not a UUID, or an x-mapier-version that is not a published version
429rate_limitedOver 120 requests a minute for this key, shared with the list and history reads — see Rate limits
500internal_errorAn unexpected error on Mapier's side; quote the error's requestId to support
503service_busyMapier was too busy to take the request and did nothing; wait details.retryAfter seconds and ask again
503upstream_unavailableA service behind Mapier did not answer; retry with backoff

Guide