inapp-client
GET
https://hermeticor.com /client/in-app-messages In-app messages for an identified or anonymous visitor at a trigger
Parameters
company_idstringqueryplatformstringqueryrequiredtriggerstringquerynamestringqueryurlstringquerypropertiesstringquerysession_idstringqueryexternal_idstringqueryemailstringqueryphone_numberstringqueryanonymous_idstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/client/in-app-messages?platform=ios" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"variant": "string",
"layout": "modal",
"content": {
"blocks": [],
"html": "string"
},
"style": {
"background": "#ffffff",
"textColor": "#111111",
"accentColor": "#2563eb",
"radius": 12,
"dismissible": true
},
"priority": 0,
"queued": true
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredvariantstringrequiredlayoutstringrequiredcontentobjectrequiredShow child parameters
blocksBlocksItem[]requiredhtmlstringstyleobjectrequiredShow child parameters
backgroundstringrequiredtextColorstringrequiredaccentColorstringrequiredradiusintegerrequireddismissiblebooleanrequiredpriorityintegerrequiredqueuedbooleanrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /client/in-app-events Report impressions, clicks and dismissals
Parameters
company_idstringqueryRequest body
application/json
eventsobject[]requiredShow child parameters
messageIdstringrequiredvariantstringtypestringrequiredplatformstringrequiredsessionIdstringbuttonstringatstringprofileobjectShow child parameters
externalIdstringemailstringphoneNumberstringanonymousIdstring{
"events": [
{
"messageId": "string",
"variant": "a",
"type": "impression",
"platform": "ios",
"sessionId": "string",
"button": "string",
"at": "2024-01-01T00:00:00Z"
}
],
"profile": {
"externalId": "string",
"email": "string",
"phoneNumber": "string",
"anonymousId": "string"
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/client/in-app-events" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"events":[{"messageId":"string","variant":"a","type":"impression","platform":"ios","sessionId":"string","button":"string","at":"2024-01-01T00:00:00Z"}],"profile":{"externalId":"string","email":"string","phoneNumber":"string","anonymousId":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"ok": true,
"recorded": 0
}Schema
okbooleanrequiredrecordedintegerrequiredGET
https://hermeticor.com /client/geofences Active geofences the app should monitor (Klaviyo JSON:API list)
Parameters
company_idstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/client/geofences" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"data": [
{
"type": "geofence",
"id": "string",
"attributes": {
"name": "string",
"latitude": 0,
"longitude": 0,
"radius": 0
}
}
]
}Schema
dataobject[]requiredShow child parameters
typestringrequiredidstringrequiredattributesobjectrequiredShow child parameters
namestringrequiredlatitudenumberrequiredlongitudenumberrequiredradiusintegerrequiredGET
https://hermeticor.com /client/inbox The contact's inbox, newest first, with the unread count
Parameters
company_idstringqueryunreadstringquerycursorstringquerylimitintegerqueryexternal_idstringqueryemailstringqueryphone_numberstringqueryanonymous_idstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/client/inbox" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"title": "string",
"body": "string",
"imageUrl": "string",
"link": "string",
"category": "string",
"data": {},
"read": true,
"createdAt": "string",
"expiresAt": "string"
}
],
"unread": 0,
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredtitlestringrequiredbodystringrequiredimageUrlstringrequiredlinkstringrequiredcategorystringrequireddataobjectrequiredreadbooleanrequiredcreatedAtstringrequiredexpiresAtstringrequiredunreadintegerrequirednextCursorstringrequiredPOST
https://hermeticor.com /client/inbox/{id}/read Mark an inbox message read or unread
Parameters
company_idstringqueryexternal_idstringqueryemailstringqueryphone_numberstringqueryanonymous_idstringqueryidstringpathrequiredRequest body
application/json
readbooleanprofileobjectrequiredShow child parameters
externalIdstringemailstringphoneNumberstringanonymousIdstring{
"read": true,
"profile": {
"externalId": "string",
"email": "string",
"phoneNumber": "string",
"anonymousId": "string"
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/client/inbox/{id}/read" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"read":true,"profile":{"externalId":"string","email":"string","phoneNumber":"string","anonymousId":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /client/inbox/{id}/delete Delete an inbox message for the contact
Parameters
company_idstringqueryexternal_idstringqueryemailstringqueryphone_numberstringqueryanonymous_idstringqueryidstringpathrequiredRequest body
application/json
profileobjectrequiredShow child parameters
externalIdstringemailstringphoneNumberstringanonymousIdstring{
"profile": {
"externalId": "string",
"email": "string",
"phoneNumber": "string",
"anonymousId": "string"
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/client/inbox/{id}/delete" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profile":{"externalId":"string","email":"string","phoneNumber":"string","anonymousId":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /client/in-app-trackers Active tracker components for the contact (journey tracker steps)
Parameters
company_idstringqueryexternal_idstringqueryemailstringqueryphone_numberstringqueryanonymous_idstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/client/in-app-trackers" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"componentKey": "string",
"fields": {},
"events": [
"string"
]
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredcomponentKeystringrequiredfieldsobjectrequiredeventsstring[]requirednextCursorstringrequiredUpdated