---
title: "Get a webhook configuration for an organization"
method: GET
path: "/orgs/{org}/hooks/{hook_id}/config"
tags: ["orgs"]
---

# Get a webhook configuration for an organization

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

You must be an organization owner or have the "Manage organization webhooks" permission to use this endpoint.

OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit webhooks
that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.

## Path parameters

- `org` string, required
- `hook_id` integer, required

## Response `200`

Response

- WebhookConfig — 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/enterprise-cloud@latest/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

---

[API](https://skmtc.net/github/apis/ghec.md) · [All operations](https://skmtc.net/github/apis/ghec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghec/revisions/8ae6d0c8716e/schema)
