Templated Templates API

Email template CRUD operations

GitHub OpenAPI

Operations 7

GET /accounts/{slug}/templates List all templates #
POST /accounts/{slug}/templates Create a template #
GET /accounts/{slug}/templates/{id} Get a template #
PATCH /accounts/{slug}/templates/{id} Update a template #
DELETE /accounts/{slug}/templates/{id} Delete a template #
POST /accounts/{slug}/templates/{id}/duplicate Duplicate a template #
POST /convert-html Convert HTML to a block document #

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-templates-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-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Templated Templates 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: Templates
  description: Email template CRUD operations
paths:
  /accounts/{slug}/templates:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    get:
      operationId: listTemplates
      tags:
      - Templates
      summary: List all templates
      responses:
        '200':
          description: List of templates
          content:
            application/json:
              schema:
                type: object
                properties:
                  templates:
                    type: array
                    items:
                      $ref: '#/components/schemas/TemplateSummary'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      operationId: createTemplate
      tags:
      - Templates
      summary: Create a template
      description: Create a new email template. Enforces plan limits and watermark rules.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateInput'
      responses:
        '201':
          description: Template created
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  template:
                    $ref: '#/components/schemas/Template'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          description: Plan limit reached or insufficient permissions
  /accounts/{slug}/templates/{id}:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    - name: id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: getTemplate
      tags:
      - Templates
      summary: Get a template
      description: Returns the full template including HTML content and design JSON.
      responses:
        '200':
          description: Template details
          content:
            application/json:
              schema:
                type: object
                properties:
                  template:
                    $ref: '#/components/schemas/Template'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      operationId: updateTemplate
      tags:
      - Templates
      summary: Update a template
      description: Update template fields. Non-creators need edit:any permission.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateInput'
      responses:
        '200':
          description: Template updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  template:
                    $ref: '#/components/schemas/Template'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteTemplate
      tags:
      - Templates
      summary: Delete a template
      description: Permanently delete a template. Non-creators need delete:any permission.
      responses:
        '200':
          description: Template deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Template deleted
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /accounts/{slug}/templates/{id}/duplicate:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    - name: id
      in: path
      required: true
      schema:
        type: string
    post:
      operationId: duplicateTemplate
      tags:
      - Templates
      summary: Duplicate a template
      description: Create a copy of an existing template. Appends "(Copy)" to the name.
      responses:
        '201':
          description: Template duplicated
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  template:
                    $ref: '#/components/schemas/Template'
        '403':
          description: Plan limit reached
        '404':
          $ref: '#/components/responses/NotFound'
  /convert-html:
    post:
      operationId: convertHtml
      tags:
      - Templates
      summary: Convert HTML to a block document
      description: 'AI-converts raw email HTML into a block-based craftState document, making it editable in the

        visual editor. Counts against the account''s monthly design-import allowance. The account is

        named in the body (this endpoint is not nested under /accounts).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - accountSlug
              - html
              properties:
                accountSlug:
                  type: string
                  description: Account the conversion is billed against — caller must be a member
                html:
                  type: string
                  maxLength: 512000
      responses:
        '200':
          description: Converted document
          content:
            application/json:
              schema:
                type: object
                properties:
                  craftState:
                    type: object
                    description: Block-based document (serialize to a string to save as a template)
                  warnings:
                    type: array
                    items:
                      type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          description: HTML exceeds 500 KB
        '422':
          description: Conversion could not produce a valid document
        '429':
          description: Burst rate limit or monthly import allowance exhausted (IMPORT_LIMIT_MONTHLY)
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        details:
          type: object
          additionalProperties:
            type: string
          description: Field-level validation errors
    TemplateInput:
      type: object
      properties:
        name:
          type: string
          maxLength: 255
          example: Product Launch Email
          description: Defaults to "Untitled Template" on create
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
          - draft
          - exported
          description: Update only
        source:
          type: string
          enum:
          - blank
          - ai
          - import
          - library
          description: Create only. Defaults to blank
        htmlContent:
          type: string
          nullable: true
        craftState:
          type: string
          nullable: true
          description: 'JSON string of the block-based document — see

            https://developer.templated.email/docs/guides/template-document.

            On create, mutually exclusive with librarySlug.

            '
        editorMode:
          type: string
          enum:
          - visual
          - html
        templateSettings:
          type: string
          nullable: true
          description: JSON string of template-level settings
        librarySlug:
          type: string
          maxLength: 128
          description: Create only — slug of a pre-built library template; the server resolves the craftState
        thumbnailUrl:
          type: string
          maxLength: 512
          nullable: true
          description: Update only — must be a valid URL
    TemplateSummary:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
          - draft
          - exported
        thumbnailUrl:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Template:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          enum:
          - draft
          - exported
        source:
          type: string
          enum:
          - blank
          - ai
          - import
          - library
          nullable: true
        htmlContent:
          type: string
          nullable: true
        craftState:
          type: string
          description: 'JSON string of the block-based document. See the Template Document Reference

            (https://developer.templated.email/docs/guides/template-document) for the full block model.

            '
          nullable: true
        editorMode:
          type: string
          enum:
          - visual
          - html
          nullable: true
        templateSettings:
          type: string
          description: JSON string of template-level settings
          nullable: true
        thumbnailUrl:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  parameters:
    AccountSlug:
      name: slug
      in: path
      required: true
      schema:
        type: string
      description: Account slug identifier
      example: my-company
  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