metrics
GET
https://hermeticor.com /v1/events Workspace-wide event list: filter by name, profile, time range, properties, journey or broadcast; sort by datetime; include=metric,profile
Parameters
limitintegerquerycursorstringquerynamestringqueryprofileIdstringqueryfromstringquerytostringqueryfilterstringquerysortstringqueryincludestringqueryjourneyIdstringquerybroadcastIdstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/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
idstringrequiredemailstringrequiredfirstNamestringrequiredlastNamestringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/events/export The same filters as GET /v1/events, as CSV text (first 50,000 events); POST /v1/events/export-jobs exports every match as a file
Parameters
namestringqueryprofileIdstringqueryfromstringquerytostringqueryfilterstringquerysortstringqueryjourneyIdstringquerybroadcastIdstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/events/export" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"filename": "string",
"csv": "string",
"count": 0,
"truncated": true
}Schema
filenamestringrequiredcsvstringrequiredcountintegerrequiredtruncatedbooleanrequiredPOST
https://hermeticor.com /v1/events/export-jobs Every event matching the GET /v1/events filters as a CSV file, prepared in the background (poll GET /v1/exports/:id for the download link)
Request body
application/json
namestringprofileIdstringfromstringtostringfilterstringsortstringjourneyIdstringbroadcastIdstring{
"name": "string",
"profileId": "string",
"from": "2024-01-01T00:00:00Z",
"to": "2024-01-01T00:00:00Z",
"filter": "string",
"sort": "datetime",
"journeyId": "string",
"broadcastId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/events/export-jobs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","profileId":"string","from":"2024-01-01T00:00:00Z","to":"2024-01-01T00:00:00Z","filter":"string","sort":"datetime","journeyId":"string","broadcastId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"kind": "bulk",
"op": "string",
"status": "queued",
"progress": {
"total": 0,
"processed": 0,
"failed": 0
},
"error": "string",
"downloadUrl": "string",
"failures": [
{
"profileId": "string",
"message": "string"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequiredopstringrequiredstatusstringrequiredprogressobjectrequiredShow child parameters
totalintegerrequiredprocessedintegerrequiredfailedintegerrequirederrorstringrequireddownloadUrlstringfailuresFailuresItem[]Show child parameters
profileIdstringrequiredmessagestringrequiredcreatedAtstringrequiredfinishedAtstringrequiredGET
https://hermeticor.com /v1/events/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/events/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"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"
}
}Schema
idstringrequirednamestringrequiredprofileIdstringrequiredanonymousIdstringrequiredoccurredAtstringrequiredsourcestringrequiredpropertiesobjectrequiredvalueintegerrequiredcurrencystringrequiredmetricobjectShow child parameters
namestringrequiredcategorystringrequiredgoalbooleanrequiredprofileobjectShow child parameters
idstringrequiredemailstringrequiredfirstNamestringrequiredlastNamestringrequiredGET
https://hermeticor.com /v1/metrics Metrics: observed events plus custom metrics, with counts and last-seen
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/metrics" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"name": "string",
"kind": "event",
"customMetricId": "string",
"category": "standard",
"goal": true,
"eventCount": 0,
"lastEventAt": "2024-01-01T00:00:00Z",
"firstSeenAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
namestringrequiredkindstringrequiredcustomMetricIdstringrequiredcategorystringrequiredgoalbooleanrequiredeventCountintegerrequiredlastEventAtstringrequiredfirstSeenAtstringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/metrics/{name} Metric detail with observed property keys and types (name, custom metric id or mapped:<role>)
Parameters
namestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/metrics/{name}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"name": "string",
"kind": "event",
"customMetricId": "string",
"category": "standard",
"goal": true,
"eventCount": 0,
"lastEventAt": "2024-01-01T00:00:00Z",
"firstSeenAt": "2024-01-01T00:00:00Z",
"schema": {},
"properties": [
{
"key": "string",
"types": [
"string"
],
"seen": 0
}
]
}Schema
namestringrequiredkindstringrequiredcustomMetricIdstringrequiredcategorystringrequiredgoalbooleanrequiredeventCountintegerrequiredlastEventAtstringrequiredfirstSeenAtstringrequiredschemaobjectrequiredpropertiesobject[]requiredShow child parameters
keystringrequiredtypesstring[]requiredseenintegerrequiredUpdated