---
title: "listRepoCIChecksAtBranch"
---

> 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.

# listRepoCIChecksAtBranch

Path: Forge API › ciChecks

`GET /repos/{repo_id}/branches/{branch}/ci-checks`

List the CI checks at the branch's working state.

## Path parameters

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

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/repos/<repo_id>/branches/<branch>/ci-checks'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/branches/<branch>/ci-checks';
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>/branches/<branch>/ci-checks"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
[
  {
    "id": "string",
    "name": "string",
    "description": "string",
    "kind": "stdlib",
    "stdlib_function_key": "string",
    "stdlib_config": {},
    "custom_source_code": "string",
    "severity": "required",
    "enabled": true,
    "extension_id": "string",
    "extension_installation_id": "string"
  }
]
```

- `id` (`listRepoCIChecksAtBranch.response.200.id`; string, required)
  - pattern: `^ci_check_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `name` (`listRepoCIChecksAtBranch.response.200.name`; string, required)
  - minLength: `1`
- `description` (`listRepoCIChecksAtBranch.response.200.description`; string, required)
  - minLength: `1`
- `kind` (`listRepoCIChecksAtBranch.response.200.kind`; string, required)
  - one of `"stdlib"`, `"custom"`
- `stdlib_function_key` (`listRepoCIChecksAtBranch.response.200.stdlib_function_key`; any of, required)
  - any of the following: `string`, `null`
- `stdlib_config` (`listRepoCIChecksAtBranch.response.200.stdlib_config`; any of, required)
  - any of the following: `object`, `null`
- `custom_source_code` (`listRepoCIChecksAtBranch.response.200.custom_source_code`; any of, required)
  - any of the following: `string`, `null`
- `severity` (`listRepoCIChecksAtBranch.response.200.severity`; string, required)
  - one of `"required"`, `"advisory"`
- `enabled` (`listRepoCIChecksAtBranch.response.200.enabled`; boolean, required)
- `extension_id` (`listRepoCIChecksAtBranch.response.200.extension_id`; any of, required)
  - any of the following: `ExtensionId`, `null`
- `extension_installation_id` (`listRepoCIChecksAtBranch.response.200.extension_installation_id`; any of, required)
  - any of the following: `ExtensionInstallationId`, `null`

### 400

InvalidRequest

#### Example

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

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

### 401

InvalidCredentials

#### Example

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

- `_tag` (`listRepoCIChecksAtBranch.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

BranchNotFound | RepoNotFound

#### Example

```json
{
  "_tag": "BranchNotFound",
  "branch": "string"
}
```

Any of the following:

- `BranchNotFoundEncoded`
  - `_tag` (`BranchNotFoundEncoded._tag`; string, required)
    - one of `"BranchNotFound"`
  - `branch` (`BranchNotFoundEncoded.branch`; string, required)
    - minLength: `1`
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 429

RateLimited

#### Example

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

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

### 500

RepoFailure

#### Example

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

- `_tag` (`listRepoCIChecksAtBranch.response.500._tag`; string, required)
  - one of `"RepoFailure"`
- `reason` (`listRepoCIChecksAtBranch.response.500.reason`; string, required)

### 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-ci-checks-at-branch/index.md
