# POST /apps/:app_id/tables/attach-table

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

Give an app a table another app made, under the app's own key for it (table_id from list_workspace_app_tables, which the person picked). Nothing is copied: both apps work on the same rows, so what is added in one shows in the other (a leave request showing on a roster, a site measure feeding a quote). access "read" (the default) lets this app show the table and never change it; "write" lets it add, change and delete rows too. This app's own field rules sit on top (update_app_table), and it never changes the table's name, columns or who sees its rows: that is done in the app that made it. Stop using it with remove_app_table; the table and its rows stay. Workspace admins only.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `app_id` | path | string | yes | The app's id. |
| `table_id` | body | string | yes | The table to use: an id from list_workspace_app_tables (a table some app made). |
| `key` | body | string | yes | What this app calls the table in its code and manifest: lower case letters, digits and underscores, starting with a letter (for example "leave"). |
| `access` | body | string | no | "read" (the default): this app shows the table and never changes it. "write": this app adds, changes and deletes its rows too. |
| `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/tables/attach-table"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"table_id":"...","key":"...","access":"..."}'
```

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