Get a repository webhook
Returns a webhook configured in a repository. To get only the webhook config
properties, see “Get a webhook configuration for a repository.”
Path Parameters
Response
application/json
Response
Response
Webhook
Webhooks for repositories.
Unique identifier of the webhook.
Example:42
The name of a valid service, use ‘web’ for a webhook.
Example:web
Determines whether the hook is actually triggered on pushes.
Example:true
Determines what events the hook is triggered for. Default: [‘push’].
Example:["push","pull_request"]
Show Child Parameters
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/test
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/pings
Show Child Parameters
Path Parameters
Update a repository webhook
Updates a webhook configured in a repository. If you previously had a secret
set, you must provide the same secret
or set a new secret
or the secret will be removed. If you are only updating individual webhook config
properties, use “Update a webhook configuration for a repository.”
Path Parameters
Body
application/json
Body
Key/value pairs to provide settings for this webhook. These are defined below.
Show Child Parameters
Determines what events the hook is triggered for. This replaces the entire array of events.
Default:push
Determines a list of events to be added to the list of events that the Hook triggers for.
Determines a list of events to be removed from the list of events that the Hook triggers for.
Determines if notifications are sent when the webhook is triggered. Set to true
to send notifications.
Default:true
Response
application/json
Response
Response
Webhook
Webhooks for repositories.
Unique identifier of the webhook.
Example:42
The name of a valid service, use ‘web’ for a webhook.
Example:web
Determines whether the hook is actually triggered on pushes.
Example:true
Determines what events the hook is triggered for. Default: [‘push’].
Example:["push","pull_request"]
Show Child Parameters
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/test
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/pings
Show Child Parameters
Path Parameters
Body
Delete a repository webhook
Path Parameters
Response
Response
Response
Path Parameters
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.”
Access tokens must have the read:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:read
permission.
Path Parameters
Response
200 application/json
Response
Response
Webhook Configuration
Configuration object of the webhook
The URL to which the payloads will be delivered.
Example:https://example.com/webhook
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.
Example:"********"
One Of
Determines whether the SSL certificate of the host for url
will be verified when delivering payloads. Supported values include 0
(verification is performed) and 1
(verification is not performed). The default is 0
. We strongly recommend not setting this to 1
as you are subject to man-in-the-middle and other attacks.
Example:"0"
Path Parameters
Update a webhook configuration for a repository
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use “Update a repository webhook.”
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Path Parameters
Body
application/json
Body
The URL to which the payloads will be delivered.
Example:https://example.com/webhook
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.
Example:"********"
One Of
Determines whether the SSL certificate of the host for url
will be verified when delivering payloads. Supported values include 0
(verification is performed) and 1
(verification is not performed). The default is 0
. We strongly recommend not setting this to 1
as you are subject to man-in-the-middle and other attacks.
Example:"0"
Response
200 application/json
Response
Response
Webhook Configuration
Configuration object of the webhook
The URL to which the payloads will be delivered.
Example:https://example.com/webhook
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.
Example:"********"
One Of
Determines whether the SSL certificate of the host for url
will be verified when delivering payloads. Supported values include 0
(verification is performed) and 1
(verification is not performed). The default is 0
. We strongly recommend not setting this to 1
as you are subject to man-in-the-middle and other attacks.
Example:"0"