---
title: "listRepoEvents"
---

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

# listRepoEvents

Path: Forge API › events

`GET /repos/{repo_id}/events`

List a page of the repo's events, oldest first, with latest_seq, the cursor to read on from, and oldest_seq, the oldest event the log still keeps: a cursor below oldest_seq - 1 missed events, so read state afresh.

## Path parameters

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

## Query parameters

- `after_seq` (`listRepoEvents.query.after_seq`; string, optional)
- `types` (`listRepoEvents.query.types`; string, optional)
- `branch` (`listRepoEvents.query.branch`; string, optional)
  - minLength: `1`

## Code samples

### cURL

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

### TypeScript

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

response = requests.get(url)

print(response.text)
```

## Responses

### 200

RepoEventPage

#### Example

```json
{
  "events": [
    {
      "seq": -9007199254740991,
      "topic": "string",
      "type": "string",
      "payload": null,
      "actor_id": "string",
      "created_at": "string"
    }
  ],
  "latest_seq": -9007199254740991,
  "oldest_seq": -9007199254740991
}
```

- `events` (`listRepoEvents.response.200.events`; array of object, required)
  - `seq` (`listRepoEvents.response.200.events.seq`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `topic` (`listRepoEvents.response.200.events.topic`; string, required)
  - `type` (`listRepoEvents.response.200.events.type`; string, required)
  - `payload` (`listRepoEvents.response.200.events.payload`; unknown, required)
  - `actor_id` (`listRepoEvents.response.200.events.actor_id`; any of, required)
    - any of the following: `string`, `null`
  - `created_at` (`listRepoEvents.response.200.events.created_at`; string, required)
- `latest_seq` (`listRepoEvents.response.200.latest_seq`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `oldest_seq` (`listRepoEvents.response.200.oldest_seq`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 400

InvalidRequest

#### Example

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

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

### 401

InvalidCredentials

#### Example

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

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

### 429

RateLimited

#### Example

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

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

### 500

RepoFailure

#### Example

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

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