List workflow pieces
GET /workflow_pieces
/workflow_piecesLists the pieces a workflow of the new automation engine can be published with: the triggers that start it and the steps, waits and containers it can run, in catalog order, each with the CRM plan it needs.
When to use: To know what a catalogId in the definition of get_workflow is, which pieces exist, or why a workflow with a piece needs CRM Pro.
When not to use: It is the same list for the whole account and says nothing about one workflow: read the workflow with get_workflow. A piece missing here is not offered by the editor and a workflow that has it cannot be published.
Plans: required_plan is the plan the piece needs by itself. Some options of a piece can need more (for example, assigning by rotation needs CRM Pro); the app tells it when publishing.
Permissions: Requires the automations.read capability.
Value for the X-Auth-Token header parameter.
In: header
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/workflow_pieces" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "catalog_id": "string", "kind": "trigger", "required_plan": "crm_essentials" }]