templates
PUT
https://hermeticor.com /v1/templates/{id}/languages/{locale} Create or replace the language variant
Parameters
idstringpathrequiredlocalestringpathrequiredRequest body
application/json
statusstringcontentobject{
"status": "draft",
"content": {}
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/templates/{id}/languages/{locale}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"draft","content":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"locale": "string",
"status": "string",
"content": {}
}Schema
localestringrequiredstatusstringrequiredcontentobjectrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectDELETE
https://hermeticor.com /v1/templates/{id}/languages/{locale} Parameters
idstringpathrequiredlocalestringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/templates/{id}/languages/{locale}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPUT
https://hermeticor.com /v1/assets/{id}/content Replace the file behind an asset (multipart field "file"); the id and its references stay
Parameters
idstringpathrequiredCode samples
cURL
curl -X PUT "https://hermeticor.com/v1/assets/{id}/content" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 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[]requiredscanStatusstringrequiredaccessstringrequiredcreatedAtstringrequiredGET
https://hermeticor.com /v1/assets/{id}/signed-url Parameters
expiresintegerqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/assets/{id}/signed-url" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string",
"expiresInSec": 0
}Schema
urlstringrequiredexpiresInSecintegerrequiredGET
https://hermeticor.com /v1/assets/by-path Look an asset up by /Folder/Sub/filename
Parameters
pathstringqueryrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/assets/by-path?path=<path>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/asset-folders/by-path Look an asset folder up by /Parent/Child
Parameters
pathstringqueryrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/asset-folders/by-path?path=<path>" \
-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
idstringrequiredkindstringrequirednamestringrequiredparentIdstringrequireditemCountnumberrequiredcreatedAtstringrequiredPOST
https://hermeticor.com /v1/brand-kits/scrape Read name, logo, colours, fonts, address and social links from a public website (SSRF-guarded); suggestions only, nothing is saved
Request body
application/json
urlstringrequired{
"url": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/brand-kits/scrape" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string",
"name": "string",
"description": "string",
"logoUrl": "string",
"colors": {},
"fonts": {},
"postalAddress": "string",
"socialLinks": [
{
"network": "string",
"url": "string"
}
]
}Schema
urlstringrequirednamestringrequireddescriptionstringrequiredlogoUrlstringrequiredcolorsobjectrequiredfontsobjectrequiredpostalAddressstringrequiredsocialLinksobject[]requiredShow child parameters
networkstringrequiredurlstringrequiredGET
https://hermeticor.com /v1/brand-kits/{id}/history Who changed this brand kit, when, and from what to what
Parameters
limitintegerquerycursorstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/brand-kits/{id}/history" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"at": "2024-01-01T00:00:00Z",
"action": "string",
"actorId": "string",
"changes": [
{
"field": "string",
"from": {},
"to": {}
}
]
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredatstringrequiredactionstringrequiredactorIdstringrequiredchangesobject[]requiredShow child parameters
fieldstringrequiredfromrequiredtorequirednextCursorstringrequiredGET
https://hermeticor.com /v1/templates/{id}/stats Daily sent, delivered, bounced, complained, opened and clicked counts for messages rendered from this template
Parameters
daysintegerqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/templates/{id}/stats" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"days": 0,
"items": [
{
"day": "string",
"sent": 0,
"delivered": 0,
"bounced": 0,
"complained": 0,
"opens": 0,
"clicks": 0
}
]
}Schema
daysintegerrequireditemsobject[]requiredShow child parameters
daystringrequiredsentnumberrequireddeliverednumberrequiredbouncednumberrequiredcomplainednumberrequiredopensnumberrequiredclicksnumberrequiredUpdated