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

# List the hooks in a repository

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

## Path parameters

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

## Query parameters

- `page` integer
- `limit` integer

## Response `200`

HookList

- Hook[]
  - `active` boolean — Whether the webhook is active and will be triggered
  - `authorization_header` string — Authorization header to include in webhook requests
  - `branch_filter` string — Branch filter pattern to determine which branches trigger the webhook
  - `config` object — Configuration settings for the webhook
  - `created_at` string, date-time — The date and time when the webhook was created
  - `events` string[] — List of events that trigger this webhook
  - `id` integer — The unique identifier of the webhook
  - `name` string — Optional human-readable name for the webhook
  - `type` string — The type of the webhook (e.g., gitea, slack, discord)
  - `updated_at` string, date-time — The date and time when the webhook was last updated

## Other responses

- `404` — APINotFound is a not found empty response

---

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