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

MethodPathDescription
GET/templatesList all templates (built-in + custom)
GET/templates/:idGet template details
POST/templatesCreate custom org template
PATCH/templates/:idUpdate custom template
DELETE/templates/:idDelete custom template (built-in cannot be deleted)

Example

curl http://localhost:4000/templates \
  -H "Authorization: Bearer tr_abc123"