workflows
POST
https://hermeticor.com /v1/workflows/templates/{key} Parameters
keystringpathrequiredRequest body
application/json
namestring{
"name": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/templates/{key}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"purpose": "marketing",
"mode": "journey",
"status": "draft",
"publishedVersionId": "string",
"folder": "string",
"tags": [
"string"
],
"color": "string",
"draftGraph": {},
"draftTriggers": {},
"draftSettings": {},
"ab": {
"variants": [
{
"versionId": "string",
"weight": 0
}
],
"startedAt": "2024-01-01T00:00:00Z"
},
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"install": {
"templatesCreated": 0,
"missingEvents": [
"string"
],
"todo": [
"string"
]
}
}Schema
idstringrequirednamestringrequiredpurposestringrequiredmodestringrequiredstatusstringrequiredpublishedVersionIdstringrequiredfolderstringrequiredtagsstring[]requiredcolorstringdraftGraphrequireddraftTriggersrequireddraftSettingsrequiredabobjectShow child parameters
variantsVariantsItem3[]requiredShow child parameters
versionIdstringrequiredweightintegerrequiredstartedAtstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredinstallobjectrequiredShow child parameters
templatesCreatedintegerrequiredmissingEventsstring[]requiredtodostring[]required4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/workflows/batch/read Read several workflows by id in one call
Request body
application/json
idsstring[]required{
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/batch/read" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"purpose": "marketing",
"mode": "journey",
"status": "draft",
"publishedVersionId": "string",
"folder": "string",
"tags": [
"string"
],
"color": "string",
"draftGraph": {},
"draftTriggers": {},
"draftSettings": {},
"ab": {
"variants": [
{
"versionId": "string",
"weight": 0
}
],
"startedAt": "2024-01-01T00:00:00Z"
},
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
]
}Schema
itemsItemsItem62[]requiredShow child parameters
idstringrequirednamestringrequiredpurposestringrequiredmodestringrequiredstatusstringrequiredpublishedVersionIdstringrequiredfolderstringrequiredtagsstring[]requiredcolorstringdraftGraphrequireddraftTriggersrequireddraftSettingsrequiredabobjectShow child parameters
variantsVariantsItem3[]requiredstartedAtstringrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/workflows/emails Every send step across live and paused journeys, with stats
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workflows/emails" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"workflowId": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
workflowIdstringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/profiles/{id}/workflows Which journeys is this contact in (or has been in)
Parameters
limitintegerquerycursorstringquerystatestringquerylivestringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/profiles/{id}/workflows" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"enrollmentId": "string",
"workflowId": "string",
"workflowName": "string",
"workflowStatus": "draft",
"state": "active",
"currentNodeId": "string",
"enteredAt": "2024-01-01T00:00:00Z",
"exitedAt": "2024-01-01T00:00:00Z",
"exitedReason": "string",
"goalReachedAt": "2024-01-01T00:00:00Z",
"triggerType": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
enrollmentIdstringrequiredworkflowIdstringrequiredworkflowNamestringrequiredworkflowStatusstringrequiredstatestringrequiredcurrentNodeIdstringrequiredenteredAtstringrequiredexitedAtstringrequiredexitedReasonstringrequiredgoalReachedAtstringrequiredtriggerTypestringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/workflows/{id}/enrollments/{enrollmentId}/steps The step trail of one enrollment
Parameters
limitintegerquerycursorstringqueryidstringpathrequiredenrollmentIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workflows/{id}/enrollments/{enrollmentId}/steps" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"nodeId": "string",
"stepSeq": 0,
"kind": "string",
"handle": "string",
"note": "string",
"at": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequirednodeIdstringrequiredstepSeqintegerrequiredkindstringrequiredhandlestringrequirednotestringrequiredatstringrequirednextCursorstringrequiredUpdated