Get a webhook configuration for a repository
Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](/rest/reference/orgs#get-a-repository-webhook)." Access tokens must have the `read:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:read` permission.
/repos/{owner}/{repo}/hooks/{hook_id}/config- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
- hook_id integerrequired
Responses
Response
The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
Example: "json"
If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/[email protected]/webhooks/event-payloads/#delivery-headers).
Example: "********"
The URL to which the payloads will be delivered.
Example: https://example.com/webhook