List systems

GET /systems

Get list of systems visible to the user based on hierarchical organization permissions.

Query parameters

  • page integer

    Page number

    Minimum value is 1. Default value is 1.

  • page_size integer

    Items per page

    Minimum value is 1, maximum value is 100. Default value is 20.

  • sort_by string

    Field to sort systems by

    Values are name, type, status, fqdn, version, created_at, updated_at, last_seen, or creator_name.

  • sort_direction string

    Sort direction

    Values are asc or desc. Default value is asc.

Responses

  • 200 application/json

    Systems retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attributes Show data attributes object
      • systems array[object]
        Hide systems attributes Show systems attributes object
        • id string

          System ID

        • name string

          System name

        • type string

          System type

        • status string

          System operational status

          Values are online, offline, or maintenance.

        • fqdn string

          Fully qualified domain name

        • ipv4_address string

          IPv4 address

        • ipv6_address string

          IPv6 address

        • version string

          System version

        • last_seen string(date-time)

          Last seen timestamp from inventory

        • custom_data object

          Custom system data

          Additional properties are allowed.

        • secret_hint string

          Last 4 characters of system secret for identification

        • created_at string(date-time)

          System creation timestamp

        • updated_at string(date-time)

          System last update timestamp

        • created_by object
          Hide created_by attributes Show created_by attributes object
          • user_id string

            User ID who created the system

          • user_name string

            Username who created the system

          • organization_id string

            Organization ID of the creator

          • organization_name string

            Organization name of the creator

        • heartbeat_status string

          System heartbeat status (alive=<15min, dead=>15min, zombie=never communicated)

          Values are alive, dead, or zombie.

        • last_heartbeat string(date-time)

          Last heartbeat timestamp

        • heartbeat_minutes integer

          Minutes since last heartbeat

      • pagination object
        Hide pagination attributes Show pagination attributes object
        • page integer

          Current page number

          Minimum value is 1.

        • page_size integer

          Number of items per page

          Minimum value is 1, maximum value is 100.

        • total_count integer

          Total number of items

          Minimum value is 0.

        • total_pages integer

          Total number of pages

          Minimum value is 0.

        • has_next boolean

          Whether there is a next page

        • has_prev boolean

          Whether there is a previous page

        • next_page integer | null

          Next page number if available

        • prev_page integer | null

          Previous page number if available

        • sort_by string | null

          Field used for sorting

        • sort_direction string | null

          Sort direction

          Values are asc or desc.

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /systems
curl \
 --request GET 'https://collect.your-domain.com/api/systems' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "systems retrieved successfully",
  "data": {
    "systems": [
      {
        "id": "4cf3053f-d0d5-4b10-b752-ff8f7b63c2f7",
        "name": "Production Server 01",
        "type": "ns8",
        "status": "online",
        "fqdn": "prod-web-01.example.com",
        "ipv4_address": "192.168.1.100",
        "ipv6_address": "2001:db8::1",
        "version": "2.1.4",
        "last_seen": "2025-07-10T10:30:00Z",
        "custom_data": {
          "tier": "web",
          "datacenter": "EU-West-1",
          "environment": "production"
        },
        "secret_hint": "a7b9",
        "created_at": "2025-07-01T09:00:00Z",
        "updated_at": "2025-07-10T10:30:00Z",
        "created_by": {
          "user_id": "usr_123456789",
          "user_name": "admin",
          "organization_id": "org_123456789",
          "organization_name": "Nethesis"
        },
        "heartbeat_status": "alive",
        "last_heartbeat": "2025-07-21T10:25:00Z",
        "heartbeat_minutes": 5
      }
    ],
    "pagination": {
      "page": 1,
      "page_size": 20,
      "total_count": 156,
      "total_pages": 8,
      "has_next": true,
      "has_prev": false,
      "next_page": 2,
      "prev_page": 42,
      "sort_by": "name",
      "sort_direction": "asc"
    }
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}