List repository webhooks
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
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
Query Parameters
Create a repository webhook
Repositories can have multiple webhooks installed. Each webhook should have a unique config. Multiple webhooks can
share the same config as long as those webhooks do not have any events that overlap.
Path Parameters
Body
application/json
Body
Use web to create a webhook. Default: web. This parameter only accepts the value web.
Key/value pairs to provide settings for this webhook. These are defined below.
Show Child Parameters
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
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