sites
GET
https://hermeticor.com /v1/content-slots Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/content-slots" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"name": "string",
"defaultHtml": "",
"rules": [],
"enabled": true,
"id": "string",
"key": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem160[]requiredShow child parameters
namestringrequireddefaultHtmlstringrequiredrulesRulesItem7[]requiredShow child parameters
idstringrequiredsegmentIdsstring[]requiredidentifiedbooleanhtmlstringrequiredenabledbooleanrequiredidstringrequiredkeystringrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/content-slots/{key} Create or replace a slot: first matching segment rule wins, else the default
Parameters
keystringpathrequiredRequest body
application/json
namestringrequireddefaultHtmlstringrulesobject[]Show child parameters
idstringrequiredsegmentIdsstring[]identifiedbooleanhtmlstringrequiredenabledboolean{
"name": "string",
"defaultHtml": "",
"rules": [],
"enabled": true
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/content-slots/{key}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","defaultHtml":"","rules":[],"enabled":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"name": "string",
"defaultHtml": "",
"rules": [],
"enabled": true,
"id": "string",
"key": "string",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
namestringrequireddefaultHtmlstringrequiredrulesRulesItem7[]requiredShow child parameters
idstringrequiredsegmentIdsstring[]requiredidentifiedbooleanhtmlstringrequiredenabledbooleanrequiredidstringrequiredkeystringrequiredcreatedAtstringrequiredupdatedAtstringrequiredDELETE
https://hermeticor.com /v1/content-slots/{key} Parameters
keystringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/content-slots/{key}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredGET
https://hermeticor.com /ingest/v1/slots.js Snippet: <script src=".../ingest/v1/slots.js?k=SITE_KEY"> then mark elements with data-hermetica-slot="key"
Code samples
cURL
curl -X GET "https://hermeticor.com/ingest/v1/slots.js"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /ingest/v1/slots Slot content for the visitor: identified profiles get their segment rules
Parameters
slotsstringqueryaidstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/ingest/v1/slots" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"slots": {}
}Schema
slotsobjectrequiredGET
https://hermeticor.com /v1/content-slots/pushes Live content journeys pushed into individual visitors' slots
Parameters
slotKeystringqueryprofileIdstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/content-slots/pushes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"profileId": "string",
"slotKey": "string",
"html": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredprofileIdstringrequiredslotKeystringrequiredhtmlstringrequiredexpiresAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredDELETE
https://hermeticor.com /v1/content-slots/pushes/{id} Withdraw pushed content (the slot falls back to its rules)
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/content-slots/pushes/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated