1
0
mirror of synced 2026-01-02 03:04:13 -05:00
Files
docs/content/rest/orgs/webhooks.md

1.7 KiB

title, allowTitleToDifferFromFilename, shortTitle, intro, versions, topics, miniTocMaxHeadingLevel
title allowTitleToDifferFromFilename shortTitle intro versions topics miniTocMaxHeadingLevel
Organization webhooks true Webhooks Use the REST API to interact with webhooks in an organization.
fpt ghes ghae ghec
* * * *
API
3

About organization webhooks

Organization webhooks allow you to receive HTTP POST payloads whenever certain events happen in an organization. For more information, see "About webhooks."

Scopes and restrictions

All actions against organization webhooks require the authenticated user to be an admin of the organization being managed. Additionally, OAuth tokens require the admin:org_hook scope. For more information, see "Scopes for OAuth Apps."

In order to protect sensitive data which may be present in webhook configurations, we also enforce the following access control rules:

  • OAuth applications cannot list, view, or edit webhooks which they did not create.
  • Users cannot list, view, or edit webhooks which were created by OAuth applications.

Receiving Webhooks

In order for {% data variables.product.product_name %} to send webhook payloads, your server needs to be accessible from the Internet. We also highly suggest using SSL so that we can send encrypted payloads over HTTPS.

For more best practices, see our guide.

Webhook headers

{% data variables.product.product_name %} will send along several HTTP headers to differentiate between event types and payload identifiers. See webhook headers for details.