Managing global webhooks

You can configure global webhooks to notify external web servers when events occur within your enterprise.

Enterprise owners can manage global webhooks for an enterprise account.

About global webhooks

You can use global webhooks to notify an external web server when events occur within your enterprise. You can configure the server to receive the webhook's payload, then run an application or code that monitors, responds to, or enforces rules for user and organization management for your enterprise. For more information, see "Webhooks."

For example, you can configure GitHub.com to send a webhook when someone creates, deletes, or modifies a repository or organization within your enterprise. You can configure the server to automatically perform a task after receiving the webhook.

List of global webhooks

You can also use the APIs to manage global webhooks. For a complete list of actions, see "Global webhooks."

Adding a global webhook

  1. In the top-right corner of GitHub.com, click your profile photo, then click Your enterprises. "Your enterprises" in drop-down menu for profile photo on GitHub Enterprise Cloud

  2. In the list of enterprises, click the enterprise you want to view. Name of an enterprise in list of your enterprises

  3. In the enterprise account sidebar, click Settings. Settings tab in the enterprise account sidebar

  4. Under " Settings", click Hooks. Hooks tab in the enterprise account settings sidebar

  5. Click Add webhook. Add webhook button on Webhooks page in Admin center

  6. Type the URL where you'd like to receive payloads. Field to type a payload URL

  7. Optionally, use the Content type drop-down menu, and click a payload format. Drop-down menu listing content type options

  8. Optionally, in the Secret field, type a string to use as a secret key. Field to type a string to use as a secret key

  9. Optionally, if your payload URL is HTTPS and you would not like GitHub Enterprise Server to verify SSL certificates when delivering payloads, select Disable SSL verification. Read the information about SSL verification, then click I understand my webhooks may not be secure. Checkbox for disabling SSL verification

    Warning: SSL verification helps ensure that hook payloads are delivered securely. We do not recommend disabling SSL verification.

  10. Decide if you'd like this webhook to trigger for every event or for selected events. Radio buttons with options to receive payloads for every event or selected events

    • For every event, select Send me everything.
    • To choose specific events, select Let me select individual events.
  11. If you chose to select individual events, select the events that will trigger the webhook.

    Checkboxes for individual global webhook events

  12. Confirm that the Active checkbox is selected. Selected Active checkbox

  13. Click Add webhook.

Editing a global webhook

  1. In the top-right corner of GitHub.com, click your profile photo, then click Your enterprises. "Your enterprises" in drop-down menu for profile photo on GitHub Enterprise Cloud

  2. In the list of enterprises, click the enterprise you want to view. Name of an enterprise in list of your enterprises

  3. In the enterprise account sidebar, click Settings. Settings tab in the enterprise account sidebar

  4. Under " Settings", click Hooks. Hooks tab in the enterprise account settings sidebar

  5. Next to the webhook you'd like to edit, click Edit. Edit button next to a webhook

  6. Update the webhook's settings.

  7. Click Update webhook.

Deleting a global webhook

  1. In the top-right corner of GitHub.com, click your profile photo, then click Your enterprises. "Your enterprises" in drop-down menu for profile photo on GitHub Enterprise Cloud

  2. In the list of enterprises, click the enterprise you want to view. Name of an enterprise in list of your enterprises

  3. In the enterprise account sidebar, click Settings. Settings tab in the enterprise account sidebar

  4. Under " Settings", click Hooks. Hooks tab in the enterprise account settings sidebar

  5. Next to the webhook you'd like to delete, click Delete. Delete button next to a webhook

  6. Read the information about deleting a webhook, then click Yes, delete webhook. Pop-up box with warning information and button to confirm deleting the webhook

Viewing recent deliveries and responses

  1. In the top-right corner of GitHub.com, click your profile photo, then click Your enterprises. "Your enterprises" in drop-down menu for profile photo on GitHub Enterprise Cloud

  2. In the list of enterprises, click the enterprise you want to view. Name of an enterprise in list of your enterprises

  3. In the enterprise account sidebar, click Settings. Settings tab in the enterprise account sidebar

  4. Under " Settings", click Hooks. Hooks tab in the enterprise account settings sidebar

  5. In the list of webhooks, click the webhook for which you'd like to see deliveries. List of webhooks with links to view each webhook

  6. Under "Recent deliveries", click a delivery to view details. List of the webhook's recent deliveries with links to view details

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.