Developer · Webhook

Webhooks — Wisebird tells your system the moment something happens

A webhook means Wisebird sends data to a URL on your system as soon as something happens — a customer arrives from an ad, a new deal opens, a sale is closed, a new contact appears — instead of your system polling the API again and again.

About 10 minutesSomeone with developer permission, plus the developer of the receiving systemLast updated Nov 13, 2026
In the print dialog, choose "Save as PDF"

In short

  1. Go to Developer › Webhooks, scroll to the bottom, pick a Channel, enter the URL and press Add endpoint — copy the secret straight away, it is shown once
  2. Every request carries an X-Wisebird-Signature header; verify it over the raw body with that endpoint's secret
  3. Answer 2xx as fast as you can and process afterwards — timeouts and 5xx are retried automatically
  4. Store the event_ids you have processed and skip any you have seen, because one event can arrive more than once
Done 0/4

01How webhooks work

Webhooks page in the developer docs
Webhooks page in the developer docs — The webhook endpoints reference, with the event list in the contents on the right
  • Endpoints (URLs) are registered per channel — each Facebook Page or LINE OA
  • Every endpoint of a channel receives every event; your system should answer 2xx and skip events it does not know
  • Each endpoint has its own secret for checking signatures
  • The URL must be public — localhost and private networks cannot be reached
To get every event of every conversation, register the same URL on every channel. URLs are compared exactly (with or without a trailing / counts as two endpoints).

02Add an endpoint and test it

  1. Add an endpoint

    Open Developer › Webhooks, scroll to Webhook endpoints, pick the Channel, enter your system's URL, then press Add endpoint.

    Webhook endpoints and the delivery log
    Webhook endpoints and the delivery log — Pick a channel, enter the URL and add it; below is the delivery log for the last 30 days
  2. Copy the secret straight away

    After adding the endpoint the secret is shown once. Store it in your system to check signatures.

    The secret of a newly added endpoint
    The secret of a newly added endpoint — An orange box "Copy this secret now — it will not be shown again" with Copy and Close; below it the new endpoint's row (secret shortened) and Send test event · Rotate secret · Pause · Delete
  3. Send a test event

    Press Send test event on the endpoint's row. A sample payload goes through the real delivery path with livemode: false — make sure test data never flows into your live system.

    Check the Delivery log below. Filter by all · success · failed · retrying and see each attempt's status, number of tries and the body sent.

  4. Pause, rotate the secret or deletewhen needed

    Pause

    Stop sending to this URL for now; press "Resume" to start again

    Rotate secret

    Issue a new secret; the old signatures stop being valid at once

    have your system ready for the new secret first

    Delete

    The URL stops receiving events immediately and its secret is destroyed

03Verifying the signature

Every request from Wisebird carries X-Wisebird-Signature in the form t=<unix time>,v1=<hmac sha256>. v1 is computed over "time." followed by the raw body, using that endpoint's secret.

Sample signature check
Sample signature check — JavaScript and Python versions are on the docs page, ready to copy
  1. Verify the raw body before parsing JSON — parsing and re-serialising changes the bytes and the signature never matches
  2. Check the age of t — e.g. no older than 5 minutes — so an old request cannot be replayed
  3. Compare in constant time (e.g. timingSafeEqual), not with ===

04Retries and duplicates

Your endpoint answers 2xx

Delivered

Timeout or 5xx

Retried automatically 3 times

429 (slow down)

Retried up to 8 times, waiting for Retry-After

at most 2 minutes each time

Any other 4xx

Not retried — that event will not be sent again

check the delivery log and resend it yourself

Do not answer 400 to an event your system does not know. Answer 2xx and skip it, or that event is lost without a retry.

Every retry — automatic or by pressing Resend — uses the same event_id. Your system must store processed event_ids and skip ones it has seen: a delivery that succeeded but answered too slowly also counts as failed and is sent again.

Answer 200 as fast as possible and do the work in your own queue. Endpoints that process before answering are the ones that keep receiving duplicates.

05Payload format and the event list

Current events all share one envelope. The event's own data is in data; the rest describes the event.

  • event — the event name, e.g. deal.closed; check it before reading data
  • event_id — a unique id, for de-duplication
  • api_version — the payload version (new fields can appear without a new version, so your system must not break on unknown fields)
  • occurred_at — when it happened, not when it was sent
  • livemode — false for test events
  • business_id and channel — the business and channel of the event

Events:

ad_attribution.createddeal.createdlead.fields_updateddeal.stage_changeddeal.closedsale.recordedsale.voidedcontact.createdcontact.updatedcontact.unmerged
The sale.* and contact.* events are switched on per business. Contact the Wisebird team when your receiving system is ready for them.

Every event's details and sample data are on Developer › Webhooks, under the event list.

There are also five legacy (v1) events — incoming · outgoing · update_tag · receipt · leadgen — kept unchanged for systems connected earlier. They carry no event_id; if you are starting now, use the current events.

Last updated Nov 13, 2026Still not working? Contact the Wisebird team — we are happy to help.