Templates
Use a template
Copy a template into your account as a new workflow.
Creates a saved workflow from the template’s YAML, carrying its kind. A bot template keeps its name; the others are named "<template> (copy)". Pass name to choose.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Path parameters
Body
application/jsonMinimum string length: 1 Maximum string length: 512
Available options: json, yaml, markdown, text
Response
Created. Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
invalid_json — body is not valid JSON
application/json
unauthorized — missing, invalid or revoked ozk_ key
application/json
template_not_found — no active template with that id; not_found — no route for this method on this path: every other method answers it
application/json
invalid_params — name must be 1 to 512 characters · invalid_workflow — the template’s YAML fails the save-time lint for its kind (errors[] and warnings[], as POST /v1/workflows); nothing is created
application/json