templates
POST
https://hermeticor.com /v1/assets/uploads/{id}/complete Assemble the chunks into a library asset (same checks and limits as a normal upload)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/assets/uploads/{id}/complete" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"filename": "string",
"contentType": "string",
"bytes": 0,
"width": 0,
"height": 0,
"url": "string",
"thumbUrl": null,
"altText": "string",
"folderId": "string",
"language": "string",
"tags": [],
"scanStatus": "unscanned",
"access": "public_indexable",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredfilenamestringrequiredcontentTypestringrequiredbytesnumberrequiredwidthnumberrequiredheightnumberrequiredurlstringrequiredthumbUrlstringrequiredaltTextstringrequiredfolderIdstringrequiredlanguagestringrequiredtagsstring[]requiredscanStatusstringrequiredaccessstringrequiredcreatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/markdown/preview Render Markdown the way a markdown template compiles it (live editor preview)
Request body
application/json
sourcestringrequired{
"source": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/markdown/preview" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"source":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"html": "string"
}Schema
htmlstringrequiredGET
https://hermeticor.com /v1/templates Filter by channel, folder, tag, text, creator (`createdBy=me`), format and creation date; sort newest, oldest, name or updated
Parameters
limitintegerquerycursorstringquerychannelstringqueryfolderstringqueryfolderIdstringquerytagstringqueryqstringqueryarchivedstringquerycreatedBystringquerykindstringquerycreatedAfterstringquerycreatedBeforestringquerysortstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/templates" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"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"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem30[]requiredShow child parameters
idstringrequiredworkspaceIdstringrequiredchannelstringrequirednamestringrequiredkindstringrequiredfolderstringrequiredtagsstring[]requiredcurrentVersionIdstringrequiredarchivedbooleanrequiredfolderIdstringrequiredbrandKitIdstringrequiredisDefaultbooleanrequiredtopicIdstringrequiredcreatedBystringrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/templates Request body
application/json
namestringrequiredkindstringrequiredchannelstringfolderstringfolderIdstringtagsstring[]versionobjectShow child parameters
bodyBodyVariant | BodyVariant2 | objectrequiredsubjectstringpreheaderstringfromNameOverridestringtextBodystringfromEmailstringreplyTostringccstring[]{
"name": "string",
"kind": "blocks",
"channel": "push",
"folder": "string",
"folderId": "string",
"tags": [],
"version": {
"body": {
"kind": "blocks",
"doc": {
"version": 1,
"width": 600,
"background": "string",
"blocks": [
{}
],
"translations": {}
}
},
"subject": null,
"preheader": null,
"fromNameOverride": null,
"textBody": null,
"fromEmail": "string",
"replyTo": "string",
"cc": [
"string"
]
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/templates" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","kind":"blocks","channel":"push","folder":"string","folderId":"string","tags":[],"version":{"body":{"kind":"blocks","doc":{"version":1,"width":600,"background":"string","blocks":[{}],"translations":{}}},"subject":null,"preheader":null,"fromNameOverride":null,"textBody":null,"fromEmail":"string","replyTo":"string","cc":["string"]}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 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/bulk-update Move, tag, re-brand, set the topic of or archive up to 100 templates; each is applied or refused on its own
Request body
application/json
idsstring[]requiredpatchobjectrequiredShow child parameters
folderIdstringarchivedbooleanbrandKitIdstringtopicIdstringtagsstring[]addTagsstring[]removeTagsstring[]{
"ids": [
"string"
],
"patch": {
"folderId": "string",
"archived": true,
"brandKitId": "string",
"topicId": "string",
"tags": [
"string"
],
"addTags": [
"string"
],
"removeTags": [
"string"
]
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/bulk-update" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"],"patch":{"folderId":"string","archived":true,"brandKitId":"string","topicId":"string","tags":["string"],"addTags":["string"],"removeTags":["string"]}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"updated": 0,
"failed": [
{
"id": "string",
"reason": "string"
}
]
}Schema
updatedintegerrequiredfailedFailedItem[]requiredShow child parameters
idstringrequiredreasonstringrequiredUpdated