---
title: "List the data-model source files for a deployment"
method: GET
path: "/build/api/v1/deployments/{deploymentId}/data-model/files"
tags: ["Data Model"]
---

# List the data-model source files for a deployment

`GET /build/api/v1/deployments/{deploymentId}/data-model/files`

## Path parameters

- `deploymentId` integer, required

## Query parameters

- `withContent` boolean
- `branchName` string
- `showLastCLIUpload` boolean

## Response `200`

- SourceTreeResponse
  - `data` object[], required

---

[API](https://skmtc.net/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.net/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/versions/a0c6b1d2ac96/schema)
