---
title: "One file's bytes"
description: "Its type from its extension, with `Content-Security-Policy: sandbox;\ndefault-src 'none'` so opening it never runs it on Pando's address,\nand X-Pando-Sha256.\n"
---

> 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}/artifacts/{id}/versions/{n}/files/{path}`

Its type from its extension, with `Content-Security-Policy: sandbox;
default-src 'none'` so opening it never runs it on Pando's address,
and X-Pando-Sha256.

## Authentication

Requires one of the following:

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

## Path parameters

- `getArtifactFile.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}$`
- `getArtifactFile.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}$`
- `getArtifactFile.path.id` (string, required)
- `getArtifactFile.path.n` (integer, required)
- `getArtifactFile.path.path` (string, required) — The file's path; may hold '/'.

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/monorepos/string/string/artifacts/string/versions/0/files/string';
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/artifacts/string/versions/0/files/string"

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

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

print(response.text)
```

## Responses

### 200

The bytes

#### Example

```text
string
```


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