WhatsApp Gateway
API referenceMessages

Remove your reaction from a message

Clears the reaction you previously set on the message identified by `mid` (located by `chat`/`sender` in the body). The gateway sends an **empty** reaction to WhatsApp, so any `emoji` value in the body is ignored. Idempotent: removing when no reaction is set is a no-op. Returns **200** with a `SendResult`. ### Preconditions & errors - Requires the **`send`** capability. - **404 `not_found`** — the session or message does not exist or is not owned by your organization.

DELETE
/api/v1/sessions/{session}/messages/{mid}/reaction

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The router accepts two kinds of token and tries each in turn: a frontend-minted login JWT (verified against the frontend JWKS; the person's org + role are read from it), or an api-key for a script/service (carrying a fixed set of gateway permissions). The bearerFormat: JWT label describes the person-login case.

In: header

Path Parameters

session*string

The WhatsApp session id that owns the reaction. Must be a connected session your organization owns.

mid*string

The WhatsApp message id (the per-message stable id assigned by WhatsApp) of the message being reacted to.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

chat?string

The JID of the chat the message lives in (e.g. "123...@s.whatsapp.net" for a direct chat or "123...@g.us" for a group).

emoji?string

The single emoji to react with. Sending a reaction replaces any reaction you previously set on this message. On the add (POST) endpoint this is required; on the remove (DELETE) endpoint it is ignored — the gateway always sends an empty reaction to clear yours.

sender?string

The JID of the original sender of the message being reacted to. Leave empty ("") for your own message; set the author's JID for another participant's message.

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/v1/sessions/01HZX.../messages/3EB0C431C26A1916E07A/reaction" \  -H "Content-Type: application/json" \  -d '{}'
{  "mode": "string",  "outboxId": "string",  "replayed": true,  "status": "string",  "timestamp": 0,  "waMessageId": "string"}
{  "error": {    "code": "not_found",    "details": {      "property1": null,      "property2": null    },    "message": "session not found"  }}