landing-pages

Embed
Preview of the card
<a href="https://hermeticor.com/docs/ref-landing-pages"><img src="https://hermeticor.com/docs/_api/public/orgs/5fcd8b3c-a27c-4688-972f-de710125592f/spaces/caf5dc05-15f7-4e0c-bdb8-ab29ede6211e/pages/c6be5417-6c86-4c1d-96eb-b62b10fbdcb8/social-card.svg?v=3e7ae33eec8b" alt="landing-pages" width="600" height="315"></a>
POSThttps://hermeticor.com/v1/landing-pages/{id}/schedule

Publish the draft at a future time

Parameters

idstringpathrequired

Request 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
idstringrequired
namestringrequired
slugstringrequired
statusstringrequired
draft | published
publishedAtstringrequired
4XX Default Response
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}
Schema
errorobjectrequired
Show child parameters
codestringrequired
messagestringrequired
detailsobject
DELETEhttps://hermeticor.com/v1/landing-pages/{id}/schedule

Parameters

idstringpathrequired

Code 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

POSThttps://hermeticor.com/v1/landing-pages/{id}/clone

Parameters

idstringpathrequired

Request body

application/json
namestring
slugstring
{
  "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

POSThttps://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
opstringrequired
create
itemsobject[]required
Show child parameters
namestringrequired
slugstringrequired
seoTitlestring
seoDescriptionstring
docobjectrequired
Show child parameters
versionnumber
1 = 1
widthinteger
= 600
backgroundstring
blocksschema0[]required
translationsobject
formIdstring
folderIdstring
localestring
noindexboolean
headScriptsstring
redirectobject
Show child parameters
urlstringrequired
statusnumber
= 302
unpublishAtstring
{
  "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
opstringrequired
read
idsstring[]required
{
  "op": "read",
  "ids": [
    "string"
  ]
}
Option 3
opstringrequired
update
itemsobject[]required
Show child parameters
idstringrequired
patchobjectrequired
Show child parameters
namestring
slugstring
seoTitlestring
seoDescriptionstring
docobject
formIdstring
folderIdstring
localestring
noindexboolean
headScriptsstring
redirectobject
unpublishAtstring
{
  "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
opstringrequired
archive
idsstring[]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[]required
Show child parameters
idstringrequired
namestringrequired
slugstringrequired
statusstringrequired
draft | published
publishedAtstringrequired
archivedintegerrequired
PUThttps://hermeticor.com/v1/landing-pages/{id}/folder

Parameters

idstringpathrequired

Request 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

POSThttps://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
opstringrequired
create
itemsItemsItem77[]required
Show child parameters
namestringrequired
parentIdstring
{
  "op": "create",
  "items": [
    {
      "name": "string",
      "parentId": "string"
    }
  ]
}
PostV1CampaignFoldersBatchBodyVariant
opstringrequired
read
idsstring[]required
{
  "op": "read",
  "ids": [
    "string"
  ]
}
Option 3
opstringrequired
update
itemsobject[]required
Show child parameters
idstringrequired
patchobjectrequired
Show child parameters
namestring
parentIdstring
{
  "op": "update",
  "items": [
    {
      "id": "string",
      "patch": {
        "name": "string",
        "parentId": "string"
      }
    }
  ]
}
PostV1CampaignFoldersBatchBodyVariant2
opstringrequired
archive
idsstring[]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[]required
Show child parameters
idstringrequired
namestringrequired
parentIdstringrequired
itemCountintegerrequired
archivedintegerrequired
GEThttps://hermeticor.com/v1/landing-page-folders

Parameters

limitintegerquery
Page size; omitted returns the whole list
cursorstringquery
Opaque: the nextCursor of the previous page

Code 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[]required
Show child parameters
idstringrequired
namestringrequired
parentIdstringrequired
itemCountintegerrequired
nextCursorstringrequired

Updated