---
title: "List pre-receive hooks for an organization"
method: GET
path: "/orgs/{org}/pre-receive-hooks"
tags: ["enterprise-admin"]
---

# List pre-receive hooks for an organization

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

List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.

## Path parameters

- `org` string, required

## Query parameters

- `per_page` integer
- `page` integer
- `direction` 'asc' | 'desc'
- `sort` 'created' | 'updated' | 'name'

## Response `200`

Response

- OrgPreReceiveHook[]
  - `id` integer
  - `name` string
  - `enforcement` string
  - `configuration_url` string
  - `allow_downstream_configuration` boolean

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
