Templated AI API

AI-powered template generation

GitHub OpenAPI

Operations 2

POST /accounts/{slug}/ai/generate Generate template with AI #
POST /accounts/{slug}/ai/follow-up Get a follow-up question for a guided brief #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/templated-email:templated-email-ai-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

templated-email-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Templated AI API
  version: 1.0.0
  description: 'The Templated API gives you programmatic access to the AI-powered email template platform.

    Create, manage, and generate email templates, manage brand assets, and integrate with

    third-party design tools.


    ## Authentication

    Authenticate with an API key (`Authorization: Bearer tmpl_sk_...`) created under

    Integrations → API Keys in the app, or with a session cookie when calling from the

    signed-in web app. Keys are scoped to a single account and act with editor permissions.


    ## Base URL

    All requests are made to `https://app.templated.email/api`.'
  contact:
    name: Templated Support
    email: support@templated.email
  license:
    name: Proprietary
servers:
- url: https://app.templated.email/api
  description: Production
security:
- bearerAuth: []
- sessionCookie: []
tags:
- name: AI
  description: AI-powered template generation
paths:
  /accounts/{slug}/ai/generate:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    post:
      operationId: generateTemplate
      tags:
      - AI
      summary: Generate template with AI
      description: 'Describe an email in natural language and receive a complete, styled template.

        Uses your brand kit for consistent styling. Subject to daily generation limits per plan.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                  - prompt
                  - guided
                  default: prompt
                prompt:
                  type: string
                  maxLength: 5000
                  description: Natural language description of the email (required in prompt mode)
                  example: Create a welcome email for new SaaS users with a hero section and 3 feature highlights
                brief:
                  $ref: '#/components/schemas/GuidedBrief'
                  description: Structured brief (required in guided mode)
                emailType:
                  type: string
                  enum:
                  - newsletter
                  - announcement
                  - welcome
                  - promotion
                  - event
                  - update
                  - re-engagement
                  - transactional
                referenceContent:
                  type: string
                  maxLength: 10000
                  description: Optional reference content to base the generation on
                conversationId:
                  type: string
                  format: uuid
                  description: For iterative generation within a conversation
                parentGenerationId:
                  type: string
                  format: uuid
                  description: ID of parent generation for refinements
      responses:
        '200':
          description: Template generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  generationId:
                    type: string
                  conversationId:
                    type: string
                  status:
                    type: string
                    example: completed
                  result:
                    type: object
                    properties:
                      craftState:
                        type: object
                        description: Block-based editor state
                      subjectLine:
                        type: string
                      previewText:
                        type: string
                  usage:
                    type: object
                    properties:
                      generationsUsedToday:
                        type: integer
                      generationsRemainingToday:
                        type: integer
                      planLimit:
                        type: integer
                  warnings:
                    type: array
                    items:
                      type: string
        '429':
          description: Daily AI generation limit reached
  /accounts/{slug}/ai/follow-up:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    post:
      operationId: aiFollowUp
      tags:
      - AI
      summary: Get a follow-up question for a guided brief
      description: 'Given a guided-mode brief, returns one clarifying question the AI would like answered

        before generating. Pass the question and answer back in `brief.followUp` when calling generate.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - brief
              properties:
                brief:
                  $ref: '#/components/schemas/GuidedBrief'
      responses:
        '200':
          description: Follow-up question
          content:
            application/json:
              schema:
                type: object
                properties:
                  question:
                    type: string
components:
  parameters:
    AccountSlug:
      name: slug
      in: path
      required: true
      schema:
        type: string
      description: Account slug identifier
      example: my-company
  schemas:
    GuidedBrief:
      type: object
      required:
      - purpose
      - content
      properties:
        purpose:
          type: string
          maxLength: 200
        content:
          type: string
          maxLength: 5000
        vibe:
          type: string
          maxLength: 200
        layout:
          type: string
          enum:
          - single-column
          - hero-two-col
          - zigzag
          - grid
          - ai-decide
        background:
          type: string
          enum:
          - white-clean
          - soft-tint
          - bold-color
          - photo-forward
        images:
          type: string
          enum:
          - own
          - stock
          - none
        followUp:
          type: object
          properties:
            question:
              type: string
              maxLength: 500
            answer:
              type: string
              maxLength: 1000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: tmpl_sk_...
      description: API key created under Integrations → API Keys. Account-scoped, editor permissions.
    sessionCookie:
      type: apiKey
      in: cookie
      name: next-auth.session-token
      description: Session cookie obtained after signing in