# Send webhook

> Sends the lead as JSON to another system's https address.

Slow: put it after anything the visitor waits for.

| | |
|---|---|
| Type | `webhook` |
| Group | Tell the team |
| Slow | Yes. Put it after the last step the visitor sees |

## Exits

| Exit | Name |
|---|---|
| `next` | Next |

## Settings

| Key | Label | Takes | Default | Notes |
|---|---|---|---|---|
| `url` | Address | A string. |  | An https address. It is sent the lead as JSON: its id and every field the flow has. |
| `method` | Method | `POST` POST, `PUT` PUT | `POST` |  |
| `secret` | Signing secret | A string. |  | Optional. With one, each call carries X-Signalbox-Signature: sha256 and the HMAC of the body, so the other system can tell the call is yours. |
| `onFailure` | If the call fails | `continue` Carry on, `stop` Stop the flow | `continue` |  |

## In a flow document

```json
{
  "id": "webhook1",
  "type": "webhook",
  "settings": {
    "method": "POST",
    "onFailure": "continue"
  }
}
```
