GET /api/v1/uptime

Get detailed uptime information for application, process, and system

Responses

  • 200 application/json

    Detailed uptime information

    Hide response attributes Show response attributes object
    • application object Required

      Application uptime information

      Hide application attributes Show application attributes object
      • uptime_ms number Required

        Application uptime in milliseconds

      • uptime_human string Required

        Human readable application uptime

      • started_at string Required

        Timestamp when application started

    • process object Required

      Process uptime information

      Hide process attributes Show process attributes object
      • uptime_seconds number Required

        Process uptime in seconds

      • uptime_human string Required

        Human readable process uptime

      • pid number Required

        Process ID

    • system object Required

      System uptime information

      Hide system attributes Show system attributes object
      • uptime_seconds number Required

        System uptime in seconds

      • uptime_human string Required

        Human readable system uptime

      • loadavg array[number] Required

        System load average

      • totalmem string Required

        Total system memory

      • freemem string Required

        Free system memory

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
GET /api/v1/uptime
curl \
 --request GET 'http://localhost:3500/api/v1/uptime'
Response examples (200)
{
  "application": {
    "uptime_ms": 172800000,
    "uptime_human": "2d 0h 0m 0s",
    "started_at": "2025-09-23T10:30:00.000Z"
  },
  "process": {
    "uptime_seconds": 172800,
    "uptime_human": "2d 0h 0m 0s",
    "pid": 12345
  },
  "system": {
    "uptime_seconds": 259200,
    "uptime_human": "3d 0h 0m 0s",
    "loadavg": [
      0.5,
      0.6,
      0.7
    ],
    "totalmem": "8.00 GB",
    "freemem": "2.45 GB"
  }
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}