myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Unsend message

POST

/api/v1/ext/messages/{id}/unsend

Unsend an iMessage you sent, within 2 minutes — it disappears from the recipient's conversation.

Auth: Bearer access_token
Scope: messages.write

Unsends a sent iMessage the way the unsend button on the app.mycrmsim.com conversation does. Apple allows unsending within 2 minutes of sending. The message's status becomes unsent afterwards. A recipient on an older iOS / macOS may still keep the original. Rules (the same as the dashboard's): the message must be one you sent, over iMessage (not an SMS fallback), with text, sent through a Mac gateway, and not itself a reaction; the workspace needs a Mac with Advanced Mode on (else 400 NO_ADVANCED_MODE_MAC). The request waits for the Mac (up to 15 s): 422 MAC_REFUSED when Messages refused, 503 MAC_UNREACHABLE when the Mac is offline, 504 MAC_TIMEOUT when it did not answer in time — the change may still land, so read the message again before retrying.

Parameters

NameInTypeRequiredDescription
id
path
number
yes
The id of the message — a List messages or conversation message id, or the message_id from Send message.
workspace_id
body
number
yes
The workspace the message belongs to.

Responses

StatusWhen
200
OK — done on the Mac
400
Outside Apple's window
400
Not an iMessage you sent with text
400
No Mac with Advanced Mode on the workspace
401
Missing or invalid token
403
Missing scope
404
Message not found in this workspace (or not accessible to this token)
422
Messages on the Mac refused the change
503
The Mac that sent the message is not connected
504
The Mac did not answer within 15 s — the change may still land; read the message again
Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/messages/{id}/unsend" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7
}'
Responses
OK — done on the Mac
{
  "success": true,
  "message": "Message unsent",
  "data": {
    "id": 84213,
    "message_id": "84213",
    "channel": "imessage",
    "workspace_id": 7,
    "contact_id": 1234,
    "direction": "outbound",
    "to": "+61412345678",
    "from": null,
    "is_group": false,
    "text": "Booking confirmed for 4 PM.",
    "effect": null,
    "reaction": null,
    "media": null,
    "status": "unsent",
    "error_message": null,
    "created_at": "2026-10-29T09:15:58.000Z",
    "updated_at": "2026-10-29T09:20:03.000Z",
    "edited_at": null
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

The id of the message — a List messages or conversation message `id`, or the `message_id` from Send message.

Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/messages/%7Bid%7D/unsend
Previous

« Edit message

Next

Notify anyway »