templates
PATCH
https://hermeticor.com /v1/snippets/{id} Parameters
idstringpathrequiredRequest body
application/json
bodystringrequired{
"body": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/snippets/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"workspaceId": "string",
"key": "string",
"channel": "email",
"body": "string",
"locked": true,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredworkspaceIdstringrequiredkeystringrequiredchannelstringrequiredbodystringrequiredlockedbooleanrequiredcreatedAtstringrequiredupdatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPATCH
https://hermeticor.com /v1/snippets/{id}/lock Lock: blocks edits and deletes until unlocked
Parameters
idstringpathrequiredCode samples
cURL
curl -X PATCH "https://hermeticor.com/v1/snippets/{id}/lock" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/snippets/{id}/unlock Parameters
idstringpathrequiredCode samples
cURL
curl -X PATCH "https://hermeticor.com/v1/snippets/{id}/unlock" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/snippets/bulk-delete Delete up to 100 snippets; locked ones are skipped
Request body
application/json
idsstring[]required{
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/snippets/bulk-delete" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"deleted": 0,
"skippedLocked": 0
}Schema
deletedintegerrequiredskippedLockedintegerrequiredGET
https://hermeticor.com /v1/brand-kits Parameters
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/brand-kits" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"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"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem33[]requiredShow child parameters
namestringrequiredlogoAssetIdstringrequiredlogoUrlstringrequiredcolorsobjectrequiredShow child parameters
primarystringtextstringbackgroundstringaccentstringfontsobjectrequiredShow child parameters
headingstringbodystringfooterHtmlstringrequiredpostalAddressstringrequiredcustomCssstringrequiredlayoutHtmlstringrequiredisDefaultbooleanrequiredidstringrequiredworkspaceIdstringrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/brand-kits Request body
application/json
namestringrequiredlogoAssetIdstringlogoUrlstringcolorsobjectShow child parameters
primarystringtextstringbackgroundstringaccentstringfontsobjectShow child parameters
headingstringbodystringfooterHtmlstringpostalAddressstringcustomCssstringlayoutHtmlstringisDefaultboolean{
"name": "string",
"logoAssetId": null,
"logoUrl": null,
"colors": {},
"fonts": {},
"footerHtml": null,
"postalAddress": null,
"customCss": null,
"layoutHtml": null,
"isDefault": false
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/brand-kits" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","logoAssetId":null,"logoUrl":null,"colors":{},"fonts":{},"footerHtml":null,"postalAddress":null,"customCss":null,"layoutHtml":null,"isDefault":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 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/brand-kits/primary The default brand kit
Code samples
cURL
curl -X GET "https://hermeticor.com/v1/brand-kits/primary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/brand-kits/{id}/primary Make this the default brand kit
Parameters
idstringpathrequiredCode samples
cURL
curl -X PATCH "https://hermeticor.com/v1/brand-kits/{id}/primary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/brand-kits/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/brand-kits/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated