Skip to main content
POST
/
message
/
edit
Edit a sent message
curl --request POST \
  --url https://api.wppfy.com/message/edit \
  --header 'Content-Type: application/json' \
  --header 'token: <api-key>' \
  --data '
{
  "id": "3A12345678901234567890123456789012",
  "text": "Edited message text"
}
'
{
  "id": "5511999999999:3A12345678901234567890123456789012",
  "messageid": "3A12345678901234567890123456789012",
  "content": "Edited message text",
  "messageTimestamp": 1704067200000,
  "messageType": "text",
  "status": "Pending",
  "owner": "5511999999999"
}

Authorizations

token
string
header
required

Body

application/json
id
string
required

Unique ID of the message to be edited (format owner:messageid or just messageid)

Example:

"3A12345678901234567890123456789012"

text
string
required

New text content of the message

Example:

"Edited message text"

Response

Message edited successfully

id
string

Unique message ID in owner:messageid format

Example:

"5511999999999:3A12345678901234567890123456789012"

messageid
string

Message ID on WhatsApp

Example:

"3A12345678901234567890123456789012"

content
string

Content of the edited message

Example:

"Edited message text"

messageTimestamp
integer

Message timestamp (Unix timestamp in milliseconds)

Example:

1704067200000

messageType
string

Message type

Example:

"text"

status
string

Message status

Example:

"Pending"

owner
string

Instance owner

Example:

"5511999999999"