workflows
GET
https://hermeticor.com /v1/workflows/{id}/goals Flow goal, goal steps and the conversion count
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workflows/{id}/goals" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"flowGoal": {
"kind": "event",
"eventName": "string",
"filter": {},
"definition": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
},
"windowDays": 30,
"onReach": "exit"
},
"nodes": [
{
"nodeId": "string",
"name": "string",
"skipAhead": true,
"match": {
"kind": "event",
"eventName": "string",
"filter": {},
"definition": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
}
}
}
],
"conversions": {
"enrolled": 0,
"converted": 0,
"rate": 0
}
}Schema
flowGoalobjectrequiredShow child parameters
kindstringrequiredeventNamestringfilterobjectdefinitionobjectShow child parameters
typestringrequiredopstringrequirednegatebooleanchildrenschema0[]requiredwindowDaysintegerrequiredonReachstringrequirednodesNodesItem3[]requiredShow child parameters
nodeIdstringrequirednamestringrequiredskipAheadbooleanrequiredmatchobjectrequiredShow child parameters
kindstringrequiredeventNamestringfilterobjectdefinitionobjectconversionsobjectrequiredShow child parameters
enrolledintegerrequiredconvertedintegerrequiredratenumberrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/workflows/{id}/goals/flow Set the draft flow goal (applies on next publish)
Parameters
idstringpathrequiredRequest body
application/json
kindstringrequiredeventNamestringfilterobjectdefinitionobjectShow child parameters
typestringrequiredopstringrequirednegatebooleanchildrenschema0[]requiredwindowDaysintegeronReachstring{
"kind": "event",
"eventName": "string",
"filter": {},
"definition": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
},
"windowDays": 30,
"onReach": "exit"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/workflows/{id}/goals/flow" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"event","eventName":"string","filter":{},"definition":{"type":"group","op":"and","negate":true,"children":[{}]},"windowDays":30,"onReach":"exit"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/workflows/{id}/goals/flow Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/workflows/{id}/goals/flow" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/workflows/{id}/goals/{nodeId} Edit a goal step of the draft
Parameters
idstringpathrequirednodeIdstringpathrequiredRequest body
application/json
namestringskipAheadbooleanmatchobjectShow child parameters
kindstringrequiredeventNamestringfilterobjectdefinitionobjectShow child parameters
typestringrequiredopstringrequirednegatebooleanchildrenschema0[]required{
"name": "string",
"skipAhead": true,
"match": {
"kind": "event",
"eventName": "string",
"filter": {},
"definition": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
}
}
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/workflows/{id}/goals/{nodeId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","skipAhead":true,"match":{"kind":"event","eventName":"string","filter":{},"definition":{"type":"group","op":"and","negate":true,"children":[{}]}}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/workflows/{id}/enrollments/{enrollmentId}/pause Hold one enrollment where it is
Parameters
idstringpathrequiredenrollmentIdstringpathrequiredRequest body
application/json
reasonstring{
"reason": "manual"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/{id}/enrollments/{enrollmentId}/pause" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"reason":"manual"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /v1/workflows/{id}/enrollments/{enrollmentId}/resume Release a held enrollment
Parameters
idstringpathrequiredenrollmentIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/{id}/enrollments/{enrollmentId}/resume" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/workflows/{id}/step-report Per-step sends, opens, clicks and attributed revenue for one journey over a date range
Parameters
fromstringqueryrequiredtostringqueryrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workflows/{id}/step-report?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"workflowId": "string",
"from": "string",
"to": "string",
"steps": [
{
"nodeId": "string",
"sent": 0,
"delivered": 0,
"opened": 0,
"clicked": 0,
"revenue": [
{
"currency": "string",
"conversions": 0,
"revenueMinor": 0
}
]
}
],
"revenue": [
{
"currency": "string",
"conversions": 0,
"revenueMinor": 0
}
]
}Schema
workflowIdstringrequiredfromstringrequiredtostringrequiredstepsobject[]requiredShow child parameters
nodeIdstringrequiredsentintegerrequireddeliveredintegerrequiredopenedintegerrequiredclickedintegerrequiredrevenueRevenueItem[]requiredShow child parameters
currencystringrequiredconversionsintegerrequiredrevenueMinornumberrequiredrevenueRevenueItem[]requiredShow child parameters
currencystringrequiredconversionsintegerrequiredrevenueMinornumberrequiredUpdated