Templated Integrations API

ESP integrations (Mailchimp, Klaviyo, Constant Contact, Campaign Monitor)

GitHub OpenAPI

Operations 4

GET /accounts/{slug}/integrations List connected integrations #
POST /accounts/{slug}/integrations/{provider}/push Push a template to an ESP #
DELETE /accounts/{slug}/integrations/{provider}/disconnect Disconnect a provider #
GET /accounts/{slug}/integrations/merge-fields List merge fields from connected ESPs #

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-integrations-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-integrations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Templated Integrations 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: Integrations
  description: ESP integrations (Mailchimp, Klaviyo, Constant Contact, Campaign Monitor)
paths:
  /accounts/{slug}/integrations:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    get:
      operationId: listIntegrations
      tags:
      - Integrations
      summary: List connected integrations
      description: Returns connected ESP integrations without token data.
      responses:
        '200':
          description: Connected integrations
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Integration'
        '403':
          $ref: '#/components/responses/Forbidden'
  /accounts/{slug}/integrations/{provider}/push:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    - $ref: '#/components/parameters/EspProvider'
    post:
      operationId: pushTemplateToEsp
      tags:
      - Integrations
      summary: Push a template to an ESP
      description: 'Pushes rendered HTML into the connected provider''s template library. Merge tags are translated

        to the provider''s syntax automatically. Requires template:export permission.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - templateName
              - html
              properties:
                templateName:
                  type: string
                  maxLength: 255
                html:
                  type: string
                plainText:
                  type: string
      responses:
        '201':
          description: Template pushed — provider result including the ESP-side template ID
        '400':
          description: Unknown provider (UNKNOWN_PROVIDER) or validation error
        '404':
          description: Integration not connected (NOT_CONNECTED)
        '500':
          description: Provider rejected the push (PUSH_FAILED)
  /accounts/{slug}/integrations/{provider}/disconnect:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    - $ref: '#/components/parameters/EspProvider'
    delete:
      operationId: disconnectIntegration
      tags:
      - Integrations
      summary: Disconnect a provider
      responses:
        '200':
          description: Integration disconnected
        '404':
          $ref: '#/components/responses/NotFound'
  /accounts/{slug}/integrations/merge-fields:
    parameters:
    - $ref: '#/components/parameters/AccountSlug'
    get:
      operationId: listMergeFields
      tags:
      - Integrations
      summary: List merge fields from connected ESPs
      description: Aggregates personalization merge fields across all active integrations. Providers that fail to respond are skipped.
      responses:
        '200':
          description: Merge fields
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        tag:
                          type: string
                        label:
                          type: string
                        provider:
                          type: string
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        details:
          type: object
          additionalProperties:
            type: string
          description: Field-level validation errors
    Integration:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
          enum:
          - mailchimp
          - klaviyo
          - constantcontact
          - campaignmonitor
        providerDisplayName:
          type: string
        providerEmail:
          type: string
          nullable: true
        status:
          type: string
        connectedAt:
          type: string
          format: date-time
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
  parameters:
    AccountSlug:
      name: slug
      in: path
      required: true
      schema:
        type: string
      description: Account slug identifier
      example: my-company
    EspProvider:
      name: provider
      in: path
      required: true
      schema:
        type: string
        enum:
        - mailchimp
        - klaviyo
        - constantcontact
        - campaignmonitor
      description: ESP provider identifier
  responses:
    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'
  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