Native AI Agent Support

Built for AI Agents.

Templates, rendering, and AI generation — all accessible to autonomous agents.
No human in the loop required.

Two ways in.

REST Guide

Agent REST Guide

For custom agents, n8n AI nodes, or any LLM that can read a JSON manifest and call REST endpoints.

Manifest endpoint public, no auth
templateson.com/api/agents
Fetch once

Agent fetches /api/agents and gets a complete JSON description of every endpoint, parameter, auth setup, and example.

Act autonomously

Agent calls the REST API directly — list templates, render images, generate new designs — all from the manifest alone.

Five tools.
Full control.

list_templatesdiscovery

List every template accessible to your API key — your own and all public ones. Returns IDs, names, and visibility.

get_template_fieldsintrospection

Inspect a template's dynamic fields before rendering. Returns field names and types (text or image).

render_imageoutput

Render any template as a PNG. Pass field values and get the image back inline — no download links, no extra steps.

render_pdfoutput

Same as render_image but produces a PDF document. Identical parameters, base64-encoded result.

generate_and_save_templateai generation

Describe a design in plain language. AI generates the Fabric.js template and saves it — returns a template_id ready to render.

See it in action.

# 1. List your templates
curl https://templateson.com/api/v1/templates/list \
  -H "X-API-Key: YOUR_KEY"

# 2. Get fields for a template
curl https://templateson.com/api/v1/templates/TEMPLATE_ID/fields \
  -H "X-API-Key: YOUR_KEY"

# 3. Render it as PNG
curl -X POST https://templateson.com/api/v1/image \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"templateId":"TEMPLATE_ID","title":"Hello","format":"json"}'

Ready to connect?

Get your API key and plug Templates on into your agent in minutes.