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-page-folders

Request body

application/json
namestringrequired
parentIdstring
{
  "name": "string",
  "parentId": "string"
}

Code samples

cURL
curl -X POST "https://hermeticor.com/v1/landing-page-folders" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","parentId":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Default Response
Example
{
  "id": "string",
  "name": "string",
  "parentId": "string",
  "itemCount": 0
}
Schema
idstringrequired
namestringrequired
parentIdstringrequired
itemCountintegerrequired
4XX Default Response
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}
Schema
errorobjectrequired
Show child parameters
codestringrequired
messagestringrequired
detailsobject
5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

GEThttps://hermeticor.com/v1/landing-page-folders/{id}

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://hermeticor.com/v1/landing-page-folders/{id}" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response

Same as 201 · POST /v1/landing-page-folders

4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

DELETEhttps://hermeticor.com/v1/landing-page-folders/{id}

Pages move to the root; nothing is deleted

Parameters

idstringpathrequired

Code samples

cURL
curl -X DELETE "https://hermeticor.com/v1/landing-page-folders/{id}" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response
Example
{
  "ok": true
}
Schema
okbooleanrequired
true
4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

PATCHhttps://hermeticor.com/v1/landing-page-folders/{id}

Parameters

idstringpathrequired

Request body

application/json
namestring
parentIdstring
{
  "name": "string",
  "parentId": "string"
}

Code samples

cURL
curl -X PATCH "https://hermeticor.com/v1/landing-page-folders/{id}" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","parentId":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response

Same as 201 · POST /v1/landing-page-folders

4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

GEThttps://hermeticor.com/v1/landing-page-folders/{id}/revisions

Earlier names and parents of this folder, newest first

Parameters

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

Code samples

cURL
curl -X GET "https://hermeticor.com/v1/landing-page-folders/{id}/revisions" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response
Example
{
  "items": [
    {
      "id": "string",
      "folderId": "string",
      "name": "string",
      "parentId": "string",
      "createdAt": "2024-01-01T00:00:00Z"
    }
  ],
  "nextCursor": "string"
}
Schema
itemsItemsItem79[]required
Show child parameters
idstringrequired
folderIdstringrequired
namestringrequired
parentIdstringrequired
createdAtstringrequired
nextCursorstringrequired
4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

GEThttps://hermeticor.com/v1/landing-page-folders/{id}/revisions/{revisionId}

Parameters

idstringpathrequired
revisionIdstringpathrequired

Code samples

cURL
curl -X GET "https://hermeticor.com/v1/landing-page-folders/{id}/revisions/{revisionId}" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response
Example
{
  "id": "string",
  "folderId": "string",
  "name": "string",
  "parentId": "string",
  "createdAt": "2024-01-01T00:00:00Z"
}
Schema
idstringrequired
folderIdstringrequired
namestringrequired
parentIdstringrequired
createdAtstringrequired
4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

POSThttps://hermeticor.com/v1/landing-page-folders/{id}/revisions/{revisionId}/restore

Parameters

idstringpathrequired
revisionIdstringpathrequired

Code samples

cURL
curl -X POST "https://hermeticor.com/v1/landing-page-folders/{id}/revisions/{revisionId}/restore" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response

Same as 201 · POST /v1/landing-page-folders

4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

GEThttps://hermeticor.com/v1/landing-pages/{id}/languages

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://hermeticor.com/v1/landing-pages/{id}/languages" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response
Example
{
  "groupId": "string",
  "items": [
    {
      "pageId": "string",
      "slug": "string",
      "locale": "string",
      "primary": true,
      "status": "string"
    }
  ]
}
Schema
groupIdstringrequired
itemsobject[]required
Show child parameters
pageIdstringrequired
slugstringrequired
localestringrequired
primarybooleanrequired
statusstringrequired
4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

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

Copy the page into a new draft in another language and link them

Parameters

idstringpathrequired

Request body

application/json
localestringrequired
namestring
slugstring
{
  "locale": "string",
  "name": "string",
  "slug": "string"
}

Code samples

cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/languages" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locale":"string","name":"string","slug":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 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

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

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

Parameters

idstringpathrequired

Request body

application/json
groupPageIdstringrequired
localestringrequired
{
  "groupPageId": "string",
  "locale": "string"
}

Code samples

cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/languages/attach" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"groupPageId":"string","locale":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

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

Parameters

idstringpathrequired

Code samples

cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/languages/detach" \
  -H "Authorization: Bearer $HERMETICOR_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

4XX Default Response

Same as 4XX · POST /v1/landing-page-folders

5XX Default Response

Same as 4XX · POST /v1/landing-page-folders

Updated