myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Sync groups

POST

/api/v1/ext/groups/sync

Refresh a workspace's groups from its line.

Auth: Bearer access_token
Scope: groups.write

whatsapp: reads the groups from the connected WhatsApp line now and updates the list in this call (groups the line is no longer in are retired). imessage: asks the workspace's Macs to report their group chats; they answer in the background, so list again shortly after.

Parameters

NameInTypeRequiredDescription
workspace_id
body
number
yes
A workspace of the installer.
channel
body
enum
yes
Which line to sync.

Responses

StatusWhen
202
WhatsApp: done
202
iMessage: asked
400
No ready line for that channel
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 POST "https://backend.mysmsgateway.app/api/v1/ext/groups/sync" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "channel": "whatsapp"
}'
Responses
WhatsApp: done
{
  "success": true,
  "message": "Groups synced",
  "data": {
    "channel": "whatsapp",
    "synced": 12,
    "retired": 1,
    "connections": 1,
    "errors": []
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/groups/sync
Previous

« Create iMessage group

Next

Update group »