---
search:
  tags:
    - servers
    - GET
seo:
  description: >-
    Returns the software of a server (OS, versions, components) and… Reference
    for the GET /api/v1/servers/{id}/facts endpoint in the TimescaleDB
    Enterprise API.
sidebar:
  label: Get server software and state
  badge: GET
title: Get server software and state
type: openapi-operation
---
Returns the software of a server (OS, versions, components) and its state (uptime, reboot, restart, Patroni member, mesh path, license). A value that the console does not know is not in the response. It runs no command on the server.

`GET /api/v1/servers/{id}/facts`

**Responses**

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

Response example, 200:

```json
{
  "arch": "string",
  "components": [
    {
      "name": "string",
      "version": "string"
    }
  ],
  "mesh_path": "direct",
  "os_id": "string",
  "os_version": "string",
  "pack_release": "string",
  "patroni": {
    "lag_seconds": 0.1,
    "role": "leader",
    "state": "running",
    "timeline": 0,
    "timeline_matches_leader": true
  },
  "postgresql_version": "string",
  "reboot_required": true,
  "reboot_required_since": "2019-08-24T14:15:22Z",
  "restart_pending": true,
  "service": {
    "id": "string",
    "license_caps": "applied",
    "license_guard": "loaded",
    "name": "string",
    "versions_differ": [
      "postgresql"
    ]
  },
  "timescaledb_version": "string",
  "uptime_seconds": 0.1
}
```
