SendPanda Templates API

The Templates API from SendPanda, for templates.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 9

GET /v1/templates Get templates #
POST /v1/templates Create templates #
GET /v1/templates/{id} Get templates by id #
DELETE /v1/templates/{id} Delete templates by id #
POST /v1/templates/{id}/versions Create templates by id versions #
POST /v1/templates/{id}/publish Create templates by id publish #
POST /v1/templates/{id}/duplicate Create templates by id duplicate #
POST /v1/templates/{id}/preview Create templates by id preview #
POST /v1/templates/{id}/test Create templates by id test #

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/sendpanda-email:sendpanda-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

sendpanda-email-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendPanda Templates API
  version: 1.0.0
  description: Transactional email API. Secrets belong only on your server.
tags:
- name: Templates
paths:
  /v1/templates:
    get:
      parameters:
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
        in: query
        name: include_preview
        required: false
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Get templates
      x-summary-source: derived
      operationId: getV1Templates
      x-operation-id-source: derived
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                subject:
                  type: string
                  minLength: 1
                  maxLength: 998
                html:
                  type: string
                  minLength: 1
                  maxLength: 250000
                text:
                  type: string
                  maxLength: 250000
                design:
                  allOf:
                  - $ref: '#/components/schemas/EmailDesignInput'
              required:
              - name
              - subject
              additionalProperties: false
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Create templates
      x-summary-source: derived
      operationId: postV1Templates
      x-operation-id-source: derived
  /v1/templates/{id}:
    get:
      parameters:
      - schema:
          type: string
          maxLength: 80
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Get templates by id
      x-summary-source: derived
      operationId: getV1TemplatesById
      x-operation-id-source: derived
    delete:
      parameters:
      - schema:
          type: string
          maxLength: 80
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Delete templates by id
      x-summary-source: derived
      operationId: deleteV1TemplatesById
      x-operation-id-source: derived
  /v1/templates/{id}/versions:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                subject:
                  type: string
                  minLength: 1
                  maxLength: 998
                html:
                  type: string
                  minLength: 1
                  maxLength: 250000
                text:
                  type: string
                  maxLength: 250000
                design:
                  allOf:
                  - $ref: '#/components/schemas/EmailDesignInput'
              required:
              - name
              - subject
              additionalProperties: false
      parameters:
      - schema:
          type: string
          maxLength: 80
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Create templates by id versions
      x-summary-source: derived
      operationId: postV1TemplatesByIdVersions
      x-operation-id-source: derived
  /v1/templates/{id}/publish:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                version:
                  type: integer
                  maximum: 9007199254740991
                  exclusiveMinimum: 0
              required:
              - version
              additionalProperties: false
      parameters:
      - schema:
          type: string
          maxLength: 80
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Create templates by id publish
      x-summary-source: derived
      operationId: postV1TemplatesByIdPublish
      x-operation-id-source: derived
  /v1/templates/{id}/duplicate:
    post:
      parameters:
      - schema:
          type: string
          maxLength: 80
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Create templates by id duplicate
      x-summary-source: derived
      operationId: postV1TemplatesByIdDuplicate
      x-operation-id-source: derived
  /v1/templates/{id}/preview:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                version:
                  type: integer
                  maximum: 9007199254740991
                  exclusiveMinimum: 0
                share_preview:
                  default: false
                  type: boolean
                variables:
                  default: {}
                  type: object
                  additionalProperties:
                    anyOf:
                    - type: string
                    - type: number
                    - type: boolean
              additionalProperties: false
      parameters:
      - schema:
          type: string
          maxLength: 80
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Create templates by id preview
      x-summary-source: derived
      operationId: postV1TemplatesByIdPreview
      x-operation-id-source: derived
  /v1/templates/{id}/test:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                from:
                  type: string
                  maxLength: 320
                to:
                  type: string
                  maxLength: 320
                  format: email
                  pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                variables:
                  default: {}
                  type: object
                  additionalProperties:
                    anyOf:
                    - type: string
                    - type: number
                    - type: boolean
              required:
              - from
              - to
              additionalProperties: false
      parameters:
      - schema:
          type: string
          maxLength: 80
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
      tags:
      - Templates
      summary: Create templates by id test
      x-summary-source: derived
      operationId: postV1TemplatesByIdTest
      x-operation-id-source: derived
components:
  schemas:
    EmailComponentInput:
      oneOf:
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - heading
          text:
            type: string
            maxLength: 10000
        required:
        - id
        - type
        - text
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - text
          text:
            type: string
            maxLength: 10000
        required:
        - id
        - type
        - text
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - image
          src:
            type: string
            maxLength: 2048
          alt:
            type: string
            maxLength: 300
          url:
            type: string
            maxLength: 2048
          width:
            type: integer
            minimum: 40
            maximum: 720
        required:
        - id
        - type
        - src
        - alt
        - url
        - width
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - logo
          src:
            type: string
            maxLength: 2048
          alt:
            type: string
            maxLength: 300
          url:
            type: string
            maxLength: 2048
          width:
            type: integer
            minimum: 40
            maximum: 720
        required:
        - id
        - type
        - src
        - alt
        - url
        - width
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - button
          text:
            type: string
            maxLength: 200
          url:
            type: string
            maxLength: 2048
          buttonColor:
            type: string
            pattern: ^#[0-9a-f]{6}$
          radius:
            type: integer
            minimum: 0
            maximum: 32
        required:
        - id
        - type
        - text
        - url
        - buttonColor
        - radius
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - divider
          height:
            type: integer
            minimum: 1
            maximum: 8
        required:
        - id
        - type
        - height
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - spacer
          height:
            type: integer
            minimum: 4
            maximum: 160
        required:
        - id
        - type
        - height
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - hero
          src:
            type: string
            maxLength: 2048
          alt:
            type: string
            maxLength: 300
          title:
            type: string
            maxLength: 10000
          text:
            type: string
            maxLength: 10000
          buttonText:
            type: string
            maxLength: 200
          url:
            type: string
            maxLength: 2048
          buttonColor:
            type: string
            pattern: ^#[0-9a-f]{6}$
        required:
        - id
        - type
        - src
        - alt
        - title
        - text
        - buttonText
        - url
        - buttonColor
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - product
          src:
            type: string
            maxLength: 2048
          alt:
            type: string
            maxLength: 300
          title:
            type: string
            maxLength: 10000
          text:
            type: string
            maxLength: 10000
          price:
            type: string
            maxLength: 100
          buttonText:
            type: string
            maxLength: 200
          url:
            type: string
            maxLength: 2048
          buttonColor:
            type: string
            pattern: ^#[0-9a-f]{6}$
        required:
        - id
        - type
        - src
        - alt
        - title
        - text
        - price
        - buttonText
        - url
        - buttonColor
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - code
          text:
            type: string
            maxLength: 10000
        required:
        - id
        - type
        - text
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - coupon
          title:
            type: string
            maxLength: 10000
          text:
            type: string
            maxLength: 10000
          code:
            type: string
            maxLength: 100
          url:
            type: string
            maxLength: 2048
          buttonText:
            type: string
            maxLength: 200
          buttonColor:
            type: string
            pattern: ^#[0-9a-f]{6}$
        required:
        - id
        - type
        - title
        - text
        - code
        - url
        - buttonText
        - buttonColor
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - list
          items:
            minItems: 1
            maxItems: 12
            type: array
            items:
              type: string
              maxLength: 1000
        required:
        - id
        - type
        - items
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - social
          links:
            minItems: 1
            maxItems: 6
            type: array
            items:
              type: object
              properties:
                label:
                  type: string
                  minLength: 1
                  maxLength: 50
                url:
                  type: string
                  maxLength: 2048
              required:
              - label
              - url
              additionalProperties: false
        required:
        - id
        - type
        - links
        additionalProperties: false
    EmailDesignInput:
      type: object
      properties:
        version:
          type: number
          enum:
          - 1
        preheader:
          type: string
          maxLength: 200
        showLogo:
          type: boolean
        theme:
          type: object
          properties:
            background:
              type: string
              pattern: ^#[0-9a-f]{6}$
            surface:
              type: string
              pattern: ^#[0-9a-f]{6}$
            text:
              type: string
              pattern: ^#[0-9a-f]{6}$
            accent:
              type: string
              pattern: ^#[0-9a-f]{6}$
            font:
              type: string
              enum:
              - Arial
              - Georgia
              - Verdana
              - Trebuchet MS
            width:
              type: integer
              minimum: 480
              maximum: 720
            radius:
              type: integer
              minimum: 0
              maximum: 32
          required:
          - background
          - surface
          - text
          - accent
          - font
          - width
          - radius
          additionalProperties: false
        blocks:
          minItems: 1
          maxItems: 60
          type: array
          items:
            $ref: '#/components/schemas/EmailSectionInput'
      required:
      - version
      - preheader
      - theme
      - blocks
      additionalProperties: false
    EmailSectionInput:
      anyOf:
      - $ref: '#/components/schemas/EmailComponentInput'
      - type: object
        properties:
          id:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,80}$
          align:
            default: left
            type: string
            enum:
            - left
            - center
            - right
          padding:
            default: 24
            type: integer
            minimum: 0
            maximum: 64
          background:
            default: '#ffffff'
            type: string
            pattern: ^#[0-9a-f]{6}$
          color:
            default: '#24382e'
            type: string
            pattern: ^#[0-9a-f]{6}$
          fontSize:
            default: 16
            type: integer
            minimum: 10
            maximum: 64
          bold:
            default: false
            type: boolean
          italic:
            default: false
            type: boolean
          type:
            type: string
            enum:
            - columns
          left:
            maxItems: 12
            type: array
            items:
              $ref: '#/components/schemas/EmailComponentInput'
          right:
            maxItems: 12
            type: array
            items:
              $ref: '#/components/schemas/EmailComponentInput'
        required:
        - id
        - type
        - left
        - right
        additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer