GET /api/contracts/templates/:id
Return the complete template, including the JSON definition ready to deploy.
Auth
None.
Response — 200
{
"ok": true,
"template": {
"id": "force-threshold-alarm",
"name": "Force Threshold Alarm",
"category": "Mechanics",
"description": "...",
"use_cases": [ "..." ],
"operators_used": ["NM19","KO42"],
"definition": {
"name": "force_threshold_alarm",
"version": "1.0",
"states": { ... },
"transitions": [ ... ]
}
}
}
Errors
| Status | Body |
|---|---|
404 | Template not found |
Curl
curl -sS https://zeqapi.com/api/contracts/templates/force-threshold-alarm