Skip to main content

Overview

The Templates API lets you create, retrieve, and delete reusable HTML email templates. Templates can be referenced when building campaign send tasks, ensuring consistent branding and reducing content duplication across campaigns. Base URL: https://api.effilink.co All endpoints require authentication via an ApiKey or OAuth header.

Add Template

string
/v5/campaign/mail/template/add
Creates a new email template in your EffiLink account. Template names must be unique.

Request Parameters

string
required
A unique name for the template. Maximum 250 bytes. Used to reference the template when creating campaigns.
string
required
The full HTML content of the template. Supports personalization tags (e.g., {{firstName}}, {{mainContent}}).
string
required
The default subject line for this template. Can be overridden when creating a send task.
string
The editor type used to create the template. Defaults to DRAG.

Response

integer
200 on success.
string
A human-readable status message. Empty string on success.

Example Request

Example Response


Get Templates

string
/v5/campaign/mail/template/get
Returns a paginated list of email templates in your account. Optionally filter by template name.

Request Parameters

string
Filter results to templates whose name contains this value. Omit to return all templates.
integer
Number of templates to return per page. Defaults to 10.
integer
Page number (1-based). Defaults to 1.

Response

integer
200 on success.
string
A human-readable status message.
integer
Total number of templates matching the filter criteria.
array[object]
An array of template objects.

Example Request

Example Response


Delete Template

string
/v5/campaign/mail/template/delete
Permanently deletes an email template by name.
This action is irreversible. Deleting a template does not affect existing campaign send tasks that were already created using it, but the template will no longer be available for new campaigns.

Request Parameters

string
required
The name of the template to delete.

Response

integer
200 on success.
string
A human-readable status message. Empty string on success.

Example Request

Example Response