inapp
GET
https://hermeticor.com /v1/in-app-messages In-app messages
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/in-app-messages" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"status": "draft",
"name": "string",
"layout": "modal",
"content": {
"blocks": [],
"html": "string"
},
"style": {
"background": "#ffffff",
"textColor": "#111111",
"accentColor": "#2563eb",
"radius": 12,
"dismissible": true
},
"audience": {
"kind": "everyone"
},
"trigger": {
"type": "app_open"
},
"platforms": [
"ios"
],
"frequency": {
"mode": "once",
"max": 0,
"perDays": 0
},
"priority": 0,
"startAt": "string",
"endAt": "string",
"variants": [
{
"key": "string",
"weight": 0,
"content": {
"blocks": [],
"html": "string"
}
}
],
"createdAt": "string",
"updatedAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem207[]requiredShow child parameters
idstringrequiredstatusstringrequirednamestringrequiredlayoutstringrequiredcontentobjectrequiredShow child parameters
blocksBlocksItem[]requiredhtmlstringstyleobjectrequiredShow child parameters
backgroundstringrequiredtextColorstringrequiredaccentColorstringrequiredradiusintegerrequireddismissiblebooleanrequiredaudienceobject | AudienceVariant | AudienceVariant2requiredtriggerobject | TriggerVariant | TriggerVariant2 | TriggerVariant3requiredplatformsstring[]requiredfrequencyobjectrequiredShow child parameters
modestringrequiredmaxintegerperDaysintegerpriorityintegerrequiredstartAtstringrequiredendAtstringrequiredvariantsVariantsItem6[]requiredShow child parameters
keystringrequiredweightintegerrequiredcontentobjectrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/in-app-messages Create an in-app message (draft)
Request body
application/json
namestringrequiredlayoutstringcontentobjectShow child parameters
blocksBlocksItem2[]htmlstringstyleobjectShow child parameters
backgroundstringtextColorstringaccentColorstringradiusintegerdismissiblebooleanaudienceobject | AudienceVariant3 | AudienceVariant4triggerobject | TriggerVariant4 | TriggerVariant5platformsstring[]frequencyobjectShow child parameters
modestringrequiredmaxintegerperDaysintegerpriorityintegerstartAtstringendAtstringvariantsVariantsItem7[]Show child parameters
keystringrequiredweightintegerrequiredcontentobjectrequiredShow child parameters
blocksBlocksItem2[]htmlstring{
"name": "string",
"layout": "modal",
"content": {
"blocks": []
},
"style": {
"background": "#ffffff",
"textColor": "#111111",
"accentColor": "#2563eb",
"radius": 12,
"dismissible": true
},
"audience": {
"kind": "everyone"
},
"trigger": {
"type": "app_open"
},
"platforms": [
"ios",
"android",
"web"
],
"frequency": {
"mode": "once"
},
"priority": 100,
"startAt": "2024-01-01T00:00:00Z",
"endAt": "2024-01-01T00:00:00Z",
"variants": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/in-app-messages" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","layout":"modal","content":{"blocks":[]},"style":{"background":"#ffffff","textColor":"#111111","accentColor":"#2563eb","radius":12,"dismissible":true},"audience":{"kind":"everyone"},"trigger":{"type":"app_open"},"platforms":["ios","android","web"],"frequency":{"mode":"once"},"priority":100,"startAt":"2024-01-01T00:00:00Z","endAt":"2024-01-01T00:00:00Z","variants":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"status": "draft",
"name": "string",
"layout": "modal",
"content": {
"blocks": [],
"html": "string"
},
"style": {
"background": "#ffffff",
"textColor": "#111111",
"accentColor": "#2563eb",
"radius": 12,
"dismissible": true
},
"audience": {
"kind": "everyone"
},
"trigger": {
"type": "app_open"
},
"platforms": [
"ios"
],
"frequency": {
"mode": "once",
"max": 0,
"perDays": 0
},
"priority": 0,
"startAt": "string",
"endAt": "string",
"variants": [
{
"key": "string",
"weight": 0,
"content": {
"blocks": [],
"html": "string"
}
}
],
"createdAt": "string",
"updatedAt": "string"
}Schema
idstringrequiredstatusstringrequirednamestringrequiredlayoutstringrequiredcontentobjectrequiredShow child parameters
blocksBlocksItem[]requiredhtmlstringstyleobjectrequiredShow child parameters
backgroundstringrequiredtextColorstringrequiredaccentColorstringrequiredradiusintegerrequireddismissiblebooleanrequiredaudienceobject | AudienceVariant | AudienceVariant2requiredtriggerobject | TriggerVariant | TriggerVariant2 | TriggerVariant3requiredplatformsstring[]requiredfrequencyobjectrequiredShow child parameters
modestringrequiredmaxintegerperDaysintegerpriorityintegerrequiredstartAtstringrequiredendAtstringrequiredvariantsVariantsItem6[]requiredShow child parameters
keystringrequiredweightintegerrequiredcontentobjectrequiredShow child parameters
blocksBlocksItem[]requiredhtmlstringcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/in-app-messages/{id} One in-app message
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/in-app-messages/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/in-app-messages/{id} Delete an in-app message and its events
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/in-app-messages/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/in-app-messages/{id} Edit an in-app message or change its status (draft, live, paused, archived)
Parameters
idstringpathrequiredRequest body
application/json
namestringlayoutstringcontentobjectShow child parameters
blocksBlocksItem2[]htmlstringstyleobjectShow child parameters
backgroundstringtextColorstringaccentColorstringradiusintegerdismissiblebooleanaudienceobject | AudienceVariant3 | AudienceVariant4triggerobject | TriggerVariant4 | TriggerVariant5platformsstring[]frequencyobjectShow child parameters
modestringrequiredmaxintegerperDaysintegerpriorityintegerstartAtstringendAtstringvariantsVariantsItem7[]Show child parameters
keystringrequiredweightintegerrequiredcontentobjectrequiredShow child parameters
blocksBlocksItem2[]htmlstringstatusstring{
"name": "string",
"layout": "modal",
"content": {
"blocks": [],
"html": "string"
},
"style": {
"background": "#ffffff",
"textColor": "#111111",
"accentColor": "#2563eb",
"radius": 12,
"dismissible": true
},
"audience": {
"kind": "everyone"
},
"trigger": {
"type": "app_open"
},
"platforms": [
"ios"
],
"frequency": {
"mode": "once",
"max": 0,
"perDays": 0
},
"priority": 0,
"startAt": "2024-01-01T00:00:00Z",
"endAt": "2024-01-01T00:00:00Z",
"variants": [
{
"key": "string",
"weight": 0,
"content": {
"blocks": [],
"html": "string"
}
}
],
"status": "draft"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/in-app-messages/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","layout":"modal","content":{"blocks":[],"html":"string"},"style":{"background":"#ffffff","textColor":"#111111","accentColor":"#2563eb","radius":12,"dismissible":true},"audience":{"kind":"everyone"},"trigger":{"type":"app_open"},"platforms":["ios"],"frequency":{"mode":"once","max":0,"perDays":0},"priority":0,"startAt":"2024-01-01T00:00:00Z","endAt":"2024-01-01T00:00:00Z","variants":[{"key":"string","weight":0,"content":{"blocks":[],"html":"string"}}],"status":"draft"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated