List conversations

Every conversation your key can read, newest first

GET/v1/conversations

The conversations your key can read, newest first by when Mapier first saw them: every group conversation a line is in, and every person a line talks to. Use it to find the groups a line is in when your integration starts, or after it was away, instead of waiting for each group's next message.

curl "https://api.mapier.ai/v1/conversations?lineId=0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d&kind=group&limit=2" \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "x-mapier-version: 2026-12-01"
200 OK
{
  "conversations": [
    {
      "conversationId": "a0000000-0000-4000-8000-000000000002",
      "channel": "imessage",
      "lineId": "0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d",
      "kind": "group",
      "title": "Trip to Lisbon",
      "status": "active",
      "statusReason": null,
      "peerAddress": null,
      "participantCount": 4,
      "createdAt": "2026-10-18T17:55:02.000Z",
      "lastMessageAt": "2026-10-18T18:03:11.000Z"
    },
    {
      "conversationId": "a0000000-0000-4000-8000-000000000003",
      "channel": "imessage",
      "lineId": "0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d",
      "kind": "group",
      "title": null,
      "status": "closed",
      "statusReason": "removed",
      "peerAddress": null,
      "participantCount": 2,
      "createdAt": "2026-10-11T09:12:40.000Z",
      "lastMessageAt": "2026-10-12T21:40:05.000Z"
    }
  ],
  "nextCursor": "eyJiZWZvcmUiOiIyMDI2LTEwLTExVDA5OjEyOjQwWiJ9"
}

Parameters

Prop

Type

lineId, kind and status are optional and combine. Page with cursor: pass each answer's nextCursor back until it is null. A cursor is opaque: never build or parse one. Conversations are ordered by when Mapier first saw them, so a page does not shift when a conversation gets a new message.

Response

conversations is one page, newest first, and nextCursor is the cursor for the next, older page, or null on the last. Each item is the conversation as GET /v1/conversations/{conversationId} reads it, with participantCount in place of participants. Read one conversation for a group's members.

Prop

Type

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
403line_not_allowedA lineId that is not one of this key's lines
404not_foundWith a personal access token, an x-mapier-project it cannot reach
409project_archivedThe project is archived
422validation_failedA parameter outside the values above, or an x-mapier-version that is not a published version
429rate_limitedOver 120 requests a minute for this key, shared with the conversation 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