# Get a global webhook

From **GitHub v3 REST API**.

`GET /admin/hooks/{hook_id}`

Get a global webhook

## Parameters

### `accept`

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

This API is under preview and subject to change.

### `hook_id`

- Location: path
- Required: true
- Type: `integer`

## Responses

### `200`

Response

### `application/json`

- Type: `object`

```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
{"properties":{"active":{"type":"boolean"},"config":{"properties":{"content_type":{"type":"string"},"insecure_ssl":{"type":"string"},"secret":{"type":"string"},"url":{"type":"string"}},"type":"object"},"created_at":{"type":"string"},"events":{"items":{"type":"string"},"type":"array"},"id":{"type":"integer"},"name":{"type":"string"},"ping_url":{"type":"string"},"type":{"type":"string"},"updated_at":{"type":"string"},"url":{"type":"string"}},"type":"object"}
```

## Request examples

### cURL

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