# List global webhooks

From **GitHub v3 REST API**.

`GET /admin/hooks`

List global webhooks

## Parameters

### `accept`

- Location: header
- Required: true
- Type: `string`
- Default: `application/vnd.github.superpro-preview+json`

This API is under preview and subject to change.

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

Response

#### Headers

##### `Link`

- Type: `string`

- Example: `<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"`

### `application/json`

- Type: `array`

```json
[
  {
    "active": true,
    "config": {
      "content_type": "json",
      "insecure_ssl": "0",
      "secret": "********",
      "url": "https://example.com"
    },
    "created_at": "2017-12-07T00:14:59Z",
    "events": [
      "organization",
      "user"
    ],
    "id": 1,
    "name": "web",
    "ping_url": "https://api.github.com/admin/hooks/1/pings",
    "type": "Global",
    "updated_at": "2017-12-07T00:14:59Z",
    "url": "https://api.github.com/admin/hooks/1"
  }
]
```

```json
{"items":{"$ref":"#/components/schemas/global-hook"},"type":"array"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/admin/hooks
```
