# POST /apps/:app_id/link-passes

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

Send someone outside the team a one-tap link into an app, with no login: for example a subcontractor to their bookings. Name the row it is for (a booking) and its table: the link goes to the contact that row is kept for and opens the app's client page showing only rows kept for them (or name contact_id instead of a row). fields are the columns of that table they may change (for example accept or decline, sign off, hours); leave it out for look only. It never adds or deletes rows. send_by picks email, SMS or both. It stops working on expires_at (default: the latest date in the row plus 7 days, or 30 days for a contact) or when cancelled with cancel_app_link, and asks for a PIN only when the workspace's link security setting says so. The table must keep each row for a contact (row_visibility "portal_customer") and the app must be live with a client page. Answers the link (url) and how each send went. Workspace admins only.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `app_id` | path | string | yes | The app's id. |
| `table` | body | string | yes | The key of the table the rows are in (for example "bookings"). The person may change rows in this table only. |
| `row_id` | body | string | no | The row the link is for (a booking). The link goes to the contact this row is kept for, and opens all of their rows, not only this one. Send this or contact_id. |
| `contact_id` | body | string | no | Who the link is for, when no row is named: it opens the rows kept for this contact. Send this or row_id. |
| `send_by` | body | array | yes | How to send it: ["email"], ["sms"] or ["email", "sms"]. |
| `fields` | body | array | no | The column keys of this table they may change (for example ["status", "sign_off", "hours"]). Leave out for look only. Fields kept for the team cannot be given. |
| `message` | body | string | no | A short note from you, added to the email and the text. |
| `expires_at` | body | string | no | When the link stops working (ISO date or date and time). Leave out for the latest date in the row plus 7 days (30 days for a row with no date). At most a year. |
| `view_key` | body | string | no | Which client page of the app opens. Leave out for the first one. |
| `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/link-passes"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"table":"...","row_id":"...","contact_id":"..."}'
```

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