---
title: "Get a repository webhook"
method: GET
path: "/repos/{owner}/{repo}/hooks/{hook_id}"
tags: ["repos"]
---

# Get a repository webhook

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

Returns a webhook configured in a repository. To get only the webhook `config` properties, see "[Get a webhook configuration for a repository](/rest/reference/repos#get-a-webhook-configuration-for-a-repository)."

## Path parameters

- `owner` string, required
- `repo` string, required
- `hook_id` integer, required

## Response `200`

Response

- Hook — Webhooks for repositories.
  - `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` object, required
    - `email` string
    - `password` string
    - `room` string
    - `subdomain` string
    - `url` string, uri — The URL to which the payloads will be delivered.
    - `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
    - `content_type` string — The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
    - `digest` string
    - `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/enterprise-server@3.5/webhooks/event-payloads/#delivery-headers).
    - `token` string
  - `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/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)
