workflows

Embed
Preview of the card
<a href="https://hermetica.15.204.158.166.sslip.io/docs/ref-workflows"><img src="https://hermetica.15.204.158.166.sslip.io/docs/_api/public/orgs/5fcd8b3c-a27c-4688-972f-de710125592f/spaces/caf5dc05-15f7-4e0c-bdb8-ab29ede6211e/pages/27c987c7-83e1-4744-b0ce-54b59acc4526/social-card.svg?v=3e7ae33eec8b" alt="workflows" width="600" height="315"></a>
GEThttps://hermetica.15.204.158.166.sslip.io/v1/workflows

Parameters

limitintegerquery
= 50
cursorstringquery
statusstringquery
draft | live | paused | archived
folderstringquery
modestringquery
journey | sequence
qstringquery
archivedstringquery
true | false
triggerTypestringquery
createdFromstringquery
createdTostringquery
updatedFromstringquery
updatedTostringquery
startedFromstringquery
startedTostringquery
sortstringquery
created | -created | updated | -updated | name | -name

Code samples

cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/workflows" \
  -H "Authorization: Bearer $SSLIP_API_KEY"
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"
    }
  ],
  "nextCursor": "string"
}
Schema
itemsobject[]required
Show child parameters
idstringrequired
namestringrequired
purposestringrequired
marketing | prospecting | transactional | operational
modestringrequired
journey | sequence
statusstringrequired
draft | live | paused | archived
publishedVersionIdstringrequired
folderstringrequired
tagsstring[]required
colorstring
draftGraphrequired
draftTriggersrequired
draftSettingsrequired
abobject
Show child parameters
variantsobject[]required
startedAtstringrequired
createdAtstringrequired
updatedAtstringrequired
nextCursorstringrequired
4XX Default Response
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}
Schema
errorobjectrequired
Show child parameters
codestringrequired
messagestringrequired
detailsobject
5XX Default Response

Same as 4XX · GET /v1/workflows

POSThttps://hermetica.15.204.158.166.sslip.io/v1/workflows

Request body

application/json
namestringrequired
purposestring
marketing | prospecting | transactional | operational = marketing
modestring
journey | sequence = journey
folderstring
tagsstring[]
= []
definitionobject
Show child parameters
graphobject
Show child parameters
startstring
= null
nodesobject[]required
edgesobject[]required
triggersobject[]
settingsobject
Show child parameters
purposestring
marketing | prospecting | transactional | operational = marketing
modestring
journey | sequence = journey
filterCheckstring
entry | every_step | before_send = before_send
filterFailActionstring
exit | skip = exit
profileFilterobject
goalobject
quietHoursstring | object
= inherit
quietHoursActionstring
wait | skip | exit
sendWindowobject
smartSendingobject
enrollmentCapobject
activeWindowobject
failureAlertobject
timezoneSourcestring
profile | workspace = profile
timezonestring
= UTC
exitOnobject
sequenceobject
{
  "name": "string",
  "purpose": "marketing",
  "mode": "journey",
  "folder": "string",
  "tags": [],
  "definition": {
    "graph": {
      "start": null,
      "nodes": [
        {
          "id": "string",
          "type": "send_email",
          "config": {
            "templateId": "string",
            "versionId": "string",
            "route": {
              "connectionId": "string",
              "poolId": "string",
              "routePolicyId": "string"
            },
            "topicId": "string",
            "replyToStep": "string",
            "onBlocked": "continue",
            "skipOnFailure": true,
            "skipIfMessagedWithinHours": 0,
            "filter": {
              "type": "group",
              "op": "and",
              "negate": true,
              "children": [
                {}
              ]
            },
            "retries": 0,
            "senderIdentityId": "string",
            "replyTo": "string",
            "oneClickUnsubscribe": true
          },
          "position": {
            "x": 0,
            "y": 0
          },
          "name": "string"
        }
      ],
      "edges": [
        {
          "id": "string",
          "source": "string",
          "sourceHandle": "string",
          "target": "string"
        }
      ]
    },
    "triggers": [
      {
        "type": "profile_created",
        "reentry": {
          "mode": "after_completion"
        }
      }
    ],
    "settings": {
      "purpose": "marketing",
      "mode": "journey",
      "filterCheck": "before_send",
      "filterFailAction": "exit",
      "profileFilter": {
        "type": "group",
        "op": "and",
        "negate": true,
        "children": [
          {}
        ]
      },
      "goal": {
        "kind": "event",
        "eventName": "string",
        "filter": {},
        "definition": {
          "type": "group",
          "op": "and",
          "negate": true,
          "children": [
            {}
          ]
        },
        "windowDays": 30,
        "onReach": "exit"
      },
      "quietHours": "inherit",
      "quietHoursAction": "wait",
      "sendWindow": {
        "startMin": 0,
        "endMin": 0,
        "weekdays": [
          0
        ]
      },
      "smartSending": {
        "skipIfMessagedWithinHours": 0,
        "frequencyCap": {
          "maxSends": 0,
          "windowHours": 0
        }
      },
      "enrollmentCap": {
        "maxTotal": 0,
        "maxConcurrent": 0
      },
      "activeWindow": {
        "from": "2024-01-01T00:00:00Z",
        "until": "2024-01-01T00:00:00Z"
      },
      "failureAlert": {
        "userIds": [],
        "emails": []
      },
      "timezoneSource": "profile",
      "timezone": "UTC",
      "exitOn": {
        "type": "group",
        "op": "and",
        "negate": true,
        "children": [
          {}
        ]
      },
      "sequence": {
        "steps": [],
        "schedule": {
          "weekdays": [
            1,
            2,
            3,
            4,
            5
          ],
          "startMin": 540,
          "endMin": 1020,
          "timezoneSource": "prospect",
          "timezone": "UTC"
        },
        "mailbox": {
          "sticky": true,
          "onUnavailable": "pause"
        },
        "dailyNewLimit": 0,
        "followUpPercent": 0,
        "plainTextOnly": true,
        "trackOpens": true,
        "unsubscribeText": "string",
        "spintaxMode": "random",
        "variables": {},
        "blocklist": {
          "emails": [
            "string"
          ],
          "domains": []
        },
        "reviewBeforeSend": true,
        "reviewEachMessage": true,
        "stop": {
          "onReply": "human",
          "onAutoReply": "continue",
          "onOoo": "pause_until_return",
          "onCompanyReply": "none"
        },
        "onCategory": [
          {
            "category": "positive",
            "sequenceId": "string",
            "stopCurrent": true
          }
        ],
        "ownerUserId": "string",
        "scheduleId": "string",
        "dedupe": {
          "crossSequence": "skip",
          "contactedWithinDays": 0,
          "domain": false
        },
        "startAt": "2024-01-01T00:00:00Z",
        "minGapMinutes": 0,
        "senderOverrides": {},
        "abm": {
          "maxPerAccount": 5,
          "onAccountReply": "stop"
        }
      }
    }
  }
}

Code samples

cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/workflows" \
  -H "Authorization: Bearer $SSLIP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","purpose":"marketing","mode":"journey","folder":"string","tags":[],"definition":{"graph":{"start":null,"nodes":[{"id":"string","type":"send_email","config":{"templateId":"string","versionId":"string","route":{"connectionId":"string","poolId":"string","routePolicyId":"string"},"topicId":"string","replyToStep":"string","onBlocked":"continue","skipOnFailure":true,"skipIfMessagedWithinHours":0,"filter":{"type":"group","op":"and","negate":true,"children":[{}]},"retries":0,"senderIdentityId":"string","replyTo":"string","oneClickUnsubscribe":true},"position":{"x":0,"y":0},"name":"string"}],"edges":[{"id":"string","source":"string","sourceHandle":"string","target":"string"}]},"triggers":[{"type":"profile_created","reentry":{"mode":"after_completion"}}],"settings":{"purpose":"marketing","mode":"journey","filterCheck":"before_send","filterFailAction":"exit","profileFilter":{"type":"group","op":"and","negate":true,"children":[{}]},"goal":{"kind":"event","eventName":"string","filter":{},"definition":{"type":"group","op":"and","negate":true,"children":[{}]},"windowDays":30,"onReach":"exit"},"quietHours":"inherit","quietHoursAction":"wait","sendWindow":{"startMin":0,"endMin":0,"weekdays":[0]},"smartSending":{"skipIfMessagedWithinHours":0,"frequencyCap":{"maxSends":0,"windowHours":0}},"enrollmentCap":{"maxTotal":0,"maxConcurrent":0},"activeWindow":{"from":"2024-01-01T00:00:00Z","until":"2024-01-01T00:00:00Z"},"failureAlert":{"userIds":[],"emails":[]},"timezoneSource":"profile","timezone":"UTC","exitOn":{"type":"group","op":"and","negate":true,"children":[{}]},"sequence":{"steps":[],"schedule":{"weekdays":[1,2,3,4,5],"startMin":540,"endMin":1020,"timezoneSource":"prospect","timezone":"UTC"},"mailbox":{"sticky":true,"onUnavailable":"pause"},"dailyNewLimit":0,"followUpPercent":0,"plainTextOnly":true,"trackOpens":true,"unsubscribeText":"string","spintaxMode":"random","variables":{},"blocklist":{"emails":["string"],"domains":[]},"reviewBeforeSend":true,"reviewEachMessage":true,"stop":{"onReply":"human","onAutoReply":"continue","onOoo":"pause_until_return","onCompanyReply":"none"},"onCategory":[{"category":"positive","sequenceId":"string","stopCurrent":true}],"ownerUserId":"string","scheduleId":"string","dedupe":{"crossSequence":"skip","contactedWithinDays":0,"domain":false},"startAt":"2024-01-01T00:00:00Z","minGapMinutes":0,"senderOverrides":{},"abm":{"maxPerAccount":5,"onAccountReply":"stop"}}}}}'
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"
}
Schema
idstringrequired
namestringrequired
purposestringrequired
marketing | prospecting | transactional | operational
modestringrequired
journey | sequence
statusstringrequired
draft | live | paused | archived
publishedVersionIdstringrequired
folderstringrequired
tagsstring[]required
colorstring
draftGraphrequired
draftTriggersrequired
draftSettingsrequired
abobject
Show child parameters
variantsobject[]required
Show child parameters
versionIdstringrequired
weightintegerrequired
startedAtstringrequired
createdAtstringrequired
updatedAtstringrequired
4XX Default Response

Same as 4XX · GET /v1/workflows

5XX Default Response

Same as 4XX · GET /v1/workflows

GEThttps://hermetica.15.204.158.166.sslip.io/v1/workflows/templates

Parameters

limitintegerquery
Page size; omitted returns the whole list
cursorstringquery
Opaque: the nextCursor of the previous page

Code samples

cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/workflows/templates" \
  -H "Authorization: Bearer $SSLIP_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Default Response
Example
{
  "items": [
    {
      "key": "string",
      "name": "string",
      "description": "string",
      "definition": {
        "graph": {
          "start": null,
          "nodes": [
            {
              "id": "string",
              "type": "send_email",
              "config": {
                "templateId": "string",
                "versionId": "string",
                "route": {},
                "topicId": "string",
                "replyToStep": "string",
                "onBlocked": "continue",
                "skipOnFailure": true,
                "skipIfMessagedWithinHours": 0,
                "filter": {},
                "retries": 0,
                "senderIdentityId": "string",
                "replyTo": "string",
                "oneClickUnsubscribe": true
              },
              "position": {
                "x": 0,
                "y": 0
              },
              "name": "string"
            }
          ],
          "edges": [
            {
              "id": "string",
              "source": "string",
              "sourceHandle": "string",
              "target": "string"
            }
          ]
        },
        "triggers": [
          {
            "type": "profile_created",
            "reentry": {
              "mode": "after_completion"
            }
          }
        ],
        "settings": {
          "purpose": "marketing",
          "mode": "journey",
          "filterCheck": "before_send",
          "filterFailAction": "exit",
          "profileFilter": {
            "type": "group",
            "op": "and",
            "negate": true,
            "children": [
              {}
            ]
          },
          "goal": {
            "kind": "event",
            "eventName": "string",
            "filter": {},
            "definition": {
              "type": "group",
              "op": "and",
              "negate": true,
              "children": [
                {}
              ]
            },
            "windowDays": 30,
            "onReach": "exit"
          },
          "quietHours": "inherit",
          "quietHoursAction": "wait",
          "sendWindow": {
            "startMin": 0,
            "endMin": 0,
            "weekdays": [
              0
            ]
          },
          "smartSending": {
            "skipIfMessagedWithinHours": 0,
            "frequencyCap": {
              "maxSends": 0,
              "windowHours": 0
            }
          },
          "enrollmentCap": {
            "maxTotal": 0,
            "maxConcurrent": 0
          },
          "activeWindow": {
            "from": "2024-01-01T00:00:00Z",
            "until": "2024-01-01T00:00:00Z"
          },
          "failureAlert": {
            "userIds": [],
            "emails": []
          },
          "timezoneSource": "profile",
          "timezone": "UTC",
          "exitOn": {
            "type": "group",
            "op": "and",
            "negate": true,
            "children": [
              {}
            ]
          },
          "sequence": {
            "steps": [],
            "schedule": {
              "weekdays": [
                1,
                2,
                3,
                4,
                5
              ],
              "startMin": 540,
              "endMin": 1020,
              "timezoneSource": "prospect",
              "timezone": "UTC"
            },
            "mailbox": {
              "sticky": true,
              "onUnavailable": "pause"
            },
            "dailyNewLimit": 0,
            "followUpPercent": 0,
            "plainTextOnly": true,
            "trackOpens": true,
            "unsubscribeText": "string",
            "spintaxMode": "random",
            "variables": {},
            "blocklist": {
              "emails": [],
              "domains": []
            },
            "reviewBeforeSend": true,
            "reviewEachMessage": true,
            "stop": {
              "onReply": "human",
              "onAutoReply": "continue",
              "onOoo": "pause_until_return",
              "onCompanyReply": "none"
            },
            "onCategory": [
              {
                "category": "positive",
                "sequenceId": "string",
                "stopCurrent": true
              }
            ],
            "ownerUserId": "string",
            "scheduleId": "string",
            "dedupe": {
              "crossSequence": "skip",
              "contactedWithinDays": 0,
              "domain": false
            },
            "startAt": "2024-01-01T00:00:00Z",
            "minGapMinutes": 0,
            "senderOverrides": {},
            "abm": {
              "maxPerAccount": 5,
              "onAccountReply": "stop"
            }
          }
        }
      },
      "category": "lifecycle",
      "requires": [],
      "missing": []
    }
  ],
  "nextCursor": "string"
}
Schema
itemsobject[]required
Show child parameters
keystringrequired
namestringrequired
descriptionstringrequired
definitionobjectrequired
Show child parameters
graphobjectrequired
triggersobject[]required
settingsobjectrequired
categorystringrequired
= lifecycle
requiresstring[]required
= []
missingstring[]required
= []
nextCursorstringrequired
4XX Default Response

Same as 4XX · GET /v1/workflows

5XX Default Response

Same as 4XX · GET /v1/workflows

Updated