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

# List the Git hooks in a repository

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

## Path parameters

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

## Response `200`

GitHookList

- GitHook[]
  - `content` string — Content contains the script content of the hook
  - `is_active` boolean — IsActive indicates if the hook is active
  - `name` string — Name is the name of the Git hook

## 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/revisions/350de506cefa/schema)
