# POST /apps/:app_id/publish

**Resource:** [Apps](./apps.md)  
**MCP tool:** `publish_app`  
**Scopes:** `apps:write`  
**Write operation:** yes

Make the app's draft version live for the people it is shared with. It is NOT live straight away when requested by an AI connection: it waits for a workspace admin, who approves it in Approvals. Tell the person it is waiting, never that it is live. It is refused if the app has no views, lists a table that does not exist, or its views do not fit its audience.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `app_id` | path | string | yes | The app's id. |
| `version_id` | body | string | no | The draft version to publish: the app's draft_version_id from get_app. Required, so the approver approves exactly this version. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/apps/:app_id/publish"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"version_id":"...","require_approval":"..."}'
```

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