Sent

Setting the number's status as Sent

Request object

username (required) string
password (required) string
id (required) string

{
    "auth": {
        "username": "demo",
        "password": "demo"
    },
    "id": ""
}

Code example

$data = array(
    "auth" => array(
        "username" => "demo",
        "password" => "demo"
    ),
    "id" => "000000"
);

$payload = json_encode($data);

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => 'https://smsverification.xyz/api/v2/disposable/sent',
    CURLOPT_CUSTOMREQUEST => 'PUT',
    CURLOPT_POSTFIELDS => $payload,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => array(
        'Content-Type: application/json',
        'Content-Length: ' . strlen($payload)
    )
]);
$response = curl_exec($curl);
curl_close($curl);

echo $response; // json

Success Response

{
  "status": "success",
  "data": {
    "old_status": "waiting",
    "new_status": "sent",
    "id": "000000"
  }
}