Compile Template
templates
Compile Template
Compile a template by substituting variables with values from context.
This endpoint:
- Parses the template to extract variables
- Validates syntax
- If context provided: validates against context and compiles
- If validate_only=True: only validates without compiling
Returns detailed information about variables, errors, and warnings.
POST
Compile Template
Documentation Index
Fetch the complete documentation index at: https://docs.kubiya.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Enter your Kubiya API token (format: Bearer )
Body
application/json
Request schema for template compilation endpoint.
Template string with {{variable}} syntax
Minimum string length:
1Context for compilation (variables, secrets, env_vars)
Only validate syntax without compiling
Environment ID for secret validation
Response
Successful Response
Response schema for template compilation endpoint.