# Get a pre-receive hook for an organization

From **GitHub v3 REST API**.

`GET /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}`

Get a pre-receive hook for an organization

## Parameters

### `org`

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

### `pre_receive_hook_id`

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

pre_receive_hook_id parameter

## Responses

### `200`

Response

### `application/json`

- Type: `object`

```json
{
  "allow_downstream_configuration": true,
  "configuration_url": "https://github.example.com/api/v3/admin/pre-receive-hooks/42",
  "enforcement": "disabled",
  "id": 42,
  "name": "Check Commits"
}
```

```json
{"properties":{"allow_downstream_configuration":{"type":"boolean"},"configuration_url":{"type":"string"},"enforcement":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"}},"type":"object"}
```

## Request examples

### cURL

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