---
title: "List hooks"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.gitpando.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Pando API › hooks

`GET /v1/monorepos/{owner}/{monorepo}/repos/{repo}/hooks`

## Authentication

Requires one of the following:

- `credential`, http, header `Authorization`
- `session`, apiKey, in cookie

## Path parameters

- `listHooks.path.owner` (string, required) — The monorepo's owner, a namespace (a person's login or an organization). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38}$`
- `listHooks.path.monorepo` (string, required) — The monorepo's name within its owner (or an old name). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9._]|-(?!-)){0,38}$`
- `listHooks.path.repo` (string, required) — The repo's `name` (`projects-web`).

## Code samples

### cURL

```curl
curl --request GET \
  --url https://app.gitpando.com/v1/monorepos/string/string/repos/string/hooks \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/monorepos/string/string/repos/string/hooks';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.gitpando.com/v1/monorepos/string/string/repos/string/hooks"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "hooks": [
    {
      "id": "string",
      "type": "web",
      "url": "string",
      "events": [
        "push"
      ],
      "buildkite": {
        "organization": "string",
        "pipeline": "string"
      },
      "app": "string",
      "active": true,
      "created_at": "2019-08-24T14:15:22Z",
      "created_by": "string"
    }
  ]
}
```

- `listHooks.response.200.hooks` (array<object>, required)
  - `listHooks.response.200.hooks.id` (string, required)
  - `listHooks.response.200.hooks.type` (string, required)
    - one of `"web"`, `"buildkite"`
  - `listHooks.response.200.hooks.events` (array<string>, required)
    - one of `"push"`, `"branch.opened"`, `"merged"`, `"tag"`
  - `listHooks.response.200.hooks.active` (boolean, required)
  - `listHooks.response.200.hooks.created_at` (string, required)
    - format `date-time`
  - `listHooks.response.200.hooks.url` (string | null, optional)
  - `listHooks.response.200.hooks.buildkite` (object | null, optional)
    - `listHooks.response.200.hooks.buildkite.organization` (string, optional)
    - `listHooks.response.200.hooks.buildkite.pipeline` (string, optional)
  - `listHooks.response.200.hooks.app` (string | null, optional) — The app its status tokens stamp: `buildkite` for a buildkite hook, a web hook's own `app`, or null.
  - `listHooks.response.200.hooks.created_by` (string, optional)


Source: https://docs.gitpando.com/api/hooks/listHooks/index.md
