Create template
Creates a template owned by the authenticated user. Private and
user-scoped by default; provide workspace_id to create a
workspace-scoped template (caller must be a workspace admin).
Pass template_type: chain with a chain_config to install a chain
method-spec (HAR-1098). Chain creation is subject to the same per-plan
step cap as launching a chain (Free is capped; paid is unlimited).
Authorizations
API key authentication. Pass your key as a Bearer token.
Keys use the format hm_live_<32 hex chars>.
Generate keys from your Harmonica dashboard settings.
Body
When set, creates a workspace-scoped template (caller must be a workspace admin).
Pass 'chain' (with chain_config) to install a chain method-spec (HAR-1098). Defaults to 'single'.
single, chain Multi-step chain definition (used when template_type is 'chain'). Validated server-side (HAR-915): at least one step, unique step ids, valid role / assignment / completion shapes.
Spec identity for a registry install; the server stamps install_hash + timestamps (HAR-1108).
Response
Template created
single or chain
Chain definition for chain templates; null for single templates (HAR-1098).
Provenance for a template installed from the OFL method-specs registry; null for admin-authored templates (HAR-1108).