Other endpoints
POST
https://hermeticor.com /v1/event-definitions Declare an event (and optionally its properties) before it is first sent
Request body
application/json
namestringrequiredschemaobject{
"name": "string",
"schema": {}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/event-definitions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","schema":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"category": "standard",
"schema": {},
"enforce": true,
"goal": true,
"firstSeenAt": "2024-01-01T00:00:00Z",
"lastSeenAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequiredcategorystringrequiredschemaobjectrequiredenforcebooleanrequiredgoalbooleanrequiredfirstSeenAtstringrequiredlastSeenAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/event-definitions/{name} Parameters
namestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/event-definitions/{name}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/event-definitions/{name} Remove the declaration only; stored events stay
Parameters
namestringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/event-definitions/{name}" \
-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/event-definitions/{name} Parameters
namestringpathrequiredRequest body
application/json
schemaobjectenforcebooleangoalboolean{
"schema": {},
"enforce": true,
"goal": true
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/event-definitions/{name}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"schema":{},"enforce":true,"goal":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/event-definitions/{name}/usage Journeys that start on this event
Parameters
namestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/event-definitions/{name}/usage" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"workflows": [
{
"id": "string",
"name": "string",
"status": "string"
}
]
}Schema
workflowsobject[]requiredShow child parameters
idstringrequirednamestringrequiredstatusstringrequiredPUT
https://hermeticor.com /v1/event-definitions/{name}/properties/{prop} Add or change one declared property type
Parameters
namestringpathrequiredpropstringpathrequiredRequest body
application/json
typestringrequired{
"type": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/event-definitions/{name}/properties/{prop}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/event-definitions/{name}/properties/{prop} Parameters
namestringpathrequiredpropstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/event-definitions/{name}/properties/{prop}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/profiles/{id}/events Parameters
limitintegerquerycursorstringquerynamestringquerygoalstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/profiles/{id}/events" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"profileId": "string",
"anonymousId": "string",
"occurredAt": "2024-01-01T00:00:00Z",
"source": "browser",
"properties": {},
"value": 0,
"currency": "string",
"metric": {
"name": "string",
"category": "string",
"goal": true
},
"profile": {
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string"
}
}
],
"nextCursor": "string"
}Schema
itemsItemsItem25[]requiredShow child parameters
idstringrequirednamestringrequiredprofileIdstringrequiredanonymousIdstringrequiredoccurredAtstringrequiredsourcestringrequiredpropertiesobjectrequiredvalueintegerrequiredcurrencystringrequiredmetricobjectShow child parameters
namestringrequiredcategorystringrequiredgoalbooleanrequiredprofileobjectShow child parameters
idstringrequiredemailstringrequiredfirstNamestringrequiredlastNamestringrequirednextCursorstringrequiredPOST
https://hermeticor.com /ingest/v1/batch Request body
application/json
eventsobject[]requiredconsentobjectShow child parameters
analyticsbooleanmarketingboolean{
"events": [
{}
],
"consent": {
"analytics": true,
"marketing": true
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/batch" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"events":[{}],"consent":{"analytics":true,"marketing":true}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"accepted": 0,
"duplicates": 0,
"rejected": [
{
"index": 0,
"reason": "string"
}
]
}Schema
acceptedintegerrequiredduplicatesintegerrequiredrejectedRejectedItem[]requiredShow child parameters
indexintegerrequiredreasonstringrequiredPOST
https://hermeticor.com /ingest/v1/identify Request body
application/json
anonymousIdstringrequiredidentifiersobjectrequiredShow child parameters
emailstringphonestringexternalIdstringtraitsobjectconsentobjectShow child parameters
analyticsbooleanmarketingboolean{
"anonymousId": "string",
"identifiers": {
"email": "string",
"phone": "string",
"externalId": "string"
},
"traits": {},
"consent": {
"analytics": true,
"marketing": true
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/ingest/v1/identify" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"anonymousId":"string","identifiers":{"email":"string","phone":"string","externalId":"string"},"traits":{},"consent":{"analytics":true,"marketing":true}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"profileId": "string",
"created": true
}Schema
profileIdstringrequiredcreatedbooleanrequiredUpdated