<?php
$pass = json_encode('9717289206');
$ch2 = curl_init();
curl_setopt($ch2, CURLOPT_URL, "https://cleaner.dadata.ru/api/v1/clean/passport");
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch2, CURLOPT_POST, true);
curl_setopt($ch2, CURLOPT_HTTPHEADER, array(
"Content-Type: application/json",
"Accept: application/json",
"Authorization: Token 891ec670aa98e64f209e4da17e776d6f637c5b61",
"X-Secret: ea652fbdcc2734a10d5a67dc0d81eecf5f0b34ae"
));
// curl_setopt($ch2, CURLOPT_RESOLVE, array('dadata.ru:443:185.65.148.8'));
curl_setopt($ch2, CURLOPT_POSTFIELDS, "[ " . $pass . " ]");
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
$response2 = curl_exec($ch2);
curl_close($ch2);
$passport = json_decode($response2, true);
var_dump($passport);