GET /dashboard/service/{id}/dedicated/activity-logs

Get activity logs

Returns a list of activity logs for the dedicated server showing recent actions performed.

Parameters

NameTypeInDescription
id*
integerpathThe service ID of the dedicated server

Response

200
403
404
successboolean
dataobject
logsarray

Request

curl -X GET "https://api.royalehosting.net/dashboard/service/{id}/dedicated/activity-logs" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID"

Response

{
  "success": true,
  "data": {
    "logs": [
      {
        "id": 1,
        "service_id": 123,
        "action": "reboot",
        "details": "User rebooted server srv-001",
        "created_at": "2024-01-15T10:30:00Z",
        "user": {
          "id": 456,
          "first_name": "John",
          "last_name": "Doe",
          "email": "john.doe@example.com"
        }
      }
    ]
  }
}