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

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

Response

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

Result Codes

Examples

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