Skip to main content
Edit a text message that you have sent. Messages can only be edited within 15 minutes of sending.
You can only edit messages within 15 minutes of sending them. After this time window, the edit will fail.

Request

message_id
string
required
The unique identifier of the message to edit
X-Device-Id
string
Device identifier for multi-device support. Required when multiple devices are registered. If only one device is registered, it will be used as the default.
phone
string
required
Phone number with country code and WhatsApp suffixExample: [email protected]
message
string
required
The new text content for the messageExample: Hello World

Response

code
string
Response code (e.g., SUCCESS)
message
string
Response message describing the result
results
object
message_id
string
The ID of the edited message
status
string
Status of the edit operation
curl -X POST \
  'https://your-api-domain.com/message/3EB0B430B6F8F1D0E053AC120E0A9E5C/update' \
  -H 'Content-Type: application/json' \
  -H 'X-Device-Id: my-device' \
  -u 'username:password' \
  -d '{
    "phone": "[email protected]",
    "message": "Hello World"
  }'
{
  "code": "SUCCESS",
  "message": "Success",
  "results": {
    "message_id": "3EB0B430B6F8F1D0E053AC120E0A9E5C",
    "status": "Message updated successfully"
  }
}

Build docs developers (and LLMs) love