SendSeven GmbH Double Opt-In Templates API
Create and customize confirmation message templates for double opt-in flows.
Create and customize confirmation message templates for double opt-in flows.
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-double-opt-in-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 Double Opt-In 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: Double Opt-In Templates
description: Create and customize confirmation message templates for double opt-in flows.
paths:
/api/v1/double-opt-in/templates:
get:
tags:
- Double Opt-In Templates
summary: List Templates
description: 'List all double opt-in templates available to the tenant.
Args:
include_system: Include system templates (default: True)
tenant_id: Current tenant ID
current_user: Current authenticated user
Returns:
List of templates (tenant custom + system if include_system=True)'
operationId: list_templates_api_v1_double_opt_in_templates_get
security:
- HTTPBearer: []
parameters:
- name: include_system
in: query
required: false
schema:
type: boolean
default: true
title: Include System
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DoubleOptInTemplateResponse'
title: Response List Templates Api V1 Double Opt In Templates Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Double Opt-In Templates
summary: Create Template
description: 'Create a new double opt-in template.
If copy_from_system=True, finds the system template and duplicates its EmailContent.
If copy_from_system=False, uses the provided email_content_id.
Args:
template_data: Template creation data
tenant_id: Current tenant ID
current_user: Current authenticated user
Returns:
Created template
Raises:
400: If validation fails
404: If email_content_id or system template not found
**🔐 Required Scopes:** `email:read`'
operationId: create_template_api_v1_double_opt_in_templates_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DoubleOptInTemplateCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DoubleOptInTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/double-opt-in/templates/{template_id}:
get:
tags:
- Double Opt-In Templates
summary: Get Template
description: 'Get a specific template by ID.
Args:
template_id: Template ID
tenant_id: Current tenant ID
current_user: Current authenticated user
Returns:
Template details
Raises:
404: If template not found or not accessible'
operationId: get_template_api_v1_double_opt_in_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/DoubleOptInTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- Double Opt-In Templates
summary: Update Template
description: 'Update a template.
Args:
template_id: Template ID
template_data: Fields to update
tenant_id: Current tenant ID
current_user: Current authenticated user
Returns:
Updated template
Raises:
404: If template not found
403: If trying to edit system template'
operationId: update_template_api_v1_double_opt_in_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/DoubleOptInTemplateUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DoubleOptInTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Double Opt-In Templates
summary: Delete Template
description: 'Delete a template.
Args:
template_id: Template ID
tenant_id: Current tenant ID
current_user: Current authenticated user
Raises:
404: If template not found
403: If trying to delete system template'
operationId: delete_template_api_v1_double_opt_in_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/double-opt-in/templates/{template_id}/copy:
post:
tags:
- Double Opt-In Templates
summary: Copy System Template
description: 'Copy a system template to tenant''s custom templates.
This allows tenants to customize system templates. Creates a duplicate
of the EmailContent and a new DoubleOptInEmailTemplate with tenant_id.
Args:
template_id: System template ID to copy
copy_data: Optional overrides for name, description, button_text, subject_line
tenant_id: Current tenant ID
current_user: Current authenticated user
Returns:
New template owned by tenant
Raises:
404: If system template not found
400: If trying to copy non-system template
**🔐 Required Scopes:** `email:create`'
operationId: copy_system_template_api_v1_double_opt_in_templates__template_id__copy_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/DoubleOptInTemplateCopyRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DoubleOptInTemplateResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/double-opt-in/templates/{template_id}/preview:
get:
tags:
- Double Opt-In Templates
summary: Preview Template
description: 'Generate HTML preview for a double opt-in template.
Uses example/placeholder values for confirmation_url, email, etc.
Args:
template_id: Template ID
tenant_id: Current tenant ID
current_user: Current authenticated user
Returns:
{"html": "...rendered HTML...", "subject": "...subject line..."}
Raises:
400: If the template has no renderable email content yet
404: If template or email content not found
500: If MJML compilation fails
**🔐 Required Scopes:** `email:read`'
operationId: preview_template_api_v1_double_opt_in_templates__template_id__preview_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: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
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
DoubleOptInTemplateUpdate:
properties:
name:
anyOf:
- type: string
maxLength: 255
minLength: 1
- type: 'null'
title: Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
button_text:
anyOf:
- type: string
maxLength: 100
- type: 'null'
title: Button Text
subject_line:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Subject Line
email_content_id:
anyOf:
- type: string
- type: 'null'
title: Email Content Id
is_active:
anyOf:
- type: boolean
- type: 'null'
title: Is Active
type: object
title: DoubleOptInTemplateUpdate
description: Schema for updating a double opt-in template
DoubleOptInTemplateResponse:
properties:
name:
type: string
maxLength: 255
minLength: 1
title: Name
description: Template name
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Template description
button_text:
type: string
maxLength: 100
title: Button Text
description: CTA button text
default: Confirm Subscription
subject_line:
type: string
maxLength: 255
title: Subject Line
description: Email subject line
default: Please confirm your subscription
is_active:
type: boolean
title: Is Active
description: Whether template is active
default: true
id:
type: string
title: Id
tenant_id:
anyOf:
- type: string
- type: 'null'
title: Tenant Id
email_content_id:
type: string
title: Email Content Id
is_system_template:
type: boolean
title: Is System Template
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- name
- id
- tenant_id
- email_content_id
- is_system_template
- created_at
- updated_at
title: DoubleOptInTemplateResponse
description: Schema for double opt-in template response
DoubleOptInTemplateCreate:
properties:
name:
type: string
maxLength: 255
minLength: 1
title: Name
description: Template name
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Template description
button_text:
type: string
maxLength: 100
title: Button Text
description: CTA button text
default: Confirm Subscription
subject_line:
type: string
maxLength: 255
title: Subject Line
description: Email subject line
default: Please confirm your subscription
is_active:
type: boolean
title: Is Active
description: Whether template is active
default: true
email_content_id:
anyOf:
- type: string
- type: 'null'
title: Email Content Id
description: ID of the EmailContent to use (required if not copying from system)
copy_from_system:
type: boolean
title: Copy From System
description: If true, copy from system template
default: false
type: object
required:
- name
title: DoubleOptInTemplateCreate
description: Schema for creating a double opt-in template
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
DoubleOptInTemplateCopyRequest:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Override template name
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Override description
button_text:
anyOf:
- type: string
- type: 'null'
title: Button Text
description: Override button text
subject_line:
anyOf:
- type: string
- type: 'null'
title: Subject Line
description: Override subject line
type: object
title: DoubleOptInTemplateCopyRequest
description: Schema for copying a system template
securitySchemes:
HTTPBearer:
type: http
scheme: bearer