> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mycentralino.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ping

> Verifica la disponibilità del servizio API

# GET /v1/ping

Endpoint pubblico per verificare che il servizio API sia attivo. Non richiede autenticazione.

## Richiesta

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.mycentralino.com/v1/ping
  ```

  ```php PHP theme={null}
  <?php
  $response = file_get_contents('https://api.mycentralino.com/v1/ping');
  $data = json_decode($response, true);
  print_r($data);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get('https://api.mycentralino.com/v1/ping')
  print(response.json())
  ```
</CodeGroup>

## Risposta

```json theme={null}
{
  "status": "ok",
  "timestamp": "2024-03-15 14:32:10"
}
```

## Campi Risposta

| Campo       | Tipo   | Descrizione                         |
| ----------- | ------ | ----------------------------------- |
| `status`    | string | Sempre `ok` se il servizio è attivo |
| `timestamp` | string | Data e ora del server (Y-m-d H:i:s) |
