Webhooks

label.updated

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).

Paramètres d'en-tête

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.

Motif^\d+$
webhook-signature*string

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

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

Corps de la requête

application/json
  1. body

A label was created or edited (WhatsApp Business). Creation and edit arrive the same way.

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.

Corps de la réponse

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).

Exemples de requêtes

A label was created or edited (WhatsApp Business). Creation and edit arrive the same way.

POST/label.updated