metrics
DELETE
https://hermeticor.com /v1/mapped-metrics/{role} Reset a role to its default event
Parameters
rolestringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/mapped-metrics/{role}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/metrics/ingest A custom sender reports an outcome for a delivery id (delivered, opened, clicked, converted, bounced, spammed, dropped, deferred, failed); it feeds the same status, suppression and reports as provider events
Request body
application/json
deliveryIdstringrequiredmetricstringrequiredbounceTypestringreasonstringeventIdstringtimestampstringhrefstringuserAgentstring{
"deliveryId": "string",
"metric": "delivered",
"bounceType": "hard",
"reason": "string",
"eventId": "string",
"timestamp": "2024-01-01T00:00:00Z",
"href": "string",
"userAgent": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/metrics/ingest" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"deliveryId":"string","metric":"delivered","bounceType":"hard","reason":"string","eventId":"string","timestamp":"2024-01-01T00:00:00Z","href":"string","userAgent":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/metrics/{name}/properties Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pagenamestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/metrics/{name}/properties" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"metric": "string",
"property": "string",
"type": "string",
"values": [
{
"value": "string",
"count": 0
}
]
}
],
"nextCursor": "string"
}Schema
itemsItemsItem148[]requiredShow child parameters
idstringrequiredmetricstringrequiredpropertystringrequiredtypestringrequiredvaluesValuesItem[]Show child parameters
valuestringrequiredcountintegerrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/metric-properties/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/metric-properties/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"metric": "string",
"property": "string",
"type": "string",
"values": [
{
"value": "string",
"count": 0
}
]
}Schema
idstringrequiredmetricstringrequiredpropertystringrequiredtypestringrequiredvaluesValuesItem[]Show child parameters
valuestringrequiredcountintegerrequiredUpdated