templates
GET
https://hermeticor.com /v1/saved-sections Filter by name, block type and created / updated dates; sort newest, oldest, name or updated
Parameters
limitintegerquerycursorstringqueryqstringquerytypestringquerycreatedAfterstringquerycreatedBeforestringqueryupdatedAfterstringqueryupdatedBeforestringquerysortstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/saved-sections" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"name": "string",
"blocks": [
{}
],
"id": "string",
"workspaceId": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem37[]requiredShow child parameters
namestringrequiredblocksschema0[]requiredidstringrequiredworkspaceIdstringrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/saved-sections Request body
application/json
namestringrequiredblocksschema0[]required{
"name": "string",
"blocks": [
{}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/saved-sections" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","blocks":[{}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"name": "string",
"blocks": [
{}
],
"id": "string",
"workspaceId": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
namestringrequiredblocksschema0[]requiredidstringrequiredworkspaceIdstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/saved-sections/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/saved-sections/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/saved-sections/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/saved-sections/{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/saved-sections/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringblocksschema0[]{
"name": "string",
"blocks": [
{}
]
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/saved-sections/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","blocks":[{}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/templates/translate-variant Draft a language variant from base blocks with AI assist (opt-in per workspace; uses the brand voice)
Request body
application/json
blocksschema0[]requiredsubjectstringpreheaderstringtargetLanguagestringrequired{
"blocks": [
{}
],
"subject": "string",
"preheader": "string",
"targetLanguage": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/translate-variant" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"blocks":[{}],"subject":"string","preheader":"string","targetLanguage":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"blocks": [
{}
],
"subject": "string",
"preheader": "string",
"model": "string",
"draft": true
}Schema
blocksschema0[]requiredsubjectstringpreheaderstringmodelstringrequireddraftbooleanrequiredGET
https://hermeticor.com /v1/qa-preview/connection Code samples
cURL
curl -X GET "https://hermeticor.com/v1/qa-preview/connection" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"configured": true,
"vendor": "string",
"name": "string",
"vendors": [
"string"
]
}Schema
configuredbooleanrequiredvendorstringrequirednamestringrequiredvendorsstring[]requiredPUT
https://hermeticor.com /v1/qa-preview/connection Connect a real-client preview service. The API key is stored encrypted and never returned.
Request body
application/json
vendorstringrequirednamestringrequiredapiKeystringapiSecretstring{
"vendor": "string",
"name": "string",
"apiKey": "string",
"apiSecret": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/qa-preview/connection" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"vendor":"string","name":"string","apiKey":"string","apiSecret":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/qa-preview/connection Code samples
cURL
curl -X DELETE "https://hermeticor.com/v1/qa-preview/connection" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/templates/{id}/client-previews Submit the saved version to the connected preview service
Parameters
idstringpathrequiredRequest body
application/json
versionIdstringclientsstring[]{
"versionId": "string",
"clients": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/templates/{id}/client-previews" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"versionId":"string","clients":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"externalId": "string"
}Schema
externalIdstringrequiredGET
https://hermeticor.com /v1/qa-preview/clients Mail clients the connected preview service offers, and its credit balance when it reports one
Code samples
cURL
curl -X GET "https://hermeticor.com/v1/qa-preview/clients" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"clients": [
{
"id": "string",
"name": "string",
"platform": "web",
"defaultSelected": true
}
],
"credits": {
"remaining": 0,
"resetsAt": "string"
}
}Schema
clientsobject[]requiredShow child parameters
idstringrequirednamestringrequiredplatformstringrequireddefaultSelectedbooleanrequiredcreditsobjectrequiredShow child parameters
remainingnumberrequiredresetsAtstringrequiredUpdated