myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

List messages

GET

/api/v1/ext/messages

List messages across any combination of channels — inbound + outbound — with filtering.

Auth: Bearer access_token
Scope: messages.read

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.

📘 Status and inbound message callbacks — have new SMS and delivery statuses pushed to your app instead of polling

Parameters

NameInTypeRequiredDescription
channel
query
stringnoRestrict 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
numbernoFilter to one workspace. Must belong to the installer.
phone
query
stringnoFilter to messages exchanged with this phone number (E.164), or Apple ID email for iMessage — every channel.
status
query
stringnoSingle 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
numbernoPage number (>= 1). Default 1. Anything else is a 400.
limit
query
numbernoPage size (1-100). Default 25. Anything else is a 400.
sort
query
enumnoSort by created_at — "created_at_asc" or "created_at_desc". Default "created_at_desc".

Responses

StatusWhen
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

messagesobject

Array of messages, normalized across channels

idnumber

The message id. The same id works with Get message status, React to message, and in the conversation thread.

Example:84213
message_idstring

The same id as a string — the `message_id` a Send message response returns.

Example:84213
channelenum

Which channel the message belongs to — "sms" | "whatsapp" | "imessage" | "rcs" | "twilio" | "webchat" | "openvox".

Example:sms
workspace_idnumber

The workspace this message belongs to.

Example:7
contact_idnumber
nullable

The contact the message was sent to / received from. Null for group messages.

Example:1234
directionenum

"outbound" (sent from the workspace) or "inbound" (received).

Example:outbound
tostring
nullable

Outbound: the contact's phone (E.164), or Apple ID email for iMessage. Null for inbound messages.

Example:+15551234567
fromstring
nullable

Inbound: the contact's phone or Apple ID email — in a group, the member who wrote it. Null for outbound messages.

is_groupboolean

True for a message in a group conversation (WhatsApp or iMessage group).

Example:false
textstring (text)
nullable

The message body. May be null when only media was sent.

effectstring
nullable

The 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.

reactionobject
nullable

Set 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}>
nullable

Media attachments, or null when there are none.

statusstring
nullable

queued | webhook_sent | accepted | sent | delivered | read | failed | received | unsent.

error_messagestring
nullable

Why a failed message failed; null otherwise.

created_atstring (ISO 8601)

When the message was created.

updated_atstring (ISO 8601)
nullable

When the message was last updated.

Request
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/messages" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
Responses
OK — interleaved across channels, newest first
{
  "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
    }
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters

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".

Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/messages
Previous

« Delete device

Next

List Send From devices »