Emails::Template
Create Email Template
Create 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). When accessing the API through an OAuth connection from a third-party platform acting on another team's workspaces, this endpoint is restricted to trusted developer platforms; if you are using your own API key (acting on your own account), you can write directly.
post/workspaces/{workspace_id}/emails/templates
Path parameters
workspace_idinteger 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"
}
}