Leave group
POST
/api/v1/ext/groups/imessage/{id}/leave
Leave an iMessage group on the Mac.
Auth: Bearer access_token
Scope: groups.write
The Mac leaves the chat in Messages (Advanced Mode); the group becomes status: "left" and inactive. Its past messages stay in the conversation. A group already left is refused.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | The iMessage group key (imsg_group:<n>). |
Responses
| Status | When |
|---|---|
200 | OK |
400 | The Mac could not do it (no Advanced Mode, offline, or Messages refused) |
401 | Missing or invalid token |
403 | Missing scope |
404 | Group does not exist or is not the installer's (same response for both) |
RequestResponses
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/groups/imessage/{id}/leave" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"message": "Left the group",
"data": {
"id": "imsg_group:7",
"channel": "imessage",
"workspace_id": 7,
"name": "Family",
"participant_count": 2,
"is_active": false,
"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": "left",
"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.
Path parameters
The iMessage group key (imsg_group:<n>).
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/groups/imessage/%7Bid%7D/leave
Previous
« Remove participant
Next
Send to group »
