---
title: "List repository webhooks"
method: GET
path: "/repos/{owner}/{repo}/hooks"
tags: ["repos"]
---

# List repository webhooks

`GET /repos/{owner}/{repo}/hooks`

Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- Hook[]
  - `type` string, required
  - `id` integer, required — Unique identifier of the webhook.
  - `name` string, required — The name of a valid service, use 'web' for a webhook.
  - `active` boolean, required — Determines whether the hook is actually triggered on pushes.
  - `events` string[], required — Determines what events the hook is triggered for. Default: ['push'].
  - `config` WebhookConfig, required — Configuration object of the webhook
    - `url` string, uri — The URL to which the payloads will be delivered.
    - `content_type` string — The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
    - `secret` string — If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).
    - `insecure_ssl` union
      - string — Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**
      - number
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `url` string, uri, required
  - `test_url` string, uri, required
  - `ping_url` string, uri, required
  - `deliveries_url` string, uri
  - `last_response` HookResponse, required
    - `code` integer, nullable, required
    - `status` string, nullable, required
    - `message` string, nullable, required

## Other responses

- `404` — Resource not found

---

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