---
search:
  tags:
    - system
    - GET
seo:
  description: >-
    The console serves the clock of its host to the servers over the… Reference
    for the GET /api/v1/console/time-sync endpoint in the TimescaleDB Enterprise
    API.
  noindex: true
sidebar:
  label: Get the time sync state
  badge: GET
title: Get the time sync state
type: openapi-operation
---
The console serves the clock of its host to the servers over the mesh (UDP port 123), and chrony on each server prefers it. The console reads the clock and the chrony source of each server every 5 minutes. The response has the readings of the last measurement.

`GET /api/v1/console/time-sync`

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "clock": {
    "checked_at": "2019-08-24T14:15:22Z",
    "limit_seconds": 0,
    "offset_seconds": 0.1,
    "reference": "string",
    "source": "ntp",
    "status": "ok"
  },
  "ntp_service": {
    "address": "string",
    "clock_synced": true,
    "error": "string",
    "last_error": "string",
    "last_error_at": "2019-08-24T14:15:22Z",
    "serving": true
  },
  "servers": [
    {
      "console_selected": true,
      "demo": true,
      "error": "string",
      "offset_seconds": 0.1,
      "selected_source": "string",
      "server_id": "string",
      "server_name": "string"
    }
  ]
}
```
