# Templated — how to use (mcp.ai)

Connect your Templated account and use 30 tools for images and design straight from your AI agent. Connect with your own API key. Templated is a platform that automates the generation of images and PDFs through a simple API, allowing users to design templates and render them multiple times with dynamic content.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_templated?ms=1787291220000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `templated_add_tags_to_template`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/templated`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/templated/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/templated/add/tags/to/template` — Tool to append new tags to an existing template without overwriting existing tags. Use when you already have the template ID and want to add additional tags.
  - body: { tags: string[], template_id: string }
- `POST https://api.mcp.ai/api/templated/clone/template/action` — Tool to clone an existing template. Use after you have a template ID and want to duplicate it with a new name. Example: "Clone template tpl_123 as 'Copy of Template'".
  - body: { id: string, name: string, description?: string }
- `POST https://api.mcp.ai/api/templated/count/template/clones` — Tool to get the count of cloned templates for a specific source template. Use when you need to know how many clones exist for a particular template without retrieving the full list.
  - body: { sourceTemplateId: string }
- `POST https://api.mcp.ai/api/templated/create/folder` — Tool to create a new folder for organizing templates and renders. Use when you need to organize templates into logical groups.
  - body: { name: string }
- `POST https://api.mcp.ai/api/templated/create/render` — Create document renders from templates. Supports single/batch rendering with extensive customization. Returns a list of render objects (one per page for multi-page templates).
  - body: { fps?: integer, cmyk?: boolean, name?: string, async?: boolean, merge?: boolean, pages?: object[], scale?: number, width?: integer, format?: string, height?: integer, layers?: object, flatten?: boolean, duration?: integer, template?: string, templates?: string[], background?: string, external_id?: string, transparent?: boolean, webhook_url?: string }
- `POST https://api.mcp.ai/api/templated/create/template` — Tool to create a new template with specified dimensions and layers. Use when you need to programmatically define a template with background images, text overlays, or shapes.
  - body: { name: string, width: integer, height: integer, layers: object[], duration?: integer }
- `POST https://api.mcp.ai/api/templated/delete/folder` — Tool to delete a folder by its ID. The folder must be empty before deletion. Use when you have confirmed the folder ID and need to remove it permanently.
  - body: { id: string }
- `POST https://api.mcp.ai/api/templated/delete/render` — Tool to delete a specific render by its ID. Use when you need to permanently remove a render and its associated output files.
  - body: { id: string }
- `POST https://api.mcp.ai/api/templated/delete/template` — Tool to delete a template by its unique ID. Use when you have confirmed the template ID and need to remove it permanently.
  - body: { id: string }
- `POST https://api.mcp.ai/api/templated/duplicate/render` — Tool to duplicate an existing render with the same settings and template. Use when you need to create a copy of a render. The duplicated render will use the same template and payload as the original.
  - body: { id: string }
- `POST https://api.mcp.ai/api/templated/get/account/information` — Tool to retrieve account information, including email, name, team name, API usage statistics, and subscription plan. Use to check current API quota usage or verify API token validity.
- `POST https://api.mcp.ai/api/templated/list/all/templates` — Tool to list all templates of a user. Use when you need to retrieve available templates with optional pagination.
  - body: { page?: integer, tags?: string, limit?: integer, query?: string, width?: integer, height?: integer, externalId?: string, includePages?: boolean, includeLayers?: boolean }
- `POST https://api.mcp.ai/api/templated/list/folder/renders` — Tool to list all renders in a specific folder. Use when you need to retrieve all renders contained in a folder with optional pagination.
  - body: { id: string, page?: integer, limit?: integer }
- `POST https://api.mcp.ai/api/templated/list/folder/templates` — Tool to list all templates in a specific folder. Use when you need to retrieve templates contained in a folder.
  - body: { id: string, page?: integer, limit?: integer }
- `POST https://api.mcp.ai/api/templated/list/folders` — Tool to list all folders in the account. Use when you need to retrieve available folders that help organize templates and renders.
  - body: { page?: integer, limit?: integer, query?: string }
- `POST https://api.mcp.ai/api/templated/list/fonts` — Tool to list all available fonts including Google Fonts and user-uploaded custom fonts. Use when you need to retrieve the names and metadata of fonts available in the account.
- `POST https://api.mcp.ai/api/templated/list/gallery/templates` — Tool to list templates from the public gallery. Use when you need to browse available templates that can be cloned for use.
  - body: { page?: integer, tags?: string, limit?: integer, query?: string, width?: integer, height?: integer, category?: string, includeLayers?: boolean }
- `POST https://api.mcp.ai/api/templated/list/renders` — Tool to list all renders in the account. Use when you need to retrieve all available renders for the authenticated user.
  - body: { page?: integer, limit?: integer }
- `POST https://api.mcp.ai/api/templated/list/template/clones` — Tool to list all cloned templates in the account. Use when you need to retrieve templates that were cloned from the gallery or other sources, with optional filtering by source template ID or external 
  - body: { page?: integer, limit?: integer, externalId?: string, sourceTemplateId?: string }
- `POST https://api.mcp.ai/api/templated/list/template/renders` — Tool to list all renders of a specific template. Use after obtaining a template ID when you need paginated render results.
  - body: { id: string, page?: integer, page_size?: integer }
- `POST https://api.mcp.ai/api/templated/list/uploads` — Tool to list all uploaded images in the account. Returns upload details including URLs and metadata. Use when you need to retrieve available uploads with optional pagination.
  - body: { page?: integer, tags?: string, limit?: integer, query?: string }
- `POST https://api.mcp.ai/api/templated/merge/renders` — Tool to merge multiple renders into a single PDF output. Use when combining multiple images or pages into a unified document. When host=true, returns a URL to the hosted file. When host=false, returns
  - body: { ids: string[], host?: boolean, urls?: string[] }
- `POST https://api.mcp.ai/api/templated/move/render/to/folder` — Tool to move a render to a specific folder. Use when you need to organize renders by moving them into folders.
  - body: { folder_id: string, render_id: string }
- `POST https://api.mcp.ai/api/templated/move/template/to/folder` — Tool to move a template to a folder. Use when you need to organize templates by moving them into specified folders.
  - body: { folderId: string, templateId: string }
- `POST https://api.mcp.ai/api/templated/remove/template/tags` — Tool to remove specific tags from a template. Use when you have a template ID and want to untag existing tags.
  - body: { tags: string[], template_id: string }
- `POST https://api.mcp.ai/api/templated/retrieve/render` — Tool to retrieve details of a specific render by its ID. Use after obtaining the render ID when you need details of a render.
  - body: { id: string }
- `POST https://api.mcp.ai/api/templated/retrieve/template` — Tool to retrieve a single Template by its unique ID. Use after obtaining the template ID.
  - body: { id: string }
- `POST https://api.mcp.ai/api/templated/update/folder` — Tool to update an existing folder's properties. Use when you need to change a folder's name or other attributes.
  - body: { id: string, name?: string }
- `POST https://api.mcp.ai/api/templated/update/template` — Tool to update an existing template including its properties and layers. Use replaceLayers=true to replace all layers (layers not in array will be removed), or false/omit to update existing layers and
  - body: { id: string, name?: string, pages?: object[], width?: integer, height?: integer, layers?: object[], description?: string, replaceLayers?: boolean }
- `POST https://api.mcp.ai/api/templated/update/template/tags` — Tool to overwrite all tags on a template. Use when you need to replace the entire tag list for a specific template.
  - body: { tags: string[], template_id: string }

## Example prompts
- "What can I do in Templated?"
- "Show me a summary of my Templated account"

## More
- Page: https://mcp.ai/templated
- Agent spec (llms.txt): https://mcp.ai/templated/llms.txt
- Postman collection: https://mcp.ai/templated/postman.json
