---
title: "Get an app code file"
method: GET
path: "/api/apps/{app_id}/code/content"
---

# Get an app code file

`GET /api/apps/{app_id}/code/content`

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns the text of one file in the app's source.

Get paths from [List app code files](/api-reference/list-app-code-files). A file that list leaves out, such as `package-lock.json`, can still be read by naming it.

Only UTF-8 text files up to 5 MB can be read. A path outside the app is refused, and so are the app's `.git` folder and `.agents/.env`, which Base44 manages and which can hold credentials.

Reads come from the app's live sandbox, the same files the builder's code editor shows, including changes that haven't been published yet. If no sandbox is running, the call starts one, so the first call after a quiet period takes noticeably longer than later ones.

Internally this route can follow a feature branch, but the parameter that selects one isn't part of the public API, so reads come from the app's main line.

This is limited to 300 requests a minute per app for each workspace's personal API keys, so every key in a workspace shares one allowance. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key, including a read-only one, from anyone with access to the app, viewers included. Workspace API keys are not authorized for it.</Note>

## Path parameters

- `app_id` string, required — ID of the app whose code to read.

## Query parameters

- `path` string, required — Path of the file, relative to the app root.

## Response `200`

The file's text.

- FileContent — One file's text.
  - `path` string, required — Path of the file, relative to the app root.
  - `content` string, required — The file's full text.

## Other responses

- `400` — `path` is empty, points outside the app, or is the app root.
- `401` — Missing or invalid credentials.
- `403` — You don't have access to this app, you used a workspace API key, or `path` is in the app's `.git` folder or is `.agents/.env`.
- `404` — App not found, or there's no file at `path`.
- `413` — The file is larger than 5 MB.
- `415` — The file isn't UTF-8 text, or `path` is a folder.
- `422` — `path` is missing.
- `429` — Too many requests for this app in the last minute from personal API keys in your workspace.

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-09-29** `d2b7ac8beb0c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/adexad/apis/base44-app-management-api/changes/api/apps/:app_id/code/content/get.md)

---

[API](https://skmtc.dev/adexad/apis/base44-app-management-api.md) · [All operations](https://skmtc.dev/adexad/apis/base44-app-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/adexad/apis/base44-app-management-api/revisions/862b46d283f0?raw)
