Emails::Template
Create Email Template
Changed onCreate an email template from html_body/text_body. The template is marked api-created and is hidden from the visual template pickers (it cannot be edited in the visual BeeFree editor). See Create a template in the Emails Skill, including the expand[]=html_body/expand[]=text_body params that echo the body you just set back in the response.
post/workspaces/{workspace_id}/emails/templates
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspace_idstring required
Request body
Example request
{
"emails_template": {
"emails_template": {
"name": "Welcome Email",
"subject": "Welcome aboard!",
"html_body": "<h1>Hello</h1>",
"text_body": "Hello",
"from_address_id": 4001
}
}
}Response
Created
Example response
{
"id": 1,
"public_id": "MnOpQr",
"workspace_id": 42000,
"name": "Welcome Email",
"template_type": "email",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"subject": "Welcome aboard!",
"html_body": "<h1>Hello</h1>",
"text_body": "Hello",
"created_via_api": true,
"from_address": {
"id": 4001,
"public_id": "FrAd01",
"email_address": "marketing@example.com",
"name": "Marketing Team"
}
}Changes
- info
for the
pathrequest parameterworkspace_id, the type was generalized fromintegertostring - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info