---
title: "Get App Tree"
method: GET
path: "/apps/{app_id}/tree"
---

# Get App Tree

`GET /apps/{app_id}/tree`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/apps/{app_id}/tree`
- Auth: none declared

List the files at ``ref``; an omitted ref is ``omitted_ref_branch``'s.

## Path parameters

- `app_id` string, uuid, required

## Query parameters

- `ref` string, nullable

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- TreeResponse
  - `ref` string, required
  - `sha` string, required
  - `files` TreeFileEntry[], required
    - `path` string, required
    - `kind` string, required
    - `size` integer, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xhostd/apis/xhostd-public.md) · [All operations](https://skmtc.dev/xhostd/apis/xhostd-public/llms.txt) · [OpenAPI document](https://skmtc.dev/xhostd/apis/xhostd-public/revisions/bf439c4d1789?raw)
