---
title: Reiniciar Conexões
slug: reiniciar-conexoes
docTags: 
createdAt: 2024-02-10T21:06:15.331Z
---

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{BACKEND_URL}/api/whatsapp-restart/',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer tokenmeu'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

```json
{
    "message": "Whatsapp Remote Restart"
}
```

Caso queira usar o serviço gratuito da www\.cron-job.org, siga o guia conforme representado em [CRON-JOB.ORG](docId\:TdCBfjTmiXlg-ORyrZy0P)
