Template APIs

Understand how to use Netcore Email Template APIs (V6).

Overview

The Template API allows you to create, retrieve, update, and delete email templates. Each template includes HTML content and a unique name. These templates can be reused across campaigns for consistent communication.

📘

Important Points to Remember

  • All timestamps follow the ISO 8601 format.
  • HTML content must be URL-encoded in the request.
  • The system decodes and store the content automatically.
  • Template changes are tracked for audit logging.
  • Content is stored as a single decoded HTML string in the database.

Available Endpoints

Endpoint NameMethodEndpointDescription
Create TemplatePOST/v6/templatesCreates a new template with metadata, content, and optional variables.
List TemplatesGET/v6/templatesRetrieves a paginated list of all templates available under the account.
Get Template by IDGET/v6/templates/{template_id}Fetches details of a specific template, including content, metadata, and usage.
Update TemplatePUT/v6/templates/{template_id}Updates the content or metadata of an existing template.
Delete TemplateDELETE/v6/templates/{template_id}Permanently deletes a template that is no longer in use.