Prerequisites
- n8n instance (cloud or self-hosted)
- DNCScrub account with API access
- Your DNCScrub API key (loginId)
Setting Up Authentication
DNCScrub APIs authenticate via theloginId header.
Create a Credential
- In n8n, go to Credentials → Add Credential
- Select Header Auth
- Configure:
- Name:
DNCScrub API - Header Name:
loginId - Header Value: Your DNCScrub API key
- Name:

Common Workflow Patterns
Pre-Dial Compliance Check
Scrub phone numbers before dialing to ensure compliance using Salesforce trigger. n8x can work with multiple tools but this example uses Salesforce.Add Trigger
Use a Salesforce Trigger for new leads, a Webhook for real-time requests, or a Schedule Trigger for batch processing.
Add HTTP Request Node
Configure the DNCScrub Scrub API call:
- Method:
GET - URL:
https://www.dncscrub.com/app/main/rpc/scrub - Authentication: Select your
DNCScrub APIcredential - Query Parameters:
phoneList:{{ $json.phone }}projId: YOUR_PROJECT_ID (optional)
Add IF Node
Check the scrub result:
- Condition:
{{ $json.results[0].Status }}equalsOk - True branch: Proceed to dial
- False branch: Skip or update CRM
Add Contact to Internal DNC
Add to Internal DNC list. when requested by the contact.Workflow JSON
You can import this workflow directly into n8n:Click to view workflow JSON
Click to view workflow JSON
Error Handling
Add error handling to your workflows:- Set “Continue On Fail” on HTTP Request nodes to handle API errors gracefully
- Add an IF node after each API call to check for success
- Log failures to a Google Sheet, database, or notification system
Batch Processing Tips
When processing large lists:- Use the Loop Over Items node to process records individually
- Add a Wait node (100-200ms) between requests to avoid rate limits
- Use POST endpoints for batches over 10 numbers