curl --request POST \
--url https://api.iotools.cloud/v1/tool/html-email-template-generator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "Welcome to Acme",
"preheader": "Everything you need to get started.",
"headerText": "Acme",
"bodyContent": "Hi there,\n\nThanks for signing up. Your account is ready to go.\n\nClick the button below to finish setting up your profile.",
"buttonText": "Get Started",
"buttonUrl": "https://example.com/start",
"footerText": "You received this email because you signed up at example.com.",
"brandColor": "#464aff",
"bgColor": "#f4f4f7"
}
'{
"tool": "html-email-template-generator",
"tool_version": "1.0.1",
"outputs": {
"emailHtml": "<!DOCTYPE html>\n<html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"x-apple-disable-message-reformatting\">\n <title>Welcome to Acme</title>\n</head>\n<body style=\"margin:0; padding:0; background-color:#f4f4f7; font-family:Arial, Helvetica, sans-serif;\">\n <div style=\"display:none; max-height:0; overflow:hidden; mso-hide:all; font-size:1px; line-height:1px; color:#f4f4f7;\">Everything you need to get started.</div>\n <table role=\"presentation\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%; background-color:#f4f4f7;\">\n <tr>\n <td align=\"center\" style=\"padding:24px 12px;\">\n <table role=\"presentation\" width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:600px; max-width:600px; background-color:#ffffff; border-radius:8px;\">\n <tr>\n <td align=\"center\" style=\"padding:28px 32px 12px 32px; font-family:Arial, Helvetica, sans-serif; font-size:22px; font-weight:bold; color:#464aff;\">Acme</td>\n </tr>\n <tr>\n <td style=\"padding:12px 32px 12px 32px;\">\n <p style=\"margin:0 0 16px 0; font-family:Arial, Helvetica, sans-serif; font-size:16px; line-height:1.6; color:#333333;\">Hi there,</p>\n <p style=\"margin:0 0 16px 0; font-family:Arial, Helvetica, sans-serif; font-size:16px; line-height:1.6; color:#333333;\">Thanks for signing up. Your account is ready to go.</p>\n <p style=\"margin:0 0 16px 0; font-family:Arial, Helvetica, sans-serif; font-size:16px; line-height:1.6; color:#333333;\">Click the button below to finish setting up your profile.</p>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding:16px 32px 28px 32px;\">\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:separate;\">\n <tr>\n <td align=\"center\" bgcolor=\"#464aff\" style=\"border-radius:6px; background-color:#464aff;\">\n <a href=\"https://example.com/start\" target=\"_blank\" style=\"display:inline-block; padding:14px 32px; font-family:Arial, Helvetica, sans-serif; font-size:16px; font-weight:bold; color:#ffffff; text-decoration:none; border-radius:6px;\">Get Started</a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding:20px 32px; border-top:1px solid #e5e7eb; font-family:Arial, Helvetica, sans-serif; font-size:13px; line-height:1.5; color:#6b7280;\">You received this email because you signed up at example.com.</td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n</body>\n</html>"
},
"credits_used": 3,
"credits_remaining": null
}Generators
HTML Email Template Generator
Generate a responsive, email-client-safe HTML template (table-based layout with inline styles) from a header, body copy, a call-to-action button, a footer and brand colours. Copy the ready-to-send HTML or preview it live.
POST
/
v1
/
tool
/
html-email-template-generator
curl --request POST \
--url https://api.iotools.cloud/v1/tool/html-email-template-generator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "Welcome to Acme",
"preheader": "Everything you need to get started.",
"headerText": "Acme",
"bodyContent": "Hi there,\n\nThanks for signing up. Your account is ready to go.\n\nClick the button below to finish setting up your profile.",
"buttonText": "Get Started",
"buttonUrl": "https://example.com/start",
"footerText": "You received this email because you signed up at example.com.",
"brandColor": "#464aff",
"bgColor": "#f4f4f7"
}
'{
"tool": "html-email-template-generator",
"tool_version": "1.0.1",
"outputs": {
"emailHtml": "<!DOCTYPE html>\n<html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"x-apple-disable-message-reformatting\">\n <title>Welcome to Acme</title>\n</head>\n<body style=\"margin:0; padding:0; background-color:#f4f4f7; font-family:Arial, Helvetica, sans-serif;\">\n <div style=\"display:none; max-height:0; overflow:hidden; mso-hide:all; font-size:1px; line-height:1px; color:#f4f4f7;\">Everything you need to get started.</div>\n <table role=\"presentation\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%; background-color:#f4f4f7;\">\n <tr>\n <td align=\"center\" style=\"padding:24px 12px;\">\n <table role=\"presentation\" width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:600px; max-width:600px; background-color:#ffffff; border-radius:8px;\">\n <tr>\n <td align=\"center\" style=\"padding:28px 32px 12px 32px; font-family:Arial, Helvetica, sans-serif; font-size:22px; font-weight:bold; color:#464aff;\">Acme</td>\n </tr>\n <tr>\n <td style=\"padding:12px 32px 12px 32px;\">\n <p style=\"margin:0 0 16px 0; font-family:Arial, Helvetica, sans-serif; font-size:16px; line-height:1.6; color:#333333;\">Hi there,</p>\n <p style=\"margin:0 0 16px 0; font-family:Arial, Helvetica, sans-serif; font-size:16px; line-height:1.6; color:#333333;\">Thanks for signing up. Your account is ready to go.</p>\n <p style=\"margin:0 0 16px 0; font-family:Arial, Helvetica, sans-serif; font-size:16px; line-height:1.6; color:#333333;\">Click the button below to finish setting up your profile.</p>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding:16px 32px 28px 32px;\">\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:separate;\">\n <tr>\n <td align=\"center\" bgcolor=\"#464aff\" style=\"border-radius:6px; background-color:#464aff;\">\n <a href=\"https://example.com/start\" target=\"_blank\" style=\"display:inline-block; padding:14px 32px; font-family:Arial, Helvetica, sans-serif; font-size:16px; font-weight:bold; color:#ffffff; text-decoration:none; border-radius:6px;\">Get Started</a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding:20px 32px; border-top:1px solid #e5e7eb; font-family:Arial, Helvetica, sans-serif; font-size:13px; line-height:1.5; color:#6b7280;\">You received this email because you signed up at example.com.</td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n</body>\n</html>"
},
"credits_used": 3,
"credits_remaining": null
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Tool output
Show child attributes
Show child attributes
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.
Was this page helpful?
⌘I