# POST /apps/:app_id/tables/:table_key/rows

**Resource:** [App Data](./app-data.md)  
**MCP tool:** `add_app_rows`  
**Scopes:** `app-data:write`  
**Write operation:** yes

Add rows to an app table, up to 50 in one call. Each row is { data: { <column key>: value } }. Values are checked against the table's columns and nothing is added if any row is wrong. A row belongs to the person adding it unless an admin names another owner; on a customer table say which contact it is for with portal_contact_id. On a table that is one of the workspace's spreadsheets kept on records, say which record each row is for (record: { type, id }): it goes on that record's sheet. The caller needs a share that lets them write rows.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `app_id` | path | string | yes | The app's id. |
| `table_key` | path | string | yes | The table's key (for example "follow_ups"), as shown by list_app_tables. |
| `rows` | body | array | yes | The rows to add, at most 50 per call. Each is { data: { <column key>: value }, owner_user_id?, portal_contact_id?, record? }. |
| `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/:table_key/rows"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"rows":"...","require_approval":"..."}'
```

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