templates
GET
https://hermeticor.com /v1/templates/{id}/client-preview-runs Inbox preview run history for a template, newest first
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/templates/{id}/client-preview-runs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"templateId": "string",
"versionId": "string",
"vendor": "string",
"externalId": "string",
"clients": [
"string"
],
"status": "pending",
"shots": [
{
"client": "string",
"url": "string"
}
],
"error": "string",
"createdBy": "string",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredtemplateIdstringrequiredversionIdstringrequiredvendorstringrequiredexternalIdstringrequiredclientsstring[]requiredstatusstringrequiredshotsobject[]requiredShow child parameters
clientstringrequiredurlstringrequirederrorstringrequiredcreatedBystringrequiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/client-previews/{externalId} Poll the preview service for a run and save its latest result
Parameters
externalIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/client-previews/{externalId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"status": "pending",
"error": "string",
"shots": [
{
"client": "string",
"url": "string"
}
]
}Schema
statusstringrequirederrorstringshotsobject[]requiredShow child parameters
clientstringrequiredurlstringrequiredGET
https://hermeticor.com /v1/templates/{id}/optimizer Writing checks on the saved version, weighed by how similar senders' email campaigns perform (peer benchmarks, or the static reference ranges)
Parameters
versionIdstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/templates/{id}/optimizer" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"score": 0,
"contentScore": 0,
"checks": [
{
"id": "string",
"level": "good",
"title": "string",
"detail": "string"
}
],
"stats": {
"words": 0,
"sentences": 0,
"avgSentenceWords": 0,
"links": 0,
"images": 0
},
"benchmark": [
{
"metric": "open",
"feature": "string",
"yours": 0,
"typical": 0,
"good": 0,
"rank": 0,
"source": "network",
"standing": "behind"
}
],
"optedIn": true
}Schema
scoreintegerrequiredcontentScoreintegerrequiredchecksChecksItem[]requiredShow child parameters
idstringrequiredlevelstringrequiredtitlestringrequireddetailstringrequiredstatsobjectrequiredShow child parameters
wordsintegerrequiredsentencesintegerrequiredavgSentenceWordsintegerrequiredlinksintegerrequiredimagesintegerrequiredbenchmarkobject[]requiredShow child parameters
metricstringrequiredfeaturestringrequiredyoursnumberrequiredtypicalnumberrequiredgoodnumberrequiredrankintegerrequiredsourcestringrequiredstandingstringrequiredoptedInbooleanrequiredGET
https://hermeticor.com /v1/template-folders/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/template-folders/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"kind": "template",
"name": "string",
"parentId": "string",
"itemCount": 0,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequirednamestringrequiredparentIdstringrequireditemCountnumberrequiredcreatedAtstringrequiredDELETE
https://hermeticor.com /v1/template-folders/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/template-folders/{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/template-folders/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringparentIdstring{
"name": "string",
"parentId": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/template-folders/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","parentId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/asset-folders Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/asset-folders" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"kind": "template",
"name": "string",
"parentId": "string",
"itemCount": 0,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem34[]requiredShow child parameters
idstringrequiredkindstringrequirednamestringrequiredparentIdstringrequireditemCountnumberrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/asset-folders Request body
application/json
namestringrequiredparentIdstring{
"name": "string",
"parentId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/asset-folders" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","parentId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/asset-folders/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/asset-folders/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated