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.
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
The WhatsApp session id that owns the reaction. Must be a connected session your organization owns.
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.
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).
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.
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" }}Add a reaction to a message POST
Reacts to the message identified by `mid` (located by `chat`/`sender` in the body) with a single emoji. A reaction is **idempotent per message**: sending a new reaction replaces any reaction you previously set on that message — there is at most one reaction per (you, message) pair. Returns **200** with a `SendResult`. ### Preconditions & errors - Requires the **`send`** capability. - **400 `validation_error`** — missing/empty `emoji`. - **404 `not_found`** — the session or message does not exist or is not owned by your organization.
Vote on a poll message POST
Casts a vote on the poll message identified by `mid` (located by `chat`/`sender` in the body). `options` is the **complete** set of poll choices you want selected — it **replaces** your previous vote rather than adding to it. Send an empty array to clear your vote; for a single-choice poll send exactly one option. Returns **200** with a `SendResult`. ### Preconditions & errors - Requires the **`send`** capability. - **400 `validation_error`** — the target is not a poll or an option does not match the poll's choices. - **404 `not_found`** — the session or poll message does not exist or is not owned by your organization.