phones array.body phonesarrayrequiredbody numberstringrequired| Field | Type | Description |
input | object | Echo of the original input object |
matched | boolean | true |
do_not_call | boolean | Whether the requested phone number is on the Do Not Call registry. Omitted if exact phone metadata is unavailable. |
phone_type | string | wireless, landline, voip, or unknown. Omitted if exact phone metadata is unavailable. |
| Field | Type | Description |
input | object | Echo of the original input object |
matched | boolean | false |
match_failure | object | Structured failure with code and reason |
| Field | Type | Description |
submitted | integer | Number of phones in the request array |
matched | integer | Number of phones that matched a person record |
unmatched | integer | Number of phones that did not match |
12345678910curl -X POST "https://api.v2.dealmachine.com/v1/phones/dnc" \ -H "Authorization: Bearer dm_sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "phones": [ { "number": "5125551234" }, { "number": "3145559876" }, { "number": "(212) 555-0100" } ] }'
12345678910111213141516171819202122232425262728293031323334{ "data": [ { "input": { "number": "5125551234" }, "matched": true, "do_not_call": false, "phone_type": "wireless" }, { "input": { "number": "3145559876" }, "matched": true, "do_not_call": true, "phone_type": "landline" }, { "input": { "number": "(212) 555-0100" }, "matched": false, "match_failure": { "code": "no_match", "reason": "No person found with this phone number" } } ], "totals": { "submitted": 3, "matched": 2, "unmatched": 1 }, "credits": { "used": 2, "people": 2, "deduplicated": 0 } }