Skip to main content
POST
/
v1
/
accounts
/
{account_id}
/
agents
/
validate-template
Validate an agent template
curl --request POST \
  --url https://api.itellico.ai/v1/accounts/{account_id}/agents/validate-template \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "template": "",
  "allowed_variables": [
    "<string>"
  ]
}
'
{
  "valid": true,
  "errors": [
    {
      "type": "<string>",
      "message": "<string>",
      "line": 123,
      "variable": "<string>"
    }
  ],
  "warnings": [
    {
      "type": "<string>",
      "message": "<string>",
      "line": 123,
      "variable": "<string>"
    }
  ],
  "variables": [
    "<string>"
  ],
  "unknown_variables": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.itellico.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Path Parameters

account_id
string
required

Body

application/json

Request body for validating a Jinja-capable agent template.

template
string
default:""

Template text to validate using the agent Jinja runtime.

allowed_variables
string[] | null

Optional extra variable paths to treat as known for warnings.

Response

OK

Validation result for a Jinja-capable agent template.

valid
boolean
required
errors
JinjaTemplateValidationIssueSchema · object[]
warnings
JinjaTemplateValidationIssueSchema · object[]
variables
string[]
unknown_variables
string[]