Uses one template_id to create a new automation rule under the authenticated tenant. Authentication uses x-api-key with optional x-tenant-id; RBAC requires automation:create. The controller validates `{ variables }`, then service loads template, applies substitutions into template_config, creates rule via createAutomationRule, and increments automation_templates.usage_count/last_used. Missing templates surface as 500.
Content type: application/json · schema UseAutomationTemplateRequest
Success response 201 · schema AutomationRuleResponse
activeinactivedrafterrorlownormalhighcriticaltime_basedevent_basedcondition_basedmanualrecurringwebhookequalsnot_equalsgreater_thanless_thangreater_than_or_equalless_than_or_equalcontainsnot_containsstarts_withends_withinnot_inexistsnot_existsregex_matchstringnumberbooleandatearrayobjectandoremail_notificationsms_notificationwebhook_calldatabase_updateticket_creationticket_updateproject_updatetime_entry_creationinvoice_generationcustom_scriptworkflow_executionsystem_command