Skip to content
Hoody.com

The exec service can scaffold ready-to-run script code from built-in templates and any custom templates you have defined. Generation is deterministic template rendering: the service substitutes your parameters into a fixed template body and returns the assembled script. It is not an AI or LLM-based code generator, and it does not parse natural-language directives or stream partial output.

Use this capability when you want to produce a script that follows a known shape — for example, a health-check, a deployment helper, or a recurring maintenance task — without writing the boilerplate by hand.

All operations live in the exec.templates namespace of the Hoody SDK and are documented in full on the Script Templates page.

OperationHTTPSDK call
List available templatesGET /api/v1/exec/templates/listclient.exec.templates.list()
Preview a templateGET /api/v1/exec/templates/previewclient.exec.templates.preview(...)
Generate code from a templatePOST /api/v1/exec/templates/generateclient.exec.templates.generate(...)
Create a custom templatePOST /api/v1/exec/templates/create-customclient.exec.templates.createCustom(...)
Update a custom templatePUT /api/v1/exec/templates/update-custom/:nameclient.exec.templates.updateCustom(...)
Delete a custom templateDELETE /api/v1/exec/templates/delete-custom/:nameclient.exec.templates.deleteCustom(...)

A typical workflow is: list the templates to find one that matches your use case, preview it to see the rendered output for your parameters, then call generate to produce the final script body. If none of the built-in templates fit, create a custom template and use it the same way.

Every request uses the standard API key header:

Authorization: Bearer <HOODY_API_KEY>

No additional scopes, quotas, or per-request rate-limit headers are required for template operations.

  • Script Templates — full reference for every templates endpoint, including parameters, request bodies, and response schemas.
  • Code Validation — run the generated script through the validation pipeline before executing it in a container.