Skip to main content
Find it in Darwin Settings → Integrations → API → Webhooks Open this screen ↗
Webhooks tell your systems the moment something happens in the chat: a visitor leaves their email, asks for a person, or books a meeting. Darwin sends each event as a signed POST to your HTTPS address and retries for about three days if your server doesn’t answer. Every event is something Darwin’s server recorded, never something a browser claimed. Your own preview chats send no events; use Send test event to try an endpoint.

Add an endpoint

1

Open Webhooks

Open Settings → Integrations → API. Owners and admins see Add endpoint beside Webhooks.
2

Enter your URL

Select Add endpoint and enter an HTTPS URL on a public hostname, for example https://example.com/webhooks/darwin. It must answer 2xx within 10 seconds.
3

Choose events

Under Events, keep Choose events and tick what you need. lead.captured, handoff.requested and meeting.booked are ticked for you. All events subscribes to every type, including ones Darwin adds later.
4

Copy the signing secret

Select Add endpoint. Darwin shows the endpoint’s Signing secret (whsec_…). Store it with your receiver’s other secrets. Owners and admins can see it again later with Show signing secret.
5

Send a test event

Open the endpoint’s ⋯ menu and select Send test event. It worked if Darwin says The endpoint answered 200 (or another 2xx). Otherwise it shows why, for example HTTP 401 or No answer within 10 seconds.
A workspace can have 16 endpoints. A new endpoint receives events that happen after it was created; for older ones, read GET /events.

What Darwin sends

The body is one event: Darwin builds the payload a few seconds after the event and keeps it: a retry or redelivery sends the same body. For the latest state, read the object from the API by its id. Every event type and an example payload for each are in Events and payloads.

Requirements for your URL

  • HTTPS on a public hostname. Plain HTTP, IP addresses, localhost and .local or .internal names are refused, and so is a hostname that resolves to a private network address.
  • No username or password before the host. To authenticate requests, verify the signature, or put a token in the path or query string.
  • Darwin does not publish a fixed list of sending IP addresses. Verify signatures rather than allowlisting IPs.

Change or remove an endpoint

  • Change its URL, events or description with PATCH /v1/webhook_endpoints/{id}.
  • Delete in the ⋯ menu (or DELETE /v1/webhook_endpoints/{id}) stops all deliveries and removes the endpoint’s delivery log.

Next

Events and payloads

Every event type, when it fires and what it carries.

Verify signatures

Check every delivery came from Darwin, with or without a library.

Delivery and retries

Timeouts, duplicates, retries, redelivery and the event log.

Send handoffs to Slack

A complete receiver in one file.