Webhooki

call

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

Parametry nagłówka

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.

Wzorzec^\d+$
webhook-signature*string

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

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

Treść żądania

application/json
  1. body

A call arrived at the number, was answered or rejected. Wappfy does not answer calls.

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.

Treść odpowiedzi

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

Przykładowe żądania

A call arrived at the number, was answered or rejected. Wappfy does not answer calls.

POST/call