myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Edit message

POST

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

Edit the text of an iMessage you sent, within 15 minutes — the recipient sees it as edited.

Auth: Bearer access_token
Scope: messages.write

Edits a sent iMessage the way the edit button on the app.mycrmsim.com conversation does: the Mac that sent it edits it in Messages, and the recipient sees the new text marked Edited. Apple allows edits within 15 minutes of sending (and up to five edits). Send the new body in message. If the message was sent with an effect, a subject or as a threaded reply, those stay as they were; only the body changes. The edited text is what message reads return afterwards. 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.
message
body
string (text)
yes
The new text. text is accepted as an alias.

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}/edit" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "message": "Booking confirmed for 5 PM."
}'
Responses
OK — done on the Mac
{
  "success": true,
  "message": "Message edited",
  "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 5 PM.",
    "effect": null,
    "reaction": null,
    "media": null,
    "status": "delivered",
    "error_message": null,
    "created_at": "2026-10-29T09:15:58.000Z",
    "updated_at": "2026-10-29T09:20:03.000Z",
    "edited_at": "2026-10-29T09:20:03.000Z"
  }
}
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/edit
Previous

« React to message

Next

Unsend message »