---
title: "listRepoWebhooks"
---

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

# listRepoWebhooks

Path: Forge API › webhooks

`GET /repos/{repo_id}/webhooks`

List the webhooks that the versions main runs declare, an installation's or the repo's own: each one's tool, who makes its secret (forge or provider), how to set it up at the provider, and, once the repo subscribes, its URL and when its secret was set.

## Path parameters

- `repo_id` (`listRepoWebhooks.path.repo_id`; string, required)
  - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/repos/<repo_id>/webhooks'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/webhooks';
const options = {method: 'GET'};

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

### Python

```python
import requests

url = "<base-url>/repos/<repo_id>/webhooks"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
[
  {
    "extension_name": "string",
    "name": "string",
    "tool": "string",
    "secret_source": "forge",
    "instructions": "string",
    "url": "string",
    "secret_set_at": "string"
  }
]
```

- `extension_name` (`listRepoWebhooks.response.200.extension_name`; string, required)
  - maxLength: `129` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$`
- `name` (`listRepoWebhooks.response.200.name`; string, required)
  - maxLength: `128` · pattern: `^[A-Za-z_][A-Za-z0-9_]*$`
- `tool` (`listRepoWebhooks.response.200.tool`; string, required)
  - maxLength: `128` · pattern: `^[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*$`
- `secret_source` (`listRepoWebhooks.response.200.secret_source`; string, required)
  - one of `"forge"`, `"provider"`
- `instructions` (`listRepoWebhooks.response.200.instructions`; any of, required)
  - any of the following: `string`, `null`
- `url` (`listRepoWebhooks.response.200.url`; any of, required)
  - any of the following: `string`, `null`
- `secret_set_at` (`listRepoWebhooks.response.200.secret_set_at`; any of, required)
  - any of the following: `string`, `null`

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`listRepoWebhooks.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`listRepoWebhooks.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`listRepoWebhooks.response.400.issues`; array of object, required)
  - `path` (`listRepoWebhooks.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`listRepoWebhooks.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`listRepoWebhooks.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "Forbidden",
  "message": "string"
}
```

Any of the following:

- `ForbiddenEncoded`
  - `_tag` (`ForbiddenEncoded._tag`; string, required)
    - one of `"Forbidden"`
  - `message` (`ForbiddenEncoded.message`; string, required)
- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

RepoNotFound

#### Example

```json
{
  "_tag": "RepoNotFound"
}
```

- `_tag` (`listRepoWebhooks.response.404._tag`; string, required)
  - one of `"RepoNotFound"`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`listRepoWebhooks.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

RepoFailure | OrgFailure

#### Example

```json
{
  "_tag": "RepoFailure",
  "reason": "string"
}
```

Every option has:

- `reason` (`<option>.reason`; string, required)

Any of the following, each adding:

- `RepoFailureEncoded`
  - `_tag` (`RepoFailureEncoded._tag`; string, required)
    - one of `"RepoFailure"`
- `OrgFailureEncoded`
  - `_tag` (`OrgFailureEncoded._tag`; string, required)
    - one of `"OrgFailure"`

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/list-repo-webhooks/index.md
