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

# Outbound Webhooks

> Subscribe to real-time Instance events and verify HMAC-SHA256 webhook signatures in your backend.

Instead of polling the API repeatedly, register HTTPS webhook endpoints to receive real-time JSON notifications the moment leads are captured, qualified, messaged, or assigned.

You can manage webhooks inside **Dashboard -> Settings -> Webhooks** or programmatically using `/api/v1/webhooks`.

***

## 1. Supported Webhook Events

| Event | Triggered When |
| :- | :- |
| **`contact.info_captured`** | An email address or phone number is captured from a DM or Bio Link form |
| **`message.received`** | A new inbound Instagram DM arrives |
| **`lead.qualified`** | AI Profile Scoring or Sales Agent qualifies a lead |
| **`post.scheduled`** | A new Instagram Photo, Reel, Carousel, or Story is scheduled |
| **`post.published`** | A scheduled post finishes publishing to Instagram |
| **`automation.triggered`** | An automation flow starts for a contact |
| **`conversation.assigned`** | A Sales Chat conversation is assigned to a teammate |
| **`bio_link.lead_captured`** | A visitor submits your Bio Link lead capture form |

***

## 2. Verifying Signatures (`X-Instance-Signature-256`)

When you register a webhook, Instance generates a secret signing key (shown once). Every outbound webhook request includes an `HMAC-SHA256` signature in the `X-Instance-Signature-256` header so your server can verify that the request genuinely came from Instance.

Verify the raw request body in Node.js:

```javascript theme={null}
import crypto from "crypto";

export function verifyInstanceWebhook(rawBody, signatureHeader, secret) {
  const expected =
    "sha256=" +
    crypto.createHmac("sha256", secret).update(rawBody).digest("hex");

  return crypto.timingSafeEqual(
    Buffer.from(signatureHeader),
    Buffer.from(expected)
  );
}
```


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