Skip to main content
POST
Compile Template

Authorizations

Authorization
string
header
required

Enter your Kubiya API token (format: Bearer )

Body

application/json

Request schema for template compilation endpoint.

template
string
required

Template string with {{variable}} syntax

Minimum string length: 1
context
Context · object | null

Context for compilation (variables, secrets, env_vars)

validate_only
boolean
default:false

Only validate syntax without compiling

environment_id
string | null

Environment ID for secret validation

Response

Successful Response

Response schema for template compilation endpoint.

valid
boolean
required

Whether the template is valid

compiled
string | null

Compiled template (if valid and context provided)

variables
TemplateVariableSchema · object[]

Variables found in template

errors
ValidationErrorSchema · object[]

Validation/compilation errors

warnings
string[]

Non-fatal warnings