API Reference
GETmonitor_service_details/{dropletId}

Get Service Details

Get Service Details is a GET request to https://api.sharkcluster.com/monitor_service_details/{dropletId} in the Server Management section of the SharkCluster API. Scans the server for the operational status of critical services (e.g., Nginx, MySQL, Redis) and provides security alerts such as recent failed SSH login attempts. It takes 1 parameter, 1 required (dropletId).

Request URL

GEThttps://api.sharkcluster.com/monitor_service_details/{dropletId}

How do you call Get Service Details?

  1. 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
  2. 2Send a GET request to https://api.sharkcluster.com/monitor_service_details/{dropletId}, replacing {dropletId} in the path with your own value.

Request parameters

ParameterTypeDescription
dropletId
Required
stringThe Internal Server ID or Provider Instance ID.
Authorization
Required
headerBearer token for authentication (e.g., Bearer eyJ...).

What does Get Service Details return?

A successful call returns a JSON object with the fields last_boot, failed_logins, cron_failures, service_status and alerts.

Request sample

const axios = require('axios');

const dropletId = "0000-1111-2222";

axios.get(`https://api.sharkcluster.com/monitor_service_details/${dropletId}`, {
  headers: { 'Authorization': 'Bearer YOUR_TOKEN' }
})
.then(res => console.log("Real-time Stats:", res.data.data))
.catch(err => console.error(err));

Response

{
    "last_boot": "2026-05-05 08:53:08",
    "failed_logins": 82,
    "cron_failures": 0,
    "service_status": "All services running",
    "alerts": [
        {
            "label": "Failed Logins",
            "value": "82 attempts"
        }
    ]
}

Stuck on an integration?

Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.

Contact us