> ## Documentation Index
> Fetch the complete documentation index at: https://assembly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Receiving webhooks from other services

> Let an app you build react to events another service sends it, like a new lead in your CRM or a payment in Stripe.

An app you build can receive webhooks: messages another service sends the moment something happens on its side. A lead is created in your CRM, a booking is made in your scheduler, a payment succeeds in Stripe. The app hears about it right away and acts on it, with nobody pressing a sync button.

## Ask for it in the build chat

Describe what should happen and which service it comes from:

> When a new lead is created in Close, add them as a contact and send me a notification.

> When a Calendly booking is made, log it against the client who booked.

The app builder writes the part of the app that receives the service's events and checks that each one really came from that service. It asks you for the service's signing secret, which you'll find in that service's webhook settings.

## Register the URL with the service

Every published app has its own webhook URL. It looks like this:

```
https://api.assembly.com/v1/app-webhooks/app-1a2b3c4d/close
```

The builder tells you the exact URL in the build chat, and which events to choose. Ask it again at any time ("what's the webhook URL?"). Paste the URL into the service's webhook settings.

> [!NOTE]
>
> The URL starts working once the app is published. Events sent before then aren't received, so publish first, then register the URL. Republishing the app doesn't change the URL.

Use this URL, not the address you see when you open the app in your portal. The portal address asks for a sign-in, so a service can't deliver to it.

## Good to know

* Each event is checked against the service's signing secret before the app acts on it. Events that fail the check are refused.
* Services retry an event they couldn't deliver. The app ignores an event it has already handled, so a retry doesn't create a duplicate.
* If you rotate the signing secret in the service, open the app's build chat, choose **App secrets** from the **+** menu, update the value, and republish.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.