Create a new template
Body Parameters
namestringRequired
- Minimum length:
1 - Maximum length:
255
descriptionstring
subjectstring
- Maximum length:
500
contentany[]
Example: ["value1", "value2"]
import Reloop from 'reloop-email';
const reloop = new Reloop("rl_123456789");
const template = await reloop.template.create({
name: "Welcome Email",
subject: "Welcome to Reloop!",
content: []
});{
"id": "con_123456789",
"name": "Newsletter",
"description": "example_description",
"subject": "Welcome to Reloop",
"fromEmail": "example_fromEmail",
"replyTo": "example_replyTo",
"previewText": "example_previewText",
"organizationId": "example_organizationId",
"createdByUserId": "example_createdByUserId",
"status": "draft",
"content": [],
"variables": [
{
"name": "Newsletter",
"type": "string",
"defaultValue": null
}
],
"currentVersion": 0,
"thumbnailUrl": "example_thumbnailUrl",
"isDefault": true,
"deletedAt": null,
"createdAt": "2026-03-23T10:00:00.000Z",
"updatedAt": "2026-03-23T10:00:00.000Z"
}Was this page helpful?