> For the complete documentation index, see [llms.txt](https://help.cerby.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.cerby.com/setup-and-admin/workspace-settings/webhooks/create-a-webhook.md).

# Create a webhook

{% hint style="info" %}
**Who can use this feature?**

* Workspace **Owners**, **Super Admins**, and **Admins**
* Supported using the **Cerby web app**
  {% endhint %}

As a workspace **Owner**, **Super Admin**, or **Admin**, you can create webhook endpoints to receive real-time signed HTTPS notifications when account and automation events occur in your workspace. You can create multiple webhooks, each subscribed to a different set of event types.

## Requirements

This procedure requires the following:

* A Cerby workspace with the webhooks feature enabled
* An HTTPS endpoint you control that can receive POST requests from Cerby
* A user account with the workspace **Owner**, **Super Admin**, or **Admin** role

## Steps

To create a webhook, complete the following steps:

1. Log in to your [Cerby](https://app.cerby.com/) workspace.
2. Select **Settings** from the left navigation. The **Workspace Configuration** page is displayed.
3. Select the **Webhooks** left tab.
4. Click the **Create webhook** button. The **Create new webhook** page is displayed.

## 1. Webhook details

5. Enter a name for the webhook in the **Name** field. The name must be between 1 and 100 characters.
6. Enter your endpoint URL in the **Endpoint URL** field. The URL must start with `https://` and cannot exceed 2,048 characters.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>NOTE:</strong> If your endpoint URL is a Slack Incoming Webhook (<code>hooks.slack.com</code>), Cerby delivers a Slack Block Kit message instead of the standard JSON envelope. Refer to the "Sending to a Slack Incoming Webhook" section of <a href="https://github.com/cerbyinc/help-center/tree/main/extending_cerby/public-api/implement-a-webhook-receiver.md">Implement a webhook receiver</a> for details on the format and field subset.</p></div>
7. (Optional) Enter a description in the **Description** field. The description cannot exceed 512 characters.
8. Click the **Next** button. The **Select events** section is displayed.

## 2. Select events

9. Select the event types you want to subscribe to. You can select individual event types or choose a preset selection:

   * Select **Audit-only** to subscribe to every available event type except the actionable failure events, that is, the events a compliance team records but that don't need remediation.
   * Select **Failures-only** to subscribe to the actionable failure events: `account.credentials.rotation_failed`, `account.login.failed`, `account.mfa.setup_failed`, and `automation.failed`.
   * Select **Everything** to subscribe to all available event types.

   You must select at least one event type to proceed.
10. Click the **Next** button. The **Signing method** section is displayed.

## 3. Signing method

11. Select a signing algorithm:
    * Select **Ed25519** (recommended) to use asymmetric signing. Cerby generates a key pair and returns your public key after the webhook is created. You store the public key and use it to verify signatures.
    * Select **HMAC-SHA256** to use symmetric signing. Cerby generates a shared secret and returns it after the webhook is created. You store the shared secret and use it to verify signatures.
12. Click the **Create webhook** button. The webhook is created and your signing key material is displayed.

## 4. Copy your signing key

{% hint style="danger" %}
**IMPORTANT:** Copy your signing key material before leaving this page. Cerby displays the key only once. If you leave without copying, you must rotate the signing key to obtain new key material.
{% endhint %}

13. Copy the key material displayed:
    * **Ed25519:** Copy the **Public key** value and store it securely. You will use this key to verify the `X-Cerby-Signature` header on incoming webhook requests.
    * **HMAC-SHA256:** Copy the **Signing secret** value and store it securely. You will use this secret to verify the `X-Cerby-Signature` header on incoming webhook requests.
14. Click the **Done** button. The new webhook appears in the **Webhooks** list.

## Related articles

**Feature guides:**

* [Explore webhook notifications](/setup-and-admin/workspace-settings/webhooks/explore-webhook-notifications.md)
* [Edit a webhook](/setup-and-admin/workspace-settings/webhooks/edit-a-webhook.md)
* [Delete a webhook](/setup-and-admin/workspace-settings/webhooks/delete-a-webhook.md)

**Developer reference:**

* [Implement a webhook receiver](https://github.com/cerbyinc/help-center/tree/main/extending_cerby/public-api/implement-a-webhook-receiver.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.cerby.com/setup-and-admin/workspace-settings/webhooks/create-a-webhook.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
