templates
DELETE
https://hermeticor.com /v1/brand-kits/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/brand-kits/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPATCH
https://hermeticor.com /v1/brand-kits/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringlogoAssetIdstringlogoUrlstringcolorsobjectShow child parameters
primarystringtextstringbackgroundstringaccentstringfontsobjectShow child parameters
headingstringbodystringfooterHtmlstringpostalAddressstringcustomCssstringlayoutHtmlstringisDefaultboolean{
"name": "string",
"logoAssetId": "string",
"logoUrl": "string",
"colors": {
"primary": "string",
"text": "string",
"background": "string",
"accent": "string"
},
"fonts": {
"heading": "string",
"body": "string"
},
"footerHtml": "string",
"postalAddress": "string",
"customCss": "string",
"layoutHtml": "string",
"isDefault": true
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/brand-kits/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","logoAssetId":"string","logoUrl":"string","colors":{"primary":"string","text":"string","background":"string","accent":"string"},"fonts":{"heading":"string","body":"string"},"footerHtml":"string","postalAddress":"string","customCss":"string","layoutHtml":"string","isDefault":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"name": "string",
"logoAssetId": null,
"logoUrl": null,
"colors": {},
"fonts": {},
"footerHtml": null,
"postalAddress": null,
"customCss": null,
"layoutHtml": null,
"isDefault": false,
"id": "string",
"workspaceId": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
namestringrequiredlogoAssetIdstringrequiredlogoUrlstringrequiredcolorsobjectrequiredShow child parameters
primarystringtextstringbackgroundstringaccentstringfontsobjectrequiredShow child parameters
headingstringbodystringfooterHtmlstringrequiredpostalAddressstringrequiredcustomCssstringrequiredlayoutHtmlstringrequiredisDefaultbooleanrequiredidstringrequiredworkspaceIdstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/template-folders Code samples
cURL
curl -X GET "https://hermeticor.com/v1/template-folders" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"folders": [
"string"
],
"items": []
}Schema
foldersstring[]requireditemsItemsItem34[]requiredShow child parameters
idstringrequiredkindstringrequirednamestringrequiredparentIdstringrequireditemCountnumberrequiredcreatedAtstringrequiredPOST
https://hermeticor.com /v1/template-folders Request body
application/json
namestringrequiredparentIdstring{
"name": "string",
"parentId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/template-folders" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","parentId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"kind": "template",
"name": "string",
"parentId": "string",
"itemCount": 0,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequirednamestringrequiredparentIdstringrequireditemCountnumberrequiredcreatedAtstringrequiredPOST
https://hermeticor.com /v1/templates/{id}/clone Parameters
idstringpathrequiredRequest body
application/json
namestring{
"name": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/{id}/clone" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"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[]requiredcurrentVersionIdstringrequiredarchivedbooleanrequiredfolderIdstringrequiredbrandKitIdstringrequiredisDefaultbooleanrequiredtopicIdstringrequiredcreatedBystringrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/content-settings Code samples
cURL
curl -X GET "https://hermeticor.com/v1/content-settings" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"approvalRequired": true,
"campaignApprovalRequired": false,
"uploadTypes": [
"image",
"pdf",
"video"
],
"defaultAssetAccess": "public_indexable"
}Schema
approvalRequiredbooleanrequiredcampaignApprovalRequiredbooleanrequireduploadTypesstring[]requireddefaultAssetAccessstringrequiredPATCH
https://hermeticor.com /v1/content-settings Request body
application/json
approvalRequiredbooleancampaignApprovalRequiredbooleanuploadTypesstring[]defaultAssetAccessstring{
"approvalRequired": true,
"campaignApprovalRequired": true,
"uploadTypes": [
"image"
],
"defaultAssetAccess": "public_indexable"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/content-settings" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"approvalRequired":true,"campaignApprovalRequired":true,"uploadTypes":["image"],"defaultAssetAccess":"public_indexable"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/templates/{id}/versions/{versionId}/submit Parameters
idstringpathrequiredversionIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/{id}/versions/{versionId}/submit" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"templateId": "string",
"workspaceId": "string",
"body": {
"kind": "blocks",
"doc": {
"version": 1,
"width": 600,
"background": "string",
"blocks": [
{}
],
"translations": {}
}
},
"subject": "string",
"preheader": "string",
"fromNameOverride": "string",
"textBody": "string",
"approvalStatus": "none",
"reviewComment": "string",
"createdBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"approvedBy": "string",
"approvedAt": "2024-01-01T00:00:00Z",
"fromEmail": null,
"replyTo": null,
"cc": []
}Schema
idstringrequiredtemplateIdstringrequiredworkspaceIdstringrequiredbodyBodyVariant3 | BodyVariant4 | objectrequiredsubjectstringrequiredpreheaderstringrequiredfromNameOverridestringrequiredtextBodystringrequiredapprovalStatusstringrequiredreviewCommentstringrequiredcreatedBystringrequiredcreatedAtstringrequiredapprovedBystringrequiredapprovedAtstringrequiredfromEmailstringrequiredreplyTostringrequiredccstring[]requiredUpdated