---
title: "The branch's artifacts, newest first"
---

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

Path: Pando API › artifacts

`GET /v1/monorepos/{owner}/{monorepo}/repos/{repo}/branches/{branch}/artifacts`

## Authentication

Requires one of the following:

- `credential`, http, header `Authorization`
- `session`, apiKey, in cookie

## Path parameters

- `listArtifacts.path.owner` (string, required) — The monorepo's owner, a namespace (a person's login or an organization). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38}$`
- `listArtifacts.path.monorepo` (string, required) — The monorepo's name within its owner (or an old name). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9._]|-(?!-)){0,38}$`
- `listArtifacts.path.repo` (string, required) — The repo's `name` (`projects-web`).
- `listArtifacts.path.branch` (string, required) — The branch's name; a '/' in it raw or as %2F.

## Code samples

### cURL

```curl
curl --request GET \
  --url https://app.gitpando.com/v1/monorepos/string/string/repos/string/branches/string/artifacts \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/monorepos/string/string/repos/string/branches/string/artifacts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

### Python

```python
import requests

url = "https://app.gitpando.com/v1/monorepos/string/string/repos/string/branches/string/artifacts"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

At most 100, each with its newest version and its comment counts

#### Example

```json
{
  "branch": "string",
  "artifacts": [
    {
      "id": "string",
      "repo": "string",
      "branch": "string",
      "name": "string",
      "kind": "markdown",
      "title": "string",
      "latest": {
        "n": 0,
        "size": 0,
        "sha256": "string",
        "files": [
          {
            "path": "string",
            "size": 0,
            "sha256": "string",
            "type": "string"
          }
        ],
        "uploaded_by": "string",
        "machine": "string",
        "via": "web",
        "created_at": "2019-08-24T14:15:22Z"
      },
      "versions": 0,
      "comments": {
        "open": 0,
        "resolved": 0
      },
      "created_by": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "total": 0
}
```

- `listArtifacts.response.200.branch` (string, required)
- `listArtifacts.response.200.artifacts` (array<object>, required)
  - `listArtifacts.response.200.artifacts.id` (string, required)
  - `listArtifacts.response.200.artifacts.repo` (string, required)
  - `listArtifacts.response.200.artifacts.branch` (string, required)
  - `listArtifacts.response.200.artifacts.name` (string, required)
  - `listArtifacts.response.200.artifacts.kind` (string, required)
    - one of `"markdown"`, `"html"`, `"image"`
  - `listArtifacts.response.200.artifacts.title` (string | null, required) — The first heading or <title>, at most 200 characters.
  - `listArtifacts.response.200.artifacts.latest` (object, required)
    - `listArtifacts.response.200.artifacts.latest.n` (integer, required)
    - `listArtifacts.response.200.artifacts.latest.size` (integer, required) — All its files
    - `listArtifacts.response.200.artifacts.latest.sha256` (string, required) — The main file's.
    - `listArtifacts.response.200.artifacts.latest.files` (array<object>, required) — The main file first, then its images by path.
      - `listArtifacts.response.200.artifacts.latest.files.path` (string, required)
      - `listArtifacts.response.200.artifacts.latest.files.size` (integer, required)
      - `listArtifacts.response.200.artifacts.latest.files.sha256` (string, required)
      - `listArtifacts.response.200.artifacts.latest.files.type` (string, required)
    - `listArtifacts.response.200.artifacts.latest.uploaded_by` (string, required)
    - `listArtifacts.response.200.artifacts.latest.machine` (string | null, required) — The credential's machine; web from the browser.
    - `listArtifacts.response.200.artifacts.latest.via` (string, required)
      - one of `"web"`, `"cli"`
    - `listArtifacts.response.200.artifacts.latest.created_at` (string, required)
      - format `date-time`
  - `listArtifacts.response.200.artifacts.versions` (integer, required)
  - `listArtifacts.response.200.artifacts.comments` (object, required)
    - `listArtifacts.response.200.artifacts.comments.open` (integer, required)
    - `listArtifacts.response.200.artifacts.comments.resolved` (integer, required)
  - `listArtifacts.response.200.artifacts.created_by` (string, required)
  - `listArtifacts.response.200.artifacts.created_at` (string, required)
    - format `date-time`
  - `listArtifacts.response.200.artifacts.updated_at` (string, required)
    - format `date-time`
- `listArtifacts.response.200.total` (integer, required)


Source: https://docs.gitpando.com/api/artifacts/listArtifacts/index.md
