Webhook

message.reaction

Wappfy makes a POST to the URL registered in the dashboard, with the JSON body and the Standard Webhooks signature headers. Verify the signature before trusting the body (see the introduction).

Parameter header

webhook-id*string

Delivery id (msg_...), equal to the body's id. It repeats on retries: it is your idempotency key.

webhook-timestamp*string

Seconds since 1970 (Unix) of when this attempt was signed. Reject it if it is more than 5 minutes off from your clock.

Pola^\d+$
webhook-signature*string

One or more v1,<base64> signatures separated by spaces (two during secret rotation). Accept it if any one matches.

Pola^v1,[A-Za-z0-9+/=]+( v1,[A-Za-z0-9+/=]+)*$

Body permintaan

application/json
  1. body

Someone reacted to a message in the chat, or removed their reaction.

id*string

Delivery id (msg_...), the same as the webhook-id header. It repeats on retries: use it to avoid processing the same event twice.

type*string

The event.

created_at*string

When the event happened (ISO 8601, UTC), not when it was delivered. Arrival order is not guaranteed: sort by this field.

instance*

The event's connection: id, name (the dashboard name, or the profile name) and phone (digits only, or null).

data*

The event data.

Body respons

Delivered. Any 2xx counts; the response body is ignored. Respond within 10 s (process it later, in a queue of your own, if it will take longer).

Contoh permintaan

Someone reacted to a message in the chat, or removed their reaction.

POST/message.reaction