# Get an organization webhook

From **GitHub v3 REST API**.

`GET /orgs/{org}/hooks/{hook_id}`

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)."

## Parameters

### `org`

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

### `hook_id`

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

## Responses

### `200`

Response

### `application/json`

- Type: `object`

Org Hook

```json
{
  "active": true,
  "config": {
    "content_type": "json",
    "url": "http://example.com"
  },
  "created_at": "2011-09-06T17:26:27Z",
  "events": [
    "push",
    "pull_request"
  ],
  "id": 1,
  "name": "web",
  "ping_url": "https://api.github.com/orgs/octocat/hooks/1/pings",
  "type": "Organization",
  "updated_at": "2011-09-06T20:39:23Z",
  "url": "https://api.github.com/orgs/octocat/hooks/1"
}
```

```json
{"description":"Org Hook","properties":{"active":{"example":true,"type":"boolean"},"config":{"properties":{"content_type":{"example":"\"form\"","type":"string"},"insecure_ssl":{"example":"\"0\"","type":"string"},"secret":{"example":"\"********\"","type":"string"},"url":{"example":"\"http://example.com/2\"","type":"string"}},"type":"object"},"created_at":{"example":"2011-09-06T17:26:27Z","format":"date-time","type":"string"},"events":{"example":["push","pull_request"],"items":{"type":"string"},"type":"array"},"id":{"example":1,"type":"integer"},"name":{"example":"web","type":"string"},"ping_url":{"example":"https://api.github.com/orgs/octocat/hooks/1/pings","format":"uri","type":"string"},"type":{"type":"string"},"updated_at":{"example":"2011-09-06T20:39:23Z","format":"date-time","type":"string"},"url":{"example":"https://api.github.com/orgs/octocat/hooks/1","format":"uri","type":"string"}},"required":["id","url","type","name","active","events","config","ping_url","created_at","updated_at"],"title":"Org Hook","type":"object"}
```

### `404`

Resource not found

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

## Request examples

### cURL

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