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

# Notifications and webhooks

> Email your team, auto-reply to the visitor, and send each submission to another system as signed JSON

All three are set per form, under **Emails** and **Send to another system (webhook)** on the form's edit page. Email is sent through your own account: see [Settings, team and your account](https://docs.azvian.com/start/settings-and-team.md#email). Nothing is sent until you set that up.

## Notify your team

**Notify these addresses**: one or more email addresses, separated by commas or new lines. Leave it empty for none. Each new submission is emailed to every address, with the answers in the message.

**Replies to a notification go to the visitor**, so you can answer from your inbox. (Set the visitor's reply address by giving the form an Email field.)

## Reply to the visitor automatically

Tick **Send the visitor an automatic reply**, then write a **subject** and a **message**. It goes to the **first Email field** on the form, and includes a copy of their answers. If the form has no Email field, or the visitor entered an invalid address, no reply is sent.

## Webhooks

A webhook posts each submission to another system (a CRM, a spreadsheet service, an automation tool) as it arrives.

Enter the **webhook address** on the form's edit page. When you save, the form is given a **signing secret**, shown on the page.

### What is sent

A `POST` request with a JSON body:

```json theme={null}
{
  "event": "form.submitted",
  "form": { "id": 3, "name": "Contact us", "slug": "contact-us" },
  "submission": {
    "id": 128,
    "submitted_at": "2026-11-02T09:41:07+00:00",
    "answers": { "name": "Maya Lopez", "email": "maya@example.com", "message": "Hello" },
    "fields": [ { "key": "name", "label": "Name", "value": "Maya Lopez" } ]
  }
}
```

`answers` is the simple version, keyed by each field's name. `fields` has each answer with its details.

### Checking the signature

Each request has the header `X-Azvian-Signature: sha256=<hex>`, where the hex is the **HMAC-SHA256 of the raw request body** using your form's signing secret. Recompute it on your side and compare before trusting the request:

```php theme={null}
$expected = 'sha256='.hash_hmac('sha256', file_get_contents('php://input'), $secret);
$valid = hash_equals($expected, $_SERVER['HTTP_X_AZVIAN_SIGNATURE'] ?? '');
```

### Delivery and retries

* Your system must answer with a success status (any `2xx`) within **10 seconds**.
* If it does not, the delivery is retried up to **4 attempts in all**, after about **1 minute, 5 minutes and 30 minutes**.
* Redirects are not followed.
* The address must be a **public** `http(s)` address. Addresses on your own network (`localhost`, `192.168.x.x` and similar) are refused.
* Webhooks are sent by the background queue, so the cron job must be running.

> [!NOTE]
>
> A failed email or webhook never makes the visitor's submission look like it failed. The answer is always saved first, and the visitor always sees the thank-you.


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