Get a repository webhook
Changed onReturns a webhook configured in a repository. To get only the webhook config properties, see "Get a webhook configuration for a repository."
Request
- Base URL: http://HOSTNAME/api/v3
- URL: http://HOSTNAME/api/v3/repos/{owner}/{repo}/hooks/{hook_id}
- Auth: none declared
Path parameters
The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
Response
Response
Example response
{
"id": 42,
"name": "web",
"active": true,
"events": [
"push",
"pull_request"
],
"config": {
"url": "https://example.com/webhook",
"content_type": "\"json\"",
"secret": "\"********\"",
"insecure_ssl": "\"0\""
},
"updated_at": "2011-09-06T20:39:23Z",
"created_at": "2011-09-06T17:26:27Z",
"url": "https://api.github.com/repos/octocat/Hello-World/hooks/1",
"test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/1/test",
"ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings",
"deliveries_url": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries"
}Changes
- warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status
- warning