Overview
The Templates API manages the mandate template registry. Built-in templates provide framework-specific defaults (e.g. LangGraph, CrewAI, AutoGen). Organizations can create, update, and delete custom templates. Built-in templates are read-only.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /templates | List all templates (built-in + custom) |
| GET | /templates/:id | Get template details |
| POST | /templates | Create custom org template |
| PATCH | /templates/:id | Update custom template |
| DELETE | /templates/:id | Delete custom template (built-in cannot be deleted) |
Example
curl http://localhost:4000/templates \
-H "Authorization: Bearer tr_abc123"