SendSeven GmbH Email Templates API
Design and manage reusable MJML-based email templates with configurable content slots for campaigns.
Design and manage reusable MJML-based email templates with configurable content slots for campaigns.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sendseven-com:sendseven-com-email-templates-api"
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.
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: 3.2.0
info:
title: SendSeven Email Templates API
description: Unified messaging API for WhatsApp, Telegram, SMS, and more
version: '20261124.1227'
servers:
- url: https://api.sendseven.com
description: Production
tags:
- name: Email Templates
description: Design and manage reusable MJML-based email templates with configurable content slots for campaigns.
paths:
/api/v1/email-templates:
post:
tags:
- Email Templates
summary: Create Layout Template
description: 'Create a new email template with variable system
**Required Scopes:** `email:create`
- Define structural framework with MJML
- Use {{variable_name}} placeholders for customization
- Set color palette and fonts for brand consistency
- MJML is validated and compiled to HTML on creation
- Variables use lowercase_with_underscores naming convention
**Variable System:**
- Template variables: {{hero_title}}, {{cta_url}}, {{main_content}}
- Contact variables: {{contact.first_name}}, {{contact.email}}, {{contact.custom.}}
- Company variables: {{company.name}}, {{company.address}}, {{company.logo_url}}
- Agent variables: {{agent.name}}, {{agent.job_title}}
- System variables: {{system.year}}
Full list: `GET /email-contents/variables`.'
operationId: create_layout_template_api_v1_email_templates_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutTemplateCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Email Templates
summary: List Layout Templates
description: 'List email templates for the tenant
**Required Scopes:** `email:read`
- Can filter by category (business, creative, minimal)
- Can filter by system template flag
- Can filter by active status
- By default excludes hidden templates (use include_hidden=true to include)
- Returns list without full MJML source (for performance)
- Supports pagination with limit and offset'
operationId: list_layout_templates_api_v1_email_templates_get
security:
- HTTPBearer: []
parameters:
- name: category
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Filter by category
title: Category
description: Filter by category
- name: is_system_template
in: query
required: false
schema:
anyOf:
- type: boolean
- type: 'null'
description: Filter by system template flag
title: Is System Template
description: Filter by system template flag
- name: is_active
in: query
required: false
schema:
anyOf:
- type: boolean
- type: 'null'
description: Filter by active status
title: Is Active
description: Filter by active status
- name: include_hidden
in: query
required: false
schema:
type: boolean
description: Include hidden/archived templates
default: false
title: Include Hidden
description: Include hidden/archived templates
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: Max results
default: 50
title: Limit
description: Max results
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
description: Results offset
default: 0
title: Offset
description: Results offset
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/EmailLayoutTemplateListResponse'
title: Response List Layout Templates Api V1 Email Templates Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/email-templates/{template_id}:
get:
tags:
- Email Templates
summary: Get Layout Template
description: 'Get a specific email template with full MJML source
**🔐 Required Scopes:** `email:read`'
operationId: get_layout_template_api_v1_email_templates__template_id__get
security:
- HTTPBearer: []
parameters:
- name: template_id
in: path
required: true
schema:
type: string
title: Template Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- Email Templates
summary: Update Layout Template
description: 'Update email template with variable system
- If MJML source is updated, recompiles to HTML
- Creates new version (increments version number)
- System templates cannot be modified
- Template changes will affect future EmailContents using this template
- Variables use {{variable_name}} syntax
**🔐 Required Scopes:** `email:update`'
operationId: update_layout_template_api_v1_email_templates__template_id__patch
security:
- HTTPBearer: []
parameters:
- name: template_id
in: path
required: true
schema:
type: string
title: Template Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutTemplateUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Email Templates
summary: Delete Layout Template
description: 'Delete email template
**Required Scopes:** `email:delete`
- System templates cannot be deleted
- Templates with EmailContents referencing them cannot be deleted (409 Conflict)
- Use this endpoint to clean up unused templates'
operationId: delete_layout_template_api_v1_email_templates__template_id__delete
security:
- HTTPBearer: []
parameters:
- name: template_id
in: path
required: true
schema:
type: string
title: Template Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/email-templates/{template_id}/duplicate:
post:
tags:
- Email Templates
summary: Duplicate Layout Template
description: 'Duplicate an email template
**Required Scopes:** `email:create`
Creates a copy of the template with a new name. All content fields are copied
(MJML, HTML, category, colors, thumbnail, description). The duplicate is
always a non-system, non-hidden template owned by the requesting tenant.'
operationId: duplicate_layout_template_api_v1_email_templates__template_id__duplicate_post
security:
- HTTPBearer: []
parameters:
- name: template_id
in: path
required: true
schema:
type: string
title: Template Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutTemplateDuplicate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/email-templates/preview:
post:
tags:
- Email Templates
summary: Preview Layout
description: 'Preview MJML template without saving (with variable replacement)
- Accepts MJML source with {{variable}} placeholders
- Replaces variables with example values
- **Company variables are auto-filled from your company profile and branding**
- Compiles MJML to HTML
- Returns HTML for preview
- Does not save to database
**Company Variables (auto-filled when set in your company profile):**
- `{{company.brand_color_primary}}` / `_secondary` / `_accent` - Brand colors
- `{{company.logo_url}}` - Company logo URL
- `{{company.name}}`, `{{company.legal_name}}`, `{{company.address}}`,
`{{company.phone}}`, `{{company.email}}`, `{{company.website}}`
Contact and agent variables show example values here.
**Example Request:**
```json
{
"mjml_source": "{{hero_title}}",
"variable_values": {
"hero_title": "Welcome to Our Platform"
}
}
```
**🔐 Required Scopes:** `email:read`'
operationId: preview_layout_api_v1_email_templates_preview_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Preview Request
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EmailLayoutPreviewResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
EmailLayoutTemplateListResponse:
properties:
id:
type: string
title: Id
tenant_id:
type: string
title: Tenant Id
name:
type: string
title: Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
category:
anyOf:
- type: string
- type: 'null'
title: Category
thumbnail_url:
anyOf:
- type: string
- type: 'null'
title: Thumbnail Url
is_system_template:
type: boolean
title: Is System Template
is_active:
type: boolean
title: Is Active
default: true
is_hidden:
type: boolean
title: Is Hidden
default: false
version:
type: integer
title: Version
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- tenant_id
- name
- description
- category
- thumbnail_url
- is_system_template
- version
- created_at
- updated_at
title: EmailLayoutTemplateListResponse
description: Schema for email template list (without full content)
EmailLayoutTemplateDuplicate:
properties:
new_name:
type: string
maxLength: 255
minLength: 1
title: New Name
description: Name for the duplicated template
type: object
required:
- new_name
title: EmailLayoutTemplateDuplicate
description: Schema for duplicating an email template
example:
new_name: My Custom Template (Copy)
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
EmailLayoutPreviewResponse:
properties:
html:
type: string
title: Html
description: Compiled HTML from MJML source
has_compliance_footer:
type: boolean
title: Has Compliance Footer
description: Whether compliance footer was injected (promotional category)
default: false
type: object
required:
- html
title: EmailLayoutPreviewResponse
description: Response from previewing MJML template
example:
has_compliance_footer: true
html: <html><body>...</body></html>
EmailLayoutTemplateResponse:
properties:
id:
type: string
title: Id
tenant_id:
type: string
title: Tenant Id
name:
type: string
title: Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
category:
anyOf:
- type: string
- type: 'null'
title: Category
mjml_source:
type: string
title: Mjml Source
html_compiled:
anyOf:
- type: string
- type: 'null'
title: Html Compiled
color_palette:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Color Palette
font_family:
anyOf:
- type: string
- type: 'null'
title: Font Family
thumbnail_url:
anyOf:
- type: string
- type: 'null'
title: Thumbnail Url
is_system_template:
type: boolean
title: Is System Template
version:
type: integer
title: Version
created_by:
anyOf:
- type: string
- type: 'null'
title: Created By
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- tenant_id
- name
- description
- category
- mjml_source
- html_compiled
- color_palette
- font_family
- thumbnail_url
- is_system_template
- version
- created_by
- created_at
- updated_at
title: EmailLayoutTemplateResponse
description: Schema for email template response with variable system
example:
category: promotional
color_palette:
primary: '#0066CC'
created_at: '2025-11-17T10:00:00Z'
created_by: auth0|user123
description: Clean template with variable placeholders
font_family: Arial, sans-serif
html_compiled: <html>...</html>
id: template-123
is_system_template: false
mjml_source: <mjml><mj-body><mj-text>{{hero_title}}</mj-text><mj-button href='{{cta_url}}'>{{cta_text}}</mj-button></mj-body></mjml>
name: Professional Newsletter Template
tenant_id: tenant-456
thumbnail_url: https://storage.example.com/templates/preview.png
updated_at: '2025-11-17T10:00:00Z'
version: 1
EmailLayoutTemplateUpdate:
properties:
name:
anyOf:
- type: string
maxLength: 255
minLength: 1
- type: 'null'
title: Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
category:
anyOf:
- type: string
maxLength: 100
- type: 'null'
title: Category
mjml_source:
anyOf:
- type: string
minLength: 1
- type: 'null'
title: Mjml Source
color_palette:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Color Palette
font_family:
anyOf:
- type: string
maxLength: 100
- type: 'null'
title: Font Family
thumbnail_url:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Thumbnail Url
type: object
title: EmailLayoutTemplateUpdate
description: Schema for updating an email template with variable system
example:
category: transactional
description: Updated description
name: Updated Template Name
EmailLayoutTemplateCreate:
properties:
name:
type: string
maxLength: 255
minLength: 1
title: Name
description: Email template name
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Template description
category:
anyOf:
- type: string
maxLength: 100
- type: 'null'
title: Category
description: Category (transactional, promotional, custom)
mjml_source:
type: string
minLength: 1
title: Mjml Source
description: MJML source with {{variable_name}} placeholders
color_palette:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Color Palette
description: 'Color palette (e.g., {''primary'': ''#0066CC''})'
font_family:
anyOf:
- type: string
maxLength: 100
- type: 'null'
title: Font Family
description: Font family (e.g., 'Arial, sans-serif')
thumbnail_url:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Thumbnail Url
description: Template preview thumbnail URL
type: object
required:
- name
- mjml_source
title: EmailLayoutTemplateCreate
description: Schema for creating an email template with variable system
example:
category: promotional
color_palette:
primary: '#0066CC'
secondary: '#333333'
description: Clean template with variable placeholders for customization
font_family: Arial, sans-serif
mjml_source: <mjml><mj-body><mj-text>{{hero_title}}</mj-text><mj-button href='{{cta_url}}'>{{cta_text}}</mj-button></mj-body></mjml>
name: Professional Newsletter Template
thumbnail_url: https://storage.example.com/templates/preview.png
securitySchemes:
HTTPBearer:
type: http
scheme: bearer