Messages

Edit (or cancel) an event

Edits an event THIS instance created, identified by `eventMessageId`. Resend the full set of event fields — every field is replaced with the new values, matching WhatsApp's edit semantics. Set `canceled` to `true` to mark the event as cancelled. Only the original creator can edit, so the event must have been sent from this same device/instance (its message secret is required).

POST
/send/event-edit

Edits an event THIS instance created, identified by eventMessageId. Resend the full set of event fields — every field is replaced with the new values, matching WhatsApp's edit semantics. Set canceled to true to mark the event as cancelled. Only the original creator can edit, so the event must have been sent from this same device/instance (its message secret is required).

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/send/event-edit" \  -H "Content-Type: application/json" \  -d '{    "to": "120363019502650977@g.us",    "eventMessageId": "3EB0XXXXEVT1234567890ABCD",    "name": "Quarterly Planning (rescheduled)",    "description": "Roadmap review and Q3 goals",    "dateTime": "2026-07-02T18:30:00-03:00",    "location": {      "name": "HQ — Room B"    },    "canceled": false  }'
{  "success": true,  "message_id": "3EB0XXXXEVT9876543210WXYZ",  "timestamp": "2026-06-19T15:00:00Z",  "status": "sent",  "chat_jid": "120363019502650977@g.us",  "message": "Event edited successfully"}
{  "error": "eventMessageId is required"}
{  "error": "unauthorized"}
{  "error": "failed to dispatch message"}
{  "error": "WhatsApp device is not connected"}