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

# GET /v2/vals/{val_id}/branches

`GET /v2/vals/{val_id}/branches`

List all branches for a val

## Path parameters

- `val_id` string, uuid, required

## Query parameters

- `offset` integer, required
- `limit` integer, required

## Response `200`

A paginated result set

- object — A paginated result set
  - `data` Branch[], required
    - `name` string, required
    - `id` string, uuid, required — The id of the branch
    - `version` integer, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `forkedBranchId` string, nullable, required — The id of the branch this branch was forked from
    - `links` object, required
      - `self` string, uri, required — The URL of this resource on this API
      - `html` string, uri, required — The URL of this resource on Val Town
  - `links` PaginationLinks, required — Links to use for pagination
    - `self` string, uri, required — URL of this page
    - `prev` string, uri — URL of the previous page, if any
    - `next` string, uri — URL of the next page, if any

---

[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/versions/4d8b6d2e6db3/schema)
