apicheats.dev Cheat sheet Raw .md
POST

Try POST /orgs/{org}/hooks — GitHub API

GitHub playground

Create an organization webhook

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

4 body fields
  • name · required · string — Must be passed as "web".
  • config · required · object — Key/value pairs to provide settings for this webhook.
  • events · optional · string[] — Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.
  • active · optional · boolean — Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.