Get an organization webhook
Returns a webhook configured in an organization. To get only the webhook `config` properties, see "[Get a webhook configuration for an organization](/rest/reference/orgs#get-a-webhook-configuration-for-an-organization)."
GET
/orgs/{org}/hooks/{hook_id}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- org stringrequired
- hook_id integerrequired
Responses
application/json Org Hook object
Response
active boolean
requiredExample: true
config objectrequired
config object
requiredcontent_type string
optionalExample: "form"
insecure_ssl string
optionalExample: "0"
secret string
optionalExample: "********"
url string
optionalExample: "http://example.com/2"
created_at string<date-time>
requiredExample: 2011-09-06T17:26:27Z
events array[string]
requiredExample:
[
"push",
"pull_request"
]id integer
requiredExample: 1
name string
requiredExample: web
ping_url string<uri>
requiredExample: https://api.github.com/orgs/octocat/hooks/1/pings
type string
requiredupdated_at string<date-time>
requiredExample: 2011-09-06T20:39:23Z
url string<uri>
requiredExample: https://api.github.com/orgs/octocat/hooks/1
application/json Basic Error object
Resource not found
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optional