myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

List groups

GET

/api/v1/ext/groups

The WhatsApp and iMessage group chats of a workspace.

Auth: Bearer access_token
Scope: groups.read

A group's id is the key its messages are stored under (conversation_messages.phone): a WhatsApp group JID or an iMessage group key. WhatsApp groups come from *Sync groups*; iMessage groups from the Mac's own chats (sync) or *Create iMessage group*. crm_bridged groups appear in the connected CRM as a contact with crm_phone. Inactive groups (left, or no longer on the line) are left out unless include_inactive=1.

Parameters

NameInTypeRequiredDescription
workspace_id
query
number
yes
A workspace of the installer.
channel
query
enumnoOne channel only.
include_inactive
query
booleanno1 = include groups that were left or retired.

Responses

StatusWhen
200
OK
400
No workspace_id
401
Missing or invalid token
403
Missing scope
404
Workspace does not exist or is not the installer's (same response for both)
Request
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/groups" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
Responses
OK
{
  "success": true,
  "data": [
    {
      "id": "120363000000000001@g.us",
      "channel": "whatsapp",
      "workspace_id": 7,
      "name": "Builders",
      "participant_count": 12,
      "is_active": true,
      "crm_bridged": false,
      "crm_phone": null,
      "last_synced_at": "2026-11-04T00:10:00.000Z",
      "created_at": "2026-10-01T00:00:00.000Z",
      "updated_at": "2026-11-04T00:10:00.000Z",
      "line_number": "+61400000099"
    },
    {
      "id": "imsg_group:7",
      "channel": "imessage",
      "workspace_id": 7,
      "name": "Family",
      "participant_count": 2,
      "is_active": true,
      "crm_bridged": true,
      "crm_phone": "+881700000007",
      "last_synced_at": null,
      "created_at": "2026-10-20T00:00:00.000Z",
      "updated_at": "2026-11-04T00:00:00.000Z",
      "status": "active",
      "source": "dashboard",
      "device_id": "A1B2C3D4-MAC",
      "participants": [
        {
          "handle": "+61412345678",
          "name": "Ann Lee"
        },
        {
          "handle": "bob@icloud.com",
          "name": "Bob"
        }
      ],
      "last_message_at": "2026-11-03T09:00:00.000Z"
    }
  ]
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters

A workspace of the installer.

One channel only.

1 = include groups that were left or retired.

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

« Update conversation state

Next

Get group »