MailMoo
EndpointsCampaigns

Preview removing a condition

What removing a condition step would delete, without changing anything: the steps on its Yes and No paths, how many leads have reached the condition or each path, and which keepBranch choices campaigns.removeSequenceStep would accept now. A step a lead has reached cannot be deleted, so a path with leads on it can only be kept.

GET/campaigns.previewConditionRemoval

Authorization

bearerAuth
AuthorizationBearer <token>

Enter your MailMoo API key (format: sk_live_...)

In: header

Query Parameters

campaignId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
Formatuuid
stepId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/campaigns.previewConditionRemoval?campaignId=497f6eca-6276-4993-bfeb-53cbbbba6f08&stepId=497f6eca-6276-4993-bfeb-53cbbbba6f08&input=%7B%22campaignId%22%3A%2213f8bf6d-dc27-4a04-bffe-6e5b13c19ddf%22%2C%22stepId%22%3A%2250e29fb7-490e-4a88-b2f4-2fde4d70423d%22%7D"
{  "stepId": "50e29fb7-490e-4a88-b2f4-2fde4d70423d",  "condition": "string",  "yes": {    "stepCount": 0,    "steps": [      "string"    ]  },  "no": {    "stepCount": 0,    "steps": [      "string"    ]  },  "leadsReached": {    "condition": 0,    "yes": 0,    "no": 0  },  "allowed": [    "yes"  ]}