landing-pages
POST
https://hermeticor.com /v1/landing-pages/{id}/schedule Publish the draft at a future time
Parameters
idstringpathrequiredRequest body
application/json
atstringrequired{
"at": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/schedule" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"at":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"slug": "string",
"status": "draft",
"publishedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequiredslugstringrequiredstatusstringrequiredpublishedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectDELETE
https://hermeticor.com /v1/landing-pages/{id}/schedule Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/landing-pages/{id}/schedule" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/landing-pages/{id}/clone Parameters
idstringpathrequiredRequest body
application/json
namestringslugstring{
"name": "string",
"slug": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/clone" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","slug":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/landing-pages/batch create | read | update | archive (delete) up to 50 pages in one transaction
Request body
application/json
Example
{
"op": "create",
"items": [
{
"name": "string",
"slug": "string",
"seoTitle": "string",
"seoDescription": "string",
"doc": {
"version": 1,
"width": 600,
"background": "string",
"blocks": [
{}
],
"translations": {}
},
"formId": "string",
"folderId": "string",
"locale": "string",
"noindex": true,
"headScripts": "string",
"redirect": {
"url": "string",
"status": 302
},
"unpublishAt": "2024-01-01T00:00:00Z"
}
]
}Option 1
opstringrequireditemsobject[]requiredShow child parameters
namestringrequiredslugstringrequiredseoTitlestringseoDescriptionstringdocobjectrequiredShow child parameters
versionnumberwidthintegerbackgroundstringblocksschema0[]requiredtranslationsobjectformIdstringfolderIdstringlocalestringnoindexbooleanheadScriptsstringredirectobjectShow child parameters
urlstringrequiredstatusnumberunpublishAtstring{
"op": "create",
"items": [
{
"name": "string",
"slug": "string",
"seoTitle": "string",
"seoDescription": "string",
"doc": {
"version": 1,
"width": 600,
"background": "string",
"blocks": [
{}
],
"translations": {}
},
"formId": "string",
"folderId": "string",
"locale": "string",
"noindex": true,
"headScripts": "string",
"redirect": {
"url": "string",
"status": 302
},
"unpublishAt": "2024-01-01T00:00:00Z"
}
]
}PostV1CampaignFoldersBatchBodyVariant
opstringrequiredidsstring[]required{
"op": "read",
"ids": [
"string"
]
}Option 3
opstringrequireditemsobject[]requiredShow child parameters
idstringrequiredpatchobjectrequiredShow child parameters
namestringslugstringseoTitlestringseoDescriptionstringdocobjectformIdstringfolderIdstringlocalestringnoindexbooleanheadScriptsstringredirectobjectunpublishAtstring{
"op": "update",
"items": [
{
"id": "string",
"patch": {
"name": "string",
"slug": "string",
"seoTitle": "string",
"seoDescription": "string",
"doc": {
"version": 1,
"width": 600,
"background": "string",
"blocks": [
{}
],
"translations": {}
},
"formId": "string",
"folderId": "string",
"locale": "string",
"noindex": true,
"headScripts": "string",
"redirect": {
"url": "string",
"status": 302
},
"unpublishAt": "2024-01-01T00:00:00Z"
}
}
]
}PostV1CampaignFoldersBatchBodyVariant2
opstringrequiredidsstring[]required{
"op": "archive",
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/batch" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"op":"create","items":[{"name":"string","slug":"string","seoTitle":"string","seoDescription":"string","doc":{"version":1,"width":600,"background":"string","blocks":[{}],"translations":{}},"formId":"string","folderId":"string","locale":"string","noindex":true,"headScripts":"string","redirect":{"url":"string","status":302},"unpublishAt":"2024-01-01T00:00:00Z"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"slug": "string",
"status": "draft",
"publishedAt": "2024-01-01T00:00:00Z"
}
],
"archived": 0
}Schema
itemsItemsItem75[]requiredShow child parameters
idstringrequirednamestringrequiredslugstringrequiredstatusstringrequiredpublishedAtstringrequiredarchivedintegerrequiredPUT
https://hermeticor.com /v1/landing-pages/{id}/folder Parameters
idstringpathrequiredRequest body
application/json
folderIdstringrequired{
"folderId": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/landing-pages/{id}/folder" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"folderId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/landing-page-folders/batch create | read | update | archive up to 50 folders in one transaction
Request body
application/json
Example
{
"op": "create",
"items": [
{
"name": "string",
"parentId": "string"
}
]
}Option 1
opstringrequireditemsItemsItem77[]requiredShow child parameters
namestringrequiredparentIdstring{
"op": "create",
"items": [
{
"name": "string",
"parentId": "string"
}
]
}PostV1CampaignFoldersBatchBodyVariant
opstringrequiredidsstring[]required{
"op": "read",
"ids": [
"string"
]
}Option 3
opstringrequireditemsobject[]requiredShow child parameters
idstringrequiredpatchobjectrequiredShow child parameters
namestringparentIdstring{
"op": "update",
"items": [
{
"id": "string",
"patch": {
"name": "string",
"parentId": "string"
}
}
]
}PostV1CampaignFoldersBatchBodyVariant2
opstringrequiredidsstring[]required{
"op": "archive",
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/landing-page-folders/batch" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"op":"create","items":[{"name":"string","parentId":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"parentId": "string",
"itemCount": 0
}
],
"archived": 0
}Schema
itemsItemsItem78[]requiredShow child parameters
idstringrequirednamestringrequiredparentIdstringrequireditemCountintegerrequiredarchivedintegerrequiredGET
https://hermeticor.com /v1/landing-page-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/landing-page-folders" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"parentId": "string",
"itemCount": 0
}
],
"nextCursor": "string"
}Schema
itemsItemsItem78[]requiredShow child parameters
idstringrequirednamestringrequiredparentIdstringrequireditemCountintegerrequirednextCursorstringrequiredUpdated