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

# Webhook Events log source (send to endpoint)

> Point any vendor's webhooks at your Sazabi intake URL to store arbitrary JSON events as searchable log records with no schema or field mapping required.

[All Webhooks integration capabilities](https://docs.sazabi.com/catalogs/integrations/webhooks)

## About

Point any vendor's webhook delivery at your Sazabi intake URL and each JSON payload lands as a searchable log record. No schema, field mapping, or vendor-specific configuration is required — the entire payload is preserved under `webhook.*` attributes and is immediately queryable.

A single JSON object becomes one event. A JSON array becomes one event per element. Sazabi reads common field names to extract timestamp and severity when present.

The intake URL itself is the credential: the URL encodes your project public key in the hostname, so treat it as a secret.

## Prerequisites

* A vendor or service that can send webhooks as JSON.
* Your Sazabi intake URL (shown above).

> [!WARNING]
>
> Only JSON payloads are accepted. Form-encoded, XML, and other content types are not supported.

## Set up in the dashboard

**Step 1**

### Note your intake URL and path options

Your intake URL is shown above. You can append an arbitrary path suffix to organize events by type — for example, `/deploys` or `/alerts`. The path is stored as the `webhook.path` attribute on each event:

```bash theme={"system"}
# Single event
curl -X POST <your intake URL>/deploys \
  -H 'content-type: application/json' \
  -d '{"event":"deploy.completed","service":"api","sha":"abc123"}'

# Array of events — each element becomes a separate record
curl -X POST <your intake URL>/alerts \
  -H 'content-type: application/json' \
  -d '[{"alert":"cpu_high","host":"web-1"},{"alert":"cpu_high","host":"web-2"}]'
```

**Step 2**

### Configure the vendor

Paste your intake URL into the vendor's webhook settings. When the vendor asks for a format, choose JSON. Most vendors also let you configure which events to deliver — select only the event types you want to store.

No authentication headers or API keys are required from the vendor side — the intake URL encodes your project's public key.

## Set up with the CLI

You can also register the Webhook Events log source with the [Sazabi CLI](https://docs.sazabi.com/reference/cli.md) (installed and authenticated — see [CLI reference](https://docs.sazabi.com/reference/cli/log-sources.md)).

Registering the source mints the same intake URL the dashboard shows above (the public key is embedded in its hostname):

```bash theme={"system"}
sazabi log-sources create webhook_events --mode manual
```

The command prints the intake URL for the new source — copy the whole URL and point your sender at it using the configuration shown above. Run `sazabi log-sources get <log-source-id>` at any time to reprint the endpoint, or `sazabi log-sources list` to see every log source in the project.

## Verify signatures

The intake URL stays the credential. When the sender signs its deliveries, you can also have Sazabi check every delivery's signature, so a leaked URL alone can't add events to your project. A delivery that fails the check is rejected with `401`, isn't stored and isn't billed.

Turn it on per stream: open the log source in **Settings > Log sources**, switch on **Verify signatures**, pick the sender and add the secret. Deliveries without a valid signature are rejected within about a minute of saving. The same setting is available as `signatureVerification` on the log streams API, in the CLI and as `signature_verification` on the Terraform `sazabi_log_stream` resource.

| Sender | Signature header | Secret | Setup |
| - | - | - | - |
| GitHub | `X-Hub-Signature-256` | Sazabi generates it; you paste it into GitHub | In GitHub, open the webhook's settings and paste the secret Sazabi generated into Secret. |
| Linear | `Linear-Signature` | Linear creates it; you paste it into Sazabi | In Linear, open Settings › API › Webhooks, select the webhook and paste its signing secret here. |
| Shopify | `X-Shopify-Hmac-SHA256` | Shopify creates it; you paste it into Sazabi | Paste your Shopify app's client secret, from the app's settings in the Shopify Dev Dashboard. |
| Standard Webhooks | `webhook-signature` or `svix-signature` | The platform creates it; you paste it into Sazabi | Paste the endpoint's signing secret from the platform's webhook settings; it usually starts with whsec\_. |
| Stripe | `Stripe-Signature` | Stripe creates it; you paste it into Sazabi | In Stripe, open Developers › Webhooks, select the endpoint, reveal its signing secret and paste it here. |
| Custom HMAC | The one the platform documents | Paste the platform's, or generate one | Enter the header, algorithm and encoding the platform documents, then paste its signing secret. |

When Sazabi generates the secret, it's shown once. Copy it into the sender before you close the dialog. After that, the dashboard lists each secret by its last four characters and dates only.

For a platform that checks a timestamp, deliveries older than the platform's tolerance (usually five minutes) are rejected too, so a captured delivery can't be replayed later.

### Rotate a secret

Choose **Rotate secret** and add the new one. The new secret takes effect within about a minute, so wait that long before you switch the sender. The current secret keeps working until it retires (after 24 hours by default; choose anywhere from 1 hour to 7 days), so nothing is rejected in the meantime. If you choose immediately, there's no overlap, and deliveries can be rejected until the sender uses the new secret. To retire it sooner, choose **Remove now** next to it.

### Rejected deliveries

The [Intake page](https://docs.sazabi.com/send-data/intake.md) shows each verifying stream as **Verified**, **Not verified** or **Failing** (more than half of the last 15 minutes' checks rejected), with the number of deliveries rejected in the last 24 hours. Hover over the number for the reasons:

* **Signature mismatch**: the signature doesn't match any of the stream's secrets. Usually the secret in Sazabi differs from the sender's.
* **No signature**: the delivery has no signature header.
* **Timestamp too old**: the signed timestamp is outside the tolerance, often a retried or replayed delivery.
* **Secret not ready**: the secret was saved moments ago. Sazabi answers `503` until it's ready, so senders retry.

## Verify

Send a test event using the `curl` example above, or trigger a test webhook delivery from the vendor's dashboard. Open the [Intake page](https://docs.sazabi.com/send-data/intake.md) in the Sazabi dashboard and confirm the event appears in the **Webhook Events** source within a minute or two.

Start a thread in the dashboard and search for a field from your payload — for example, `webhook.event` — to confirm the full payload is queryable.

## Troubleshooting

**Events not appearing** — Confirm the vendor is sending `Content-Type: application/json` and the body is valid JSON. Non-JSON content types are rejected at intake.

**Only some events arriving** — If the vendor sends arrays, each element becomes a separate record. If the vendor wraps multiple events in a nested object rather than an array, the entire object is stored as one record.

**Path not recorded** — Only the path segment appended after your intake URL is stored as `webhook.path`. The intake hostname and key segment are not included in the stored path.

**`401` with "Invalid or missing webhook signature"** — The stream verifies signatures and this delivery failed the check. Compare the secret in the sender with the one in Sazabi (rotate if unsure), and check the stream's rejection reasons on the Intake page.

**Intake URL treated as expired** — The intake URL encodes your project public key. If you rotate or delete the public key in [**Settings > Public keys**](https://app.sazabi.com/settings/api), the URL stops accepting events. Generate a new intake URL from the log source setup flow.

## Further reading

> [card] [Intake](https://docs.sazabi.com/send-data/intake.md)
>
> See per-source ingestion volume and health.

> [card] [Instrument](https://docs.sazabi.com/send-data.md)
>
> Learn about all the ways to send data to Sazabi.

> [card] [Log sources](https://docs.sazabi.com/catalogs/integrations.md#log-sources)
>
> Browse the full log source catalog.


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