KosmoKrator

rendering

APITemplate.io MCP, CLI, and Lua Integration for AI Agents

APITemplate.io integration docs for AI agents: MCP gateway setup, APITemplate.io CLI commands, Lua API reference, credentials, and function schemas.

APITemplate.io for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
apitemplateio.apitemplateio_create_pdf Write write 12 Generate a PDF document from an API Template IO template. Provide a template ID and the data to merge into the template.
apitemplateio.apitemplateio_create_image Write write 8 Generate PNG and/or JPEG images from an APITemplate.io image template. Provide a template ID and override payload.
apitemplateio.apitemplateio_create_pdf_from_html Write write 12 Generate a PDF from raw HTML, optional CSS, dynamic data, and rendering settings.
apitemplateio.apitemplateio_create_pdf_from_url Write write 10 Generate a PDF by rendering a public URL with optional page settings.
apitemplateio.apitemplateio_create_pdf_from_markdown Write write 12 Generate a PDF from Markdown, optional CSS, dynamic data, and rendering settings.
apitemplateio.apitemplateio_merge_pdfs Write write 8 Merge multiple PDF URLs or PDF data URLs into a single PDF.
apitemplateio.apitemplateio_list_objects Read read 5 List generated PDFs and images, optionally filtered by template ID, transaction type, or transaction reference.
apitemplateio.apitemplateio_delete_object Write write 1 Delete a generated PDF or image by transaction reference.
apitemplateio.apitemplateio_get_current_user Read read 0 Get APITemplate.io account information for the configured API key, including plan and usage fields returned by the API.
apitemplateio.apitemplateio_list_templates Read read 6 List available templates in API Template IO. Returns a paginated list of template IDs, names, and metadata.
apitemplateio.apitemplateio_get_template Read read 1 Get details for a specific API Template IO template by ID. Returns the template definition, schema, and configuration.
apitemplateio.apitemplateio_update_template Write write 4 Update a PDF template body, CSS, or settings. This uses APITemplate.io experimental template-management API.