templates
GET
https://hermeticor.com /v1/translations/export Export translations as importable JSON
Parameters
limitintegerquerycursorstringqueryresourceTypestringqueryresourceIdstringquerylocalestringquerystatusstringquerytemplateIdstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/translations/export" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"resourceType": "template",
"resourceId": "string",
"locale": "string",
"status": "draft",
"content": {}
}
]
}Schema
itemsobject[]requiredShow child parameters
resourceTypestringrequiredresourceIdstringrequiredlocalestringrequiredstatusstringrequiredcontentobjectrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/translations/import Request body
application/json
itemsPostV1TranslationsBody[]requiredShow child parameters
resourceTypestringrequiredresourceIdstringrequiredlocalestringrequiredstatusstringcontentobjectoverwriteboolean{
"items": [
{
"resourceType": "template",
"resourceId": "string",
"locale": "string",
"status": "draft",
"content": {}
}
],
"overwrite": true
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/translations/import" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items":[{"resourceType":"template","resourceId":"string","locale":"string","status":"draft","content":{}}],"overwrite":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"created": 0,
"updated": 0,
"skipped": 0
}Schema
creatednumberrequiredupdatednumberrequiredskippednumberrequiredGET
https://hermeticor.com /v1/translations/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/translations/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"resourceType": "template",
"resourceId": "string",
"locale": "string",
"status": "draft",
"content": {},
"id": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
resourceTypestringrequiredresourceIdstringrequiredlocalestringrequiredstatusstringrequiredcontentobjectrequiredidstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredDELETE
https://hermeticor.com /v1/translations/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/translations/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/translations/{id} Parameters
idstringpathrequiredRequest body
application/json
statusstringcontentobject{
"status": "draft",
"content": {}
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/translations/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"draft","content":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/templates/{id}/archive Blocked (412) while a scheduled campaign or live workflow uses it, unless force=true
Parameters
forcestringqueryidstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/{id}/archive" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"workspaceId": "string",
"channel": "email",
"name": "string",
"kind": "blocks",
"folder": "string",
"tags": [
"string"
],
"currentVersionId": "string",
"archived": true,
"folderId": "string",
"brandKitId": "string",
"isDefault": false,
"topicId": null,
"createdBy": null,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredworkspaceIdstringrequiredchannelstringrequirednamestringrequiredkindstringrequiredfolderstringrequiredtagsstring[]requiredcurrentVersionIdstringrequiredarchivedbooleanrequiredfolderIdstringrequiredbrandKitIdstringrequiredisDefaultbooleanrequiredtopicIdstringrequiredcreatedBystringrequiredcreatedAtstringrequiredupdatedAtstringrequiredPOST
https://hermeticor.com /v1/templates/{id}/unarchive Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/{id}/unarchive" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/templates/{id}/convert One-way copy into the other format: a block template into a new HTML template, an HTML template into a new drag-and-drop template
Parameters
idstringpathrequiredRequest body
application/json
namestringtostring{
"name": "string",
"to": "html"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/{id}/convert" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","to":"html"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/templates/{id}/render Render a template by id with merge variables (no send, no tracking)
Parameters
idstringpathrequiredRequest body
application/json
versionIdstringvarsobjectprofileobjectlocalestringstrictboolean{
"versionId": "string",
"vars": {},
"profile": {},
"locale": "string",
"strict": false
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/{id}/render" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"versionId":"string","vars":{},"profile":{},"locale":"string","strict":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"subject": "string",
"preheader": "string",
"html": "string",
"text": "string",
"warnings": [
"string"
]
}Schema
subjectstringrequiredpreheaderstringrequiredhtmlstringrequiredtextstringrequiredwarningsstring[]requiredUpdated