List conversations
Every conversation your key can read, newest first
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"{
"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
| 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 |
403 | line_not_allowed | A lineId that is not one of this key's lines |
404 | not_found | With a personal access token, an x-mapier-project it cannot reach |
409 | project_archived | The project is archived |
422 | validation_failed | A parameter outside the values above, or an x-mapier-version that is not a published version |
429 | rate_limited | Over 120 requests a minute for this key, shared with the conversation and history reads — see Rate limits |
500 | internal_error | An unexpected error on Mapier's side; quote the error's requestId to support |
503 | service_busy | Mapier was too busy to take the request and did nothing; wait details.retryAfter seconds and ask again |
503 | upstream_unavailable | A service behind Mapier did not answer; retry with backoff |