# GET /apps/:app_id/files

**Resource:** [Apps](./apps.md)  
**MCP tool:** `read_app_files`  
**Scopes:** `apps:read`  
**Write operation:** no

An app's files (its code): manifest.json, tables.json, src/main.tsx and its views, as { path: content }, from its draft, else its live version. which says which; an app with nothing saved yet answers the starter or blank app it begins from ("starting point", version_id null). Pass version_id back to write_app_files as base_version_id. Workspace admins only. Free read.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `app_id` | path | string | yes | The app's id. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/apps/:app_id/files"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`