# POST /voice-agents/:agent_id/tests/add-template-tests

**Resource:** [Agents](./voice-agents.md)  
**MCP tool:** `add_voice_agent_template_tests`  
**Scopes:** `voice-agents:write`  
**Write operation:** yes

Add the ready-made chat tests from the template this agent was built from. Agents created from a template get them automatically; use this for older agents or to restore deleted ones. Tests already there are left alone.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `agent_id` | path | string | yes |  |
| `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/voice-agents/:agent_id/tests/add-template-tests"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"require_approval":"..."}'
```

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