---
title: "GET /v2/vals/{val_id}/files/content"
method: GET
path: "/v2/vals/{val_id}/files/content"
tags: ["vals"]
---

# GET /v2/vals/{val_id}/files/content

`GET /v2/vals/{val_id}/files/content`

Download file content

## Path parameters

- `val_id` string, uuid, required

## Query parameters

- `version` integer
- `branch_id` string, uuid
- `path` string, required

## Headers

- `If-Match` string
- `If-Unmodified-Since` string
- `If-None-Match` string
- `If-Modified-Since` string
- `Cache-Control` string

## Response `200`

Contents of the file

## Other responses

- `304` — Cached version of the file is the same as the one requested
- `412` — Precondition failed

---

[API](https://skmtc.net/val-town/apis/val-town-api.md) · [All operations](https://skmtc.net/val-town/apis/val-town-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/val-town/val-town-api/revisions/4d8b6d2e6db3/schema)
