v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-07-147873273.9 MB
orgs

List organization webhooks

get/orgs/{org}/hooks

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Query parameters

per_pageinteger

The number of results per page (max 100).

pageinteger

Page number of the results to fetch.

Response

Response

idinteger required
urlstring uri required
ping_urlstring uri required
deliveries_urlstring uri
namestring required
eventsstring[] required
activeboolean required
updated_atstring date-time required
created_atstring date-time required
typestring required

Example response

[
  {
    "id": 1,
    "url": "https://api.github.com/orgs/octocat/hooks/1",
    "ping_url": "https://api.github.com/orgs/octocat/hooks/1/pings",
    "deliveries_url": "https://api.github.com/orgs/octocat/hooks/1/deliveries",
    "name": "web",
    "events": [
      "push",
      "pull_request"
    ],
    "active": true,
    "config": {
      "url": "\"http://example.com/2\"",
      "insecure_ssl": "\"0\"",
      "content_type": "\"form\"",
      "secret": "\"********\""
    },
    "updated_at": "2011-09-06T20:39:23Z",
    "created_at": "2011-09-06T17:26:27Z"
  }
]