Skip to main content
The scrub_phone_numbers tool checks phone numbers against federal, state, and your internal DNC lists, returning compliance status and phone metadata.

Parameters

phoneNumbers
string[]
required
Phone numbers in 10-digit North American format. Supports single or batch requests.
loginId
string
API key. Only required if not provided via the x-dncscrub-api-key HTTP header.
campaignId
number
Campaign ID for usage tracking and campaign-specific settings.
projId
string
Project ID for usage tracking and project-specific settings.

Response

success
boolean
Whether the API call succeeded.
results
array
Array of scrub results, one per phone number.
errorCode
string
Machine-readable error code (when failed).
errorMessage
string
Human-readable error description (when failed).

Result Codes

CodeMeaningAction
CCleanOK to call (subject to time-of-day rules)
DDo Not CallDo not contact this number

Examples

{
  "phoneNumbers": ["5039367187", "7075276405"]
}

Usage Notes

  • Batch multiple numbers in a single request for better performance
  • Results include rich metadata (carrier, timezone, line type) useful for routing decisions
  • The isWireless flag is critical for TCPA compliance—wireless numbers have additional consent requirements
  • Use campaignId or projId to apply campaign-specific DNC settings