---
title: "listRepoCustomRecordsAtCommit"
---

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

# listRepoCustomRecordsAtCommit

Path: Forge API › customRecords

`GET /repos/{repo_id}/commits/{commit_id}/custom-models/{model_api_name}/records`

A page of a custom model's records at the commit, in id order. To filter or sort, or to count them, use searchRepoCustomRecordsAtCommit.

## Path parameters

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

## Query parameters

- `cursor` (`listRepoCustomRecordsAtCommit.query.cursor`; string, optional)
  - minLength: `1`
- `limit` (`listRepoCustomRecordsAtCommit.query.limit`; string, optional)
  - pattern: `^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/repos/<repo_id>/commits/<commit_id>/custom-models/<model_api_name>/records'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/commits/<commit_id>/custom-models/<model_api_name>/records';
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>/commits/<commit_id>/custom-models/<model_api_name>/records"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

CustomRecordPage

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "fields": {
        "property1": {
          "id": "string",
          "filename": "string",
          "content_type": "string",
          "size": 0,
          "created_by_id": "string",
          "created_at": "string",
          "uploaded_at": "string",
          "promoted_at": "string"
        },
        "property2": {
          "id": "string",
          "filename": "string",
          "content_type": "string",
          "size": 0,
          "created_by_id": "string",
          "created_at": "string",
          "uploaded_at": "string",
          "promoted_at": "string"
        }
      },
      "formulas": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "next_cursor": "string",
  "references": [
    {
      "record_id": "string",
      "live": {
        "model_api_name": "string",
        "label": "string"
      }
    }
  ],
  "users": [
    {
      "id": "string",
      "display_name": "string"
    }
  ]
}
```

- `data` (`listRepoCustomRecordsAtCommit.response.200.data`; array of object, required)
  - `id` (`listRepoCustomRecordsAtCommit.response.200.data.id`; string, required)
    - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
  - `fields` (`listRepoCustomRecordsAtCommit.response.200.data.fields`; map of any of, required)
  - `formulas` (`listRepoCustomRecordsAtCommit.response.200.data.formulas`; map of string, required)
- `next_cursor` (`listRepoCustomRecordsAtCommit.response.200.next_cursor`; any of, required)
  - any of the following: `PageCursor`, `null`
- `references` (`listRepoCustomRecordsAtCommit.response.200.references`; array of object, required) — The records in this repo that the page's reference fields hold, at the revision the page reads. live holds a record's model and label, the value of its primary field, or its model's name and the end of its id when that is empty; live is null for a deleted record. A record the caller can't read has no entry. A reference to another repo's record has none either: ask that repo's searchRepoCustomRecordLabelsAtBranch.
  - `record_id` (`listRepoCustomRecordsAtCommit.response.200.references.record_id`; string, required)
    - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
  - `live` (`listRepoCustomRecordsAtCommit.response.200.references.live`; any of, required)
    - any of the following:
      - `LiveReferencedRecord`
        - `model_api_name` (`LiveReferencedRecord.model_api_name`; string, required)
          - minLength: `1`
        - `label` (`LiveReferencedRecord.label`; string, required)
          - minLength: `1`
      - `null`
- `users` (`listRepoCustomRecordsAtCommit.response.200.users`; array of object, required) — The users that the page's user fields name, with their display names.
  - `id` (`listRepoCustomRecordsAtCommit.response.200.users.id`; string, required)
    - pattern: `^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$`
  - `display_name` (`listRepoCustomRecordsAtCommit.response.200.users.display_name`; string, required)
    - minLength: `1`

### 400

InvalidCursor | InvalidRequest

#### Example

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

Any of the following:

- `InvalidCursorEncoded`
  - `_tag` (`InvalidCursorEncoded._tag`; string, required)
    - one of `"InvalidCursor"`
  - `reason` (`InvalidCursorEncoded.reason`; string, required)
    - minLength: `1`
- `InvalidRequestEncoded`
  - `_tag` (`InvalidRequestEncoded._tag`; string, required)
    - one of `"InvalidRequest"`
  - `part` (`InvalidRequestEncoded.part`; string, required)
    - one of `"path"`, `"query"`, `"headers"`, `"body"`
  - `issues` (`InvalidRequestEncoded.issues`; array of object, required)
    - `path` (`InvalidRequestEncoded.issues.path`; array\<any of\>, required)
      - any of the following: `string`, `integer`
    - `message` (`InvalidRequestEncoded.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

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

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

CommitNotFound | CustomModelNotFound | RepoNotFound

#### Example

```json
{
  "_tag": "CommitNotFound",
  "commit_id": "string"
}
```

Any of the following:

- `CommitNotFoundEncoded`
  - `_tag` (`CommitNotFoundEncoded._tag`; string, required)
    - one of `"CommitNotFound"`
  - `commit_id` (`CommitNotFoundEncoded.commit_id`; string, required)
    - pattern: `^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `CustomModelNotFoundEncoded`
  - `_tag` (`CustomModelNotFoundEncoded._tag`; string, required)
    - one of `"CustomModelNotFound"`
  - `api_name` (`CustomModelNotFoundEncoded.api_name`; string, required)
    - minLength: `1`
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 429

RateLimited

#### Example

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

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

### 500

RepoFailure

#### Example

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

- `_tag` (`listRepoCustomRecordsAtCommit.response.500._tag`; string, required)
  - one of `"RepoFailure"`
- `reason` (`listRepoCustomRecordsAtCommit.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-custom-records-at-commit/index.md
