Skip to main content
POST
Edit message by message ID before 15 minutes

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

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. Can also be provided as device_id query parameter.

Example:

"my-device-id"

Path Parameters

message_id
string
required

Message ID

Body

application/json
phone
string
required

Phone number with country code

Example:

"62819273192397132@s.whatsapp.net"

message
string
required

New message to send

Example:

"Hello World"

Optional URL. When set, the edit is sent with a rich link preview (title, description, thumbnail) like /send/link. Appended to the message if not already present.

Example:

"https://example.com/page"

media_type
enum<string>

Set when message_id is an image or document message; the edit replaces its caption. WhatsApp ignores a plain-text edit of a media message. Rejected when it differs from the stored message's type. Cannot be combined with link.

Available options:
image,
document
Example:

"image"

Response

OK

code
string
Example:

"SUCCESS"

message
string
Example:

"Success"

results
object