Create a new template version
1import { Reloop } from "reloop-email";2
3const reloop = new Reloop({ apiKey: "rl_123456789" });4
5const version = await reloop.template.createVersion("tpl_123456789", {6 content: [],7 isMajor: true,8 name: "v1.0.0"9});1{2 "id": "con_123456789",3 "templateId": "example_templateId",4 "version": 0,5 "name": "Newsletter",6 "isMajor": true,7 "subject": "Welcome to Reloop",8 "fromEmail": "example_fromEmail",9 "replyTo": "example_replyTo",10 "previewText": "example_previewText",11 "description": "example_description",12 "content": [],13 "variables": [14 {15 "name": "Newsletter",16 "type": "string",17 "defaultValue": null18 }19 ],20 "renderedHtml": "example_renderedHtml",21 "createdByUserId": "example_createdByUserId",22 "createdBy": {23 "id": "con_123456789",24 "name": "Newsletter",25 "email": "john.doe@example.com",26 "image": "example_image"27 },28 "createdAt": "2026-03-23T10:00:00.000Z",29 "draftNumber": 0,30 "publishNumber": 031}Path Parameters
idstringRequired
Body Parameters
contentany[]Required
Example: ["value1", "value2"]
subjectstring
- Maximum length:
500
fromEmailstring
- Maximum length:
255
replyTostring
- Maximum length:
255
previewTextstring
descriptionstring
- Maximum length:
500
namestring
- Maximum length:
255
isMajorboolean
renderedHtmlstring
variablesobject[]
variables properties
namestringRequired
type"string" | "number"Required
Possible values: string | number
defaultValuestring | nullRequired
Was this page helpful?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.