# POST /exports/templates/:template_id/run

**Resource:** [Export Templates](./export-templates.md)  
**MCP tool:** `run_export_template`  
**Scopes:** `exports:read`  
**Write operation:** no

Run an export template and return the file (CSV or XLSX, per the template output settings).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `template_id` | path | string | yes |  |
| `view_id` | body | string | no | Run against this saved view. Defaults to the most recently updated view on the template. |
| `filters` | body | array | no | Replace the view filters for this run only. Nothing is saved. |
| `extra_filters` | body | array | no | Append to the view filters for this run only. Ignored when `filters` is also sent. |
| `sort` | body | array | no | Override the view sort for this run only. Send null to run unsorted. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/exports/templates/:template_id/run"   -H "Authorization: Bearer YOUR_API_KEY"
```

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