inapp
GET
https://hermeticor.com /v1/in-app-components Developer-defined in-app components
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-components" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"key": "string",
"name": "string",
"description": "string",
"fields": [
{
"key": "string",
"label": "string",
"type": "text",
"required": false
}
],
"events": [
"string"
],
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem209[]requiredShow child parameters
idstringrequiredkeystringrequirednamestringrequireddescriptionstringrequiredfieldsFieldsItem2[]requiredShow child parameters
keystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredeventsstring[]requiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/in-app-components Define a component the app renders natively (its fields and the events it reports)
Request body
application/json
keystringrequirednamestringrequireddescriptionstringfieldsFieldsItem3[]Show child parameters
keystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleaneventsstring[]{
"key": "string",
"name": "string",
"description": "",
"fields": [],
"events": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/in-app-components" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key":"string","name":"string","description":"","fields":[],"events":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"key": "string",
"name": "string",
"description": "string",
"fields": [
{
"key": "string",
"label": "string",
"type": "text",
"required": false
}
],
"events": [
"string"
],
"createdAt": "string"
}Schema
idstringrequiredkeystringrequirednamestringrequireddescriptionstringrequiredfieldsFieldsItem2[]requiredShow child parameters
keystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredeventsstring[]requiredcreatedAtstringrequiredDELETE
https://hermeticor.com /v1/in-app-components/{id} Delete a component
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/in-app-components/{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-components/{id} Edit a component
Parameters
idstringpathrequiredRequest body
application/json
namestringdescriptionstringfieldsFieldsItem3[]Show child parameters
keystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleaneventsstring[]{
"name": "string",
"description": "string",
"fields": [
{
"key": "string",
"label": "string",
"type": "text",
"required": false
}
],
"events": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/in-app-components/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","fields":[{"key":"string","label":"string","type":"text","required":false}],"events":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated