Skip to main content

List Endpoints

Route

/v2/endpoints/list

Description

List and filter Cyberhaven endpoints (sensors) with advanced filtering and pagination capabilities. Endpoints are devices with installed Cyberhaven sensors that monitor data movement activities.

Method

POST

Inputs

ParameterTypeRequiredDescription
page_requestPageRequestNoPagination and sorting configuration
page_request.sizeintegerNoNumber of results per page (max 1000)
page_request.idstringNoPage token for next page
page_request.sort_bystringNoSort field and direction (e.g., "hostname desc")
filterEndpointFilterNoFiltering criteria
filter.idsarray[string]NoList of specific endpoint IDs
filter.hostnamesarray[string]NoList of hostnames to filter by
filter.statusesarray[string]NoEndpoint statuses (active, inactive)
filter.groupsarray[string]NoDeployment group names
filter.osesarray[string]NoOperating systems (windows, macos, linux)
filter.os_versionsarray[string]NoOperating system versions
filter.endpoint_versionsarray[string]NoSensor software versions

Request Example

{
"page_request": {
"size": 100,
"sort_by": "hostname asc"
},
"filter": {
"statuses": ["active"],
"oses": ["windows", "macos"],
"groups": ["Production"]
}
}

Output

FieldTypeDescription
typestringAlways "endpoints"
sizeintegerNumber of endpoints returned
resourcesarray[Endpoint]Array of endpoint objects
page_responsePageResponsePagination information
page_response.next_idstringToken for next page
page_response.totalintegerTotal number of matched endpoints
errorsarray[Error]Any errors encountered

Endpoint Object Structure

FieldTypeDescription
idstringUnique endpoint identifier
hostnamestringDevice hostname
machine_serial_numberstringDevice serial number
deployment_groupstringDeployment group name
osstringOperating system (windows, macos, linux)
os_versionstringOperating system version
sensor_versionstringSensor software version
last_active_usernamestringLast active user on device
last_activestringLast activity timestamp (ISO 8601)
statusstringEndpoint status (active, inactive)

Rate Limit

  • 60 requests per minute per API key
  • 5 concurrent requests per endpoint

Example Response

{
"type": "endpoints",
"size": 2,
"resources": [
{
"id": "endpoint-123",
"hostname": "LAPTOP-001",
"machine_serial_number": "ABC123456",
"deployment_group": "Production",
"os": "windows",
"os_version": "Windows 11",
"sensor_version": "24.03.90.366",
"last_active_username": "john.doe",
"last_active": "2024-01-15T10:30:00Z",
"status": "active"
}
],
"page_response": {
"next_id": "eyJwYWdlX2lkIjoiMiJ9",
"total": 150
},
"errors": []
}