---
title: "listRepoExtensionScheduleRuns"
---

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

# listRepoExtensionScheduleRuns

Path: Forge API › extensions

`GET /repos/{repo_id}/extensions/{name}/schedules/{schedule}/runs`

List a schedule's runs on main for an extension the repo defines, newest first, as listRepoExtensionInstallationScheduleRuns does.

## Path parameters

- `repo_id` (`listRepoExtensionScheduleRuns.path.repo_id`; string, required)
  - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `name` (`listRepoExtensionScheduleRuns.path.name`; string, required)
  - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
- `schedule` (`listRepoExtensionScheduleRuns.path.schedule`; string, required)
  - maxLength: `128` · pattern: `^[A-Za-z_][A-Za-z0-9_]*$`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/repos/<repo_id>/extensions/<name>/schedules/<schedule>/runs'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/extensions/<name>/schedules/<schedule>/runs';
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>/extensions/<name>/schedules/<schedule>/runs"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
[
  {
    "id": "string",
    "extension_name": "string",
    "schedule": "string",
    "trigger": "schedule",
    "status": "running",
    "scheduled_at": "string",
    "started_at": "string",
    "finished_at": "string",
    "failure": "string"
  }
]
```

- `id` (`listRepoExtensionScheduleRuns.response.200.id`; string, required)
  - pattern: `^extension_schedule_run_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `extension_name` (`listRepoExtensionScheduleRuns.response.200.extension_name`; string, required)
  - maxLength: `129` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$`
- `schedule` (`listRepoExtensionScheduleRuns.response.200.schedule`; string, required)
  - minLength: `1`
- `trigger` (`listRepoExtensionScheduleRuns.response.200.trigger`; string, required)
  - one of `"schedule"`, `"manual"`
- `status` (`listRepoExtensionScheduleRuns.response.200.status`; string, required)
  - one of `"running"`, `"succeeded"`, `"failed"`, `"interrupted"`
- `scheduled_at` (`listRepoExtensionScheduleRuns.response.200.scheduled_at`; string, required)
- `started_at` (`listRepoExtensionScheduleRuns.response.200.started_at`; string, required)
- `finished_at` (`listRepoExtensionScheduleRuns.response.200.finished_at`; any of, required)
  - any of the following: `string`, `null`
- `failure` (`listRepoExtensionScheduleRuns.response.200.failure`; any of, required)
  - any of the following: `string`, `null`

### 400

InvalidRequest

#### Example

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

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

### 401

InvalidCredentials

#### Example

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

- `_tag` (`listRepoExtensionScheduleRuns.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` (`listRepoExtensionScheduleRuns.response.404._tag`; string, required)
  - one of `"RepoNotFound"`

### 429

RateLimited

#### Example

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

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

### 500

RepoFailure

#### Example

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

- `_tag` (`listRepoExtensionScheduleRuns.response.500._tag`; string, required)
  - one of `"RepoFailure"`
- `reason` (`listRepoExtensionScheduleRuns.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-extension-schedule-runs/index.md
