workflows
PUT
https://hermeticor.com /v1/workflows/{id}/nodes/{nodeId}/content Edit a step of a running journey; apply=waiting also moves people already inside onto the new version
Parameters
idstringpathrequirednodeIdstringpathrequiredRequest body
application/json
configobjectrequiredapplystring{
"config": {},
"apply": "new_entrants"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/workflows/{id}/nodes/{nodeId}/content" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"config":{},"apply":"new_entrants"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"version": {
"id": "string",
"workflowId": "string",
"n": 0,
"graph": {},
"trigger": {},
"settings": {},
"checksum": "string",
"publishedAt": "2024-01-01T00:00:00Z",
"publishedBy": "string"
},
"moved": 0,
"exited": 0
}Schema
versionobjectrequiredShow child parameters
idstringrequiredworkflowIdstringrequirednintegerrequiredgraphrequiredtriggerrequiredsettingsrequiredchecksumstringrequiredpublishedAtstringrequiredpublishedBystringrequiredmovedintegerrequiredexitedintegerrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/workflows/{id}/draft/nodes Add one action to the draft; it must pass the same graph validation as a full save
Parameters
idstringpathrequiredRequest body
application/json
idstringtypestringrequiredconfigobjectpositionobjectShow child parameters
xnumberrequiredynumberrequiredafterobjectShow child parameters
nodeIdstringrequiredhandlestring{
"id": "string",
"type": "string",
"config": {},
"position": {
"x": 0,
"y": 0
},
"after": {
"nodeId": "string",
"handle": "next"
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/{id}/draft/nodes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"string","type":"string","config":{},"position":{"x":0,"y":0},"after":{"nodeId":"string","handle":"next"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"nodeId": "string",
"validation": {
"ok": true,
"errors": [
{
"severity": "error",
"code": "string",
"message": "string",
"nodeId": "string",
"fix": "string"
}
],
"warnings": [
{
"severity": "error",
"code": "string",
"message": "string",
"nodeId": "string",
"fix": "string"
}
]
}
}Schema
nodeIdstringrequiredvalidationobjectrequiredShow child parameters
okbooleanrequirederrorsErrorsItem[]requiredShow child parameters
severitystringrequiredcodestringrequiredmessagestringrequirednodeIdstringfixstringwarningsErrorsItem[]requiredShow child parameters
severitystringrequiredcodestringrequiredmessagestringrequirednodeIdstringfixstringDELETE
https://hermeticor.com /v1/workflows/{id}/draft/nodes/{nodeId} Remove one action from the draft (single-exit steps are bypassed)
Parameters
idstringpathrequirednodeIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/workflows/{id}/draft/nodes/{nodeId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true,
"errors": [
{
"severity": "error",
"code": "string",
"message": "string",
"nodeId": "string",
"fix": "string"
}
],
"warnings": [
{
"severity": "error",
"code": "string",
"message": "string",
"nodeId": "string",
"fix": "string"
}
]
}Schema
okbooleanrequirederrorsErrorsItem[]requiredShow child parameters
severitystringrequiredcodestringrequiredmessagestringrequirednodeIdstringfixstringwarningsErrorsItem[]requiredShow child parameters
severitystringrequiredcodestringrequiredmessagestringrequirednodeIdstringfixstringPOST
https://hermeticor.com /v1/workflows/{id}/nodes/{nodeId}/pause Parameters
idstringpathrequirednodeIdstringpathrequiredRequest body
application/json
modestring{
"mode": "wait"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/{id}/nodes/{nodeId}/pause" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mode":"wait"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"nodeId": "string",
"type": "string",
"config": {},
"status": "live",
"pauseMode": "wait",
"entered": 0,
"completed": 0,
"errors": 0,
"queued": 0
}Schema
nodeIdstringrequiredtypestringrequiredconfigrequiredstatusstringrequiredpauseModestringrequiredenteredintegerrequiredcompletedintegerrequirederrorsintegerrequiredqueuedintegerrequiredPOST
https://hermeticor.com /v1/workflows/{id}/nodes/{nodeId}/resume Parameters
idstringpathrequirednodeIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/{id}/nodes/{nodeId}/resume" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/workflows/{id}/nodes/{nodeId}/queue Subscribers currently at this step
Parameters
limitintegerquerycursorstringqueryprofileIdstringqueryemailstringqueryidstringpathrequirednodeIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workflows/{id}/nodes/{nodeId}/queue" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"stuckReason": "schedule_lost",
"profileEmail": "string",
"lastError": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem63[]requiredShow child parameters
idstringrequiredstuckReasonstringprofileEmailstringlastErrorstringnextCursorstringrequiredPOST
https://hermeticor.com /v1/workflows/{id}/nodes/{nodeId}/queue Enrol subscribers and land them on this step
Parameters
idstringpathrequirednodeIdstringpathrequiredRequest body
application/json
profileIdsstring[]required{
"profileIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workflows/{id}/nodes/{nodeId}/queue" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"enrolled": 0,
"skipped": [
{
"profileId": "string",
"reason": "string"
}
],
"queued": true
}Schema
enrolledintegerrequiredskippedSkippedItem[]requiredShow child parameters
profileIdstringrequiredreasonstringrequiredqueuedbooleanUpdated