Webhooks

message.sent

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

Header-Parameter

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.

Muster^\d+$
webhook-signature*string

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

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

Anfrage-Body

application/json
  1. body

A message went out from the number, by any path: dashboard, API, integrations or the phone itself.

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.

Antwort-Body

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

Beispielanfragen

A message went out from the number, by any path: dashboard, API, integrations or the phone itself.

POST/message.sent