# POST /ai/fill-form

**Resource:** [AI](./ai.md)  
**Scopes:** `ai:use`  
**Write operation:** yes

Use AI to pre-fill form fields based on a prompt. template_id and prompt are required. The system fetches form fields automatically.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `template_id` | body | uuid | yes | Form template ID |
| `prompt` | body | string | yes | Instructions for filling the form, e.g. "Fill this incident report for a slip-and-fall at the warehouse on 28 March 2026" |

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