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

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

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

## Request

- Base URL: `https://api.val.town`
- URL: `https://api.val.town/v2/vals/{val_id}/branches/{branch_id}`
- Auth: none declared

Get a branch by id

## Path parameters

- `val_id` string, uuid, required
- `branch_id` string, uuid, required

## Response `200`

A Branch

- Branch: A Branch
  - `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

## Changes

- **2025-04-23** `1658025a5732`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/val-town/apis/val-town-api/changes/v2/vals/:val_id/branches/:branch_id/get.md)

---

[API](https://skmtc.dev/val-town/apis/val-town-api.md) - [All operations](https://skmtc.dev/val-town/apis/val-town-api/llms.txt) - [OpenAPI document](https://skmtc.dev/val-town/apis/val-town-api/revisions/e22111d39213?raw)
