Email Templates

Import email template from HTML

With this endpoint you can import email template from raw HTML content. The HTML will be parsed, styles extracted, and structured into a template.

Request body size limit: 1 MB

Scopes: email-templates.write

Rate Limiting: This endpoint is rate limited to 400 requests per minute.

post/email-templates/import

Request

  • Base URL
    https://api.omnisend.com/api
  • URL
    https://api.omnisend.com/api/email-templates/import
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://app.omnisend.com/oauth2/token scopes: email-templates.write
    • or API key in header Authorization

Headers

Omnisend-Versionstring required

API version that specifies the response format and behaviour

Request body

htmlstring required

Raw HTML content to import

namestring required

Template name

Example request

{
  "html": "<html><body>...</body></html>",
  "name": "My Imported Template"
}

Response

Imported Template

createdAtstring

Template created at (read-only)

idstring

Template unique identifier (read-only)

namestring

Template name

updatedAtstring

Template updated at (read-only)

Changes

No recorded changes to this operation across all 1 revision of this API.