List messages
/api/v1/ext/messages
List messages across any combination of channels — inbound + outbound — with filtering.
Returns the messages in the installer's workspaces, every channel in one list, from the same conversation records the app.mycrmsim.com Conversations page shows. All filters are optional and combine with AND semantics.
One id everywhere. A row's id (and message_id, the same value as a string) is the message id the other message endpoints take: GET /messages/{id} for its status, POST /messages/{id}/reactions to react to it, and the id in the conversation thread. That holds for inbound messages too.
Order. One list across channels, ordered by created_at (newest first by default). breakdown counts the matching messages per channel; total is their sum.
Without workspace_id, every workspace the installer owns is listed.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| channel | query | string | no | Restrict to one or more channels. Single value or comma-separated subset of "sms", "whatsapp", "imessage", "rcs", "twilio", "webchat", "openvox". Omit for all. |
| workspace_id | query | number | no | Filter to one workspace. Must belong to the installer. |
| phone | query | string | no | Filter to messages exchanged with this phone number (E.164), or Apple ID email for iMessage — every channel. |
| status | query | string | no | Single value or comma-separated list of statuses. Case-insensitive — ?status=Sent, ?status=SENT and ?status=sent all match. Values: "queued", "webhook_sent", "accepted", "sent", "delivered", "read", "failed", "received", "unsent". |
| page | query | number | no | Page number (>= 1). Default 1. Anything else is a 400. |
| limit | query | number | no | Page size (1-100). Default 25. Anything else is a 400. |
| sort | query | enum | no | Sort by created_at — "created_at_asc" or "created_at_desc". Default "created_at_desc". |
Responses
| Status | When |
|---|---|
200 | OK — interleaved across channels, newest first |
400 | Validation — unknown channel value |
400 | Validation — bad sort key |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id is not accessible to this token |
500 | Unexpected server error |
Response schema
messagesobjectArray of messages, normalized across channels
idnumberThe message id. The same id works with Get message status, React to message, and in the conversation thread.
84213message_idstringThe same id as a string — the `message_id` a Send message response returns.
84213channelenumWhich channel the message belongs to — "sms" | "whatsapp" | "imessage" | "rcs" | "twilio" | "webchat" | "openvox".
smsworkspace_idnumberThe workspace this message belongs to.
7contact_idnumberThe contact the message was sent to / received from. Null for group messages.
1234directionenum"outbound" (sent from the workspace) or "inbound" (received).
outboundtostringOutbound: the contact's phone (E.164), or Apple ID email for iMessage. Null for inbound messages.
+15551234567fromstringInbound: the contact's phone or Apple ID email — in a group, the member who wrote it. Null for outbound messages.
is_groupbooleanTrue for a message in a group conversation (WhatsApp or iMessage group).
falsetextstring (text)The message body. May be null when only media was sent.
effectstringThe iMessage send effect on the message (either direction), e.g. "confetti" or "slam"; null when there is none. The text then starts with a "✦ Effect: <name>" line.
reactionobjectSet when the message is an iMessage reaction (tapback) to another message, in either direction: { kind, emoji, snippet }. `kind` is love | like | dislike | laugh | emphasize | question, or "emoji" for a custom-emoji reaction from a contact; `snippet` is the start of the message reacted to. Null for any other message. The text is the reaction line, e.g. "❤️ Loved: “See you at 5?”".
mediaarray<{url,type}>Media attachments, or null when there are none.
statusstringqueued | webhook_sent | accepted | sent | delivered | read | failed | received | unsent.
error_messagestringWhy a failed message failed; null otherwise.
created_atstring (ISO 8601)When the message was created.
updated_atstring (ISO 8601)When the message was last updated.
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/messages" \
-H "Authorization: Bearer <ACCESS_TOKEN>"{
"success": true,
"data": {
"messages": [
{
"id": 84220,
"message_id": "84220",
"channel": "imessage",
"workspace_id": 7,
"contact_id": 1234,
"direction": "inbound",
"to": null,
"from": "+15551234567",
"is_group": false,
"text": "❤️ Loved: “Here is the brochure.”",
"effect": null,
"reaction": {
"kind": "love",
"emoji": "❤️",
"snippet": "Here is the brochure."
},
"media": null,
"status": "received",
"error_message": null,
"created_at": "2026-06-09T14:24:00.000Z",
"updated_at": "2026-06-09T14:24:00.000Z"
},
{
"id": 84218,
"message_id": "84218",
"channel": "whatsapp",
"workspace_id": 7,
"contact_id": 1234,
"direction": "outbound",
"to": "+15551234567",
"from": null,
"is_group": false,
"text": "Here is the brochure.",
"effect": null,
"reaction": null,
"media": [
{
"url": "https://cdn.example.com/brochure.pdf",
"type": "application/pdf"
}
],
"status": "delivered",
"error_message": null,
"created_at": "2026-06-09T14:23:00.000Z",
"updated_at": "2026-06-09T14:23:05.000Z"
},
{
"id": 84213,
"message_id": "84213",
"channel": "sms",
"workspace_id": 7,
"contact_id": 1234,
"direction": "outbound",
"to": "+15551234567",
"from": null,
"is_group": false,
"text": "Thanks for your enquiry — we open at 09:00.",
"effect": null,
"reaction": null,
"media": null,
"status": "sent",
"error_message": null,
"created_at": "2026-06-09T14:22:07.000Z",
"updated_at": "2026-06-09T14:22:07.000Z"
},
{
"id": 84190,
"message_id": "84190",
"channel": "rcs",
"workspace_id": 7,
"contact_id": 1234,
"direction": "outbound",
"to": "+15551234567",
"from": null,
"is_group": false,
"text": "Booking confirmed for 4 PM.",
"effect": null,
"reaction": null,
"media": null,
"status": "failed",
"error_message": "Device offline",
"created_at": "2026-06-09T14:20:00.000Z",
"updated_at": "2026-06-09T14:20:30.000Z"
}
],
"total": 87,
"page": 1,
"limit": 25,
"breakdown": {
"sms": 32,
"whatsapp": 28,
"imessage": 19,
"rcs": 8
}
}
}Restrict to one or more channels. Single value or comma-separated subset of "sms", "whatsapp", "imessage", "rcs", "twilio", "webchat", "openvox". Omit for all.
Filter to one workspace. Must belong to the installer.
Filter to messages exchanged with this phone number (E.164), or Apple ID email for iMessage — every channel.
Single value or comma-separated list of statuses. **Case-insensitive** — `?status=Sent`, `?status=SENT` and `?status=sent` all match. Values: "queued", "webhook_sent", "accepted", "sent", "delivered", "read", "failed", "received", "unsent".
Page number (>= 1). Default 1. Anything else is a 400.
Page size (1-100). Default 25. Anything else is a 400.
Sort by created_at — "created_at_asc" or "created_at_desc". Default "created_at_desc".
« Delete device
List Send From devices »
