Tag opt-outs in QuickMail and delete the lead
When a reply is labeled Do not contact, Master Inbox sets a DNC tag on the QuickMail lead and then deletes the lead from QuickMail, so it cannot be re-sequenced by accident.


Why teams run it
Opted-out prospects stay out of QuickMail for good.
Set it up in Master Inbox
- In Master Inbox, open Settings, then Workflows, and click Add a workflow.
- Name it Tag opt-outs in QuickMail and delete the lead.
- Set the trigger to Add Label and choose Do not contact.
- Add the action Set a QuickMail tag: DNC.
- Add the action Delete the QuickMail lead: Remove the lead from QuickMail.
- Save the workflow and switch it to Active.
Before you start, connect QuickMail under Settings, Integrations.
Or create it with the API
Everything in the workflow builder is also in the Master Inbox API. This request creates the same workflow. Replace the example ids with your own label, list and campaign ids from GET /workflows/filter-fields.
curl -X POST https://api.masterinbox.com/api/api-webhook/v1/api/workflows/create-workflow \
-H "Authorization: Bearer $MASTER_INBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Tag opt-outs in QuickMail and delete the lead",
"trigger_type": "add_label",
"trigger_config": {
"label_ids": [
176479
]
},
"action_configs": [
{
"action_type": "set_tag_quickmail"
},
{
"action_type": "delete_lead_quickmail",
"campaign_ids": [
"camp-1"
]
}
]
}'Full reference: workflow API guide and API docs.
Or ask Claude, ChatGPT or Grok to build it
Our workflow guide is written for AI agents to read. Give your assistant your API key and this prompt:
Read https://app.masterinbox.com/public-workflow-api.md and use my Master Inbox API key to create this workflow: "Tag opt-outs in QuickMail and delete the lead". First call GET /workflows/filter-fields and look up my label, list and channel ids, then create the workflow and tell me what you set up.Questions
Is deleting the lead reversible?
No. Keep only the tag action if you want to keep the record in QuickMail.
Does the thread stay in Master Inbox?
Yes. The conversation and its labels stay.
Can I build this workflow through the API?
Yes. Send the create-workflow request shown on this page with your Master Inbox API key. The API checks the payload first and lists every problem by field if anything is off.
Which plan includes this?
This workflow works on the Team plan. Every plan has unlimited users and starts with a free 7-day POC.
Learn more
Related workflows
Sync opt-outs to Instantly, Smartlead, EmailBison, PlusVibe and HeyReach
When a reply is labeled Unsubscribe or Do not contact, one workflow removes the lead from Instantly, Smartlead, EmailBison, PlusVibe and HeyReach, so...




HygieneUnsubscribe opt-outs in Smartlead automatically
When a reply is labeled Unsubscribe, Master Inbox unsubscribes the lead in Smartlead and adds a Do not contact label, so no further Smartlead step...
HygieneRemove not interested replies from EmailBison and block them
When a reply is labeled Not interested, Master Inbox removes the lead from the EmailBison campaign. Mark the label as DNC in the EmailBison...
HygieneRemove the Not interested label when a lead turns positive
When a thread is labeled Interested, Master Inbox removes Not interested, so a lead who changed their mind is not filtered out of reports and...
Run this on your own inboxes
Free 7-day POC. Unlimited users on every plan.
