# POST /spreadsheets/for-record

**Resource:** [Spreadsheets](./spreadsheets.md)  
**MCP tool:** `get_or_create_record_spreadsheet`  
**Scopes:** `spreadsheets:write`  
**Write operation:** yes

Get a record's own spreadsheet of a template, creating it on the first call. Use it to keep one sheet of a kind (for example Liabilities) on an opportunity, contact, company or work order, then add rows with append_spreadsheet_row. Calling it again returns the same sheet.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `record_type` | body | string | yes | The kind of record the sheet belongs to. |
| `record_id` | body | string | yes | UUID of that record. |
| `template_key` | body | string | no | The key of the spreadsheet template, for example "liabilities". Preferred over template_id. The template must allow this kind of record in its settings (attach_to). |
| `template_id` | body | string | no | UUID of the spreadsheet template. Use when the template has no key. |
| `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/spreadsheets/for-record"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"record_type":"...","record_id":"...","template_key":"..."}'
```

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