landing-pages
PUT
https://hermeticor.com /v1/landing-pages/{id}/languages/primary Make this page the group fallback (served at its address by Accept-Language)
Parameters
idstringpathrequiredCode samples
cURL
curl -X PUT "https://hermeticor.com/v1/landing-pages/{id}/languages/primary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"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
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/landing-page-languages Re-label locales of pages in one group
Request body
application/json
languagesobject[]requiredShow child parameters
pageIdstringrequiredlocalestringrequired{
"languages": [
{
"pageId": "string",
"locale": "string"
}
]
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/landing-page-languages" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"languages":[{"pageId":"string","locale":"string"}]}'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"
}
]
}Schema
itemsItemsItem75[]requiredShow child parameters
idstringrequirednamestringrequiredslugstringrequiredstatusstringrequiredpublishedAtstringrequiredPOST
https://hermeticor.com /v1/landing-pages/{id}/ab/variants Add a copy as a new arm (even split); publish it to start serving
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/ab/variants" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PUT
https://hermeticor.com /v1/landing-pages/{id}/ab/weights Traffic split per arm (control included)
Parameters
idstringpathrequiredRequest body
application/json
weightsobject[]requiredShow child parameters
pageIdstringrequiredweightintegerrequired{
"weights": [
{
"pageId": "string",
"weight": 0
}
]
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/landing-pages/{id}/ab/weights" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"weights":[{"pageId":"string","weight":0}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/landing-pages/{id}/ab Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/landing-pages/{id}/ab" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"status": "none",
"winnerId": "string",
"arms": [
{
"pageId": "string",
"slug": "string",
"weight": 0,
"visits": 0,
"signups": 0,
"conversion": 0
}
]
}Schema
statusstringrequiredwinnerIdstringrequiredarmsobject[]requiredShow child parameters
pageIdstringrequiredslugstringrequiredweightintegerrequiredvisitsintegerrequiredsignupsintegerrequiredconversionnumberrequiredPOST
https://hermeticor.com /v1/landing-pages/{id}/ab/end Send all traffic to the winner (best conversion when none is given)
Parameters
idstringpathrequiredRequest body
application/json
winnerIdstring{
"winnerId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/ab/end" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"winnerId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/landing-pages/{id}/ab/rerun Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/landing-pages/{id}/ab/rerun" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /p/l/{ref}/click Beacon from a hosted page: one link was clicked
Parameters
pstringqueryrefstringpathrequiredRequest body
application/json
urlstringrequired{
"url": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/p/l/{ref}/click" \
-H "Content-Type: application/json" \
-d '{"url":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredGET
https://hermeticor.com /p/l/{ref}/companies Company suggestions for the form on a hosted page
Parameters
qstringqueryrequiredlimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pagerefstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/l/{ref}/companies?q=<q>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
"string"
],
"nextCursor": "string"
}Schema
itemsstring[]requirednextCursorstringrequiredUpdated