Skip to main content
POST
Scrub a batch of phone numbers

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

Opaque key for one logical request, scoped to the authenticated API key. Use a random UUID and never include phone numbers or other PII. Exact retries are protected for at least 7 days; only a keyed, non-reversible fingerprint is retained.

Required string length: 1 - 255
Pattern: ^[\x21-\x7e]+$

Body

application/json
country
enum<string>
required

Registry country.

Available options:
mx,
ar
phones
string[]
required

Phone numbers in international or supported local formats.

Required array length: 1 - 500000 elements
Maximum string length: 64

Response

Scrub completed

prohibited_numbers_to_call
string[]
required

Original, structurally valid inputs found in the selected DNC registry. Do not call these numbers. Original formatting and relative order within this category are preserved; duplicates are returned once per occurrence.

safe_numbers_to_call
string[]
required

Original, structurally valid inputs not found in the selected DNC registry at the time of the check. Here, safe is limited to this DNC registry result; it does not confirm that a number is active or reachable, prove consent, or grant universal legal permission to call. Original formatting and relative order within this category are preserved; duplicates are returned once per occurrence.

invalid_numbers
object[]
required

Inputs that could not be normalized for the selected country, in their original relative order.

summary
object
required

Aggregate counts for this request. summary.total_checked equals summary.prohibited_numbers + summary.safe_numbers + summary.invalid_numbers.