---
title: "List Build Source"
method: GET
path: "/v2/builds/{build_id}/source"
tags: ["builds"]
---

# List Build Source

`GET /v2/builds/{build_id}/source`

List files and directories at a path in a build's expanded source tree.

## Path parameters

- `build_id` string, uuid, required

## Query parameters

- `path` string
- `cursor` string, nullable
- `limit` integer

## Response `200`

Successful Response

- BuildSourceListResponse
  - `build_id` string, uuid, required
  - `status` 'pending' | 'indexing' | 'ready' | 'failed' | 'unavailable', required
  - `error` string, nullable
  - `path` string, required
  - `entries` BuildSourceEntry[]
    - `name` string, required
    - `path` string, required
    - `type` 'file' | 'directory', required
    - `size` integer, nullable
  - `next_cursor` string, nullable

## Other responses

- `400` — Invalid or malformed request
- `401` — Missing or invalid credentials
- `403` — Caller may not access this resource
- `404` — Referenced entity does not exist
- `409` — Resource already exists
- `422` — Validation Error

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) · [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hud/hud-platform/revisions/f4d79d769332/schema)
