Get devices by member ID
const url = 'https://api.varman.io/v1/devices/member/mem_abc123def456';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.varman.io/v1/devices/member/mem_abc123def456 \ --header 'X-API-Key: <X-API-Key>'Returns all devices assigned to a specific member within the authenticated organization. Devices are fetched from FleetDM using the member’s dedicated fleetDmLabelId.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
mem_abc123def456Member ID to get devices for
Responses
Section titled “Responses”Member devices retrieved successfully
object
Array of devices assigned to the member
object
Device created at
Device updated at
Software list
object
Software updated at
Detail updated at
Label updated at
Policy updated at
Last enrolled at
Last seen time
Refetch requested
Hostname
Device UUID
Platform
Osquery version
Orbit version
Fleet desktop version
Scripts enabled
OS version
Build
Platform like
Code name
Uptime in seconds
Memory in bytes
CPU type
CPU subtype
CPU brand
CPU physical cores
CPU logical cores
Hardware vendor
Hardware model
Hardware version
Hardware serial
Computer name
Public IP
Primary IP
Primary MAC
Distributed interval
Config TLS refresh
Logger TLS period
Team ID
object
Pack stats
object
Team name
object
Users
object
Disk space available in GB
Percent disk space available
Total disk space in GB
Disk encryption enabled
Issues
object
MDM info
object
Refetch critical queries until
object
Last restarted at
Policies
object
Policy ID
Policy name
Policy query
Whether policy is critical
Policy description
Author ID
Author name
Author email
Team ID
object
Policy resolution
Platform
Calendar events enabled
Created at
Updated at
Policy response
Labels
object
Packs
object
Batteries
object
End users
object
Last MDM enrolled at
Last MDM checked in at
Device status
Display text
Display name
Total number of devices for this member
Member information
object
Member ID
User ID associated with member
Member role
Member department
object
Whether member is active
FleetDM label ID for member devices
object
Organization ID this member belongs to
When the member was created
How the request was authenticated
Authenticated user information (present for session auth)
object
Example
{ "data": [ { "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-15T00:00:00Z", "software_updated_at": "2024-01-10T00:00:00Z", "id": 123, "detail_updated_at": "2024-01-10T00:00:00Z", "label_updated_at": "2024-01-10T00:00:00Z", "policy_updated_at": "2024-01-10T00:00:00Z", "last_enrolled_at": "2024-01-01T00:00:00Z", "seen_time": "2024-01-15T12:00:00Z", "refetch_requested": false, "hostname": "johns-macbook", "uuid": "abc123def456", "platform": "darwin", "osquery_version": "5.10.2", "orbit_version": "1.19.0", "fleet_desktop_version": "1.19.0", "scripts_enabled": true, "os_version": "macOS 14.2.1", "build": "23C71", "platform_like": "darwin", "code_name": "sonoma", "uptime": 86400, "memory": 17179869184, "cpu_type": "x86_64", "cpu_subtype": "x86_64h", "cpu_brand": "Intel(R) Core(TM) i7-9750H", "cpu_physical_cores": 6, "cpu_logical_cores": 12, "hardware_vendor": "Apple Inc.", "hardware_model": "MacBookPro16,1", "hardware_version": "1.0", "hardware_serial": "C02XW0AAJGH6", "computer_name": "John's MacBook Pro", "public_ip": "203.0.113.1", "primary_ip": "192.168.1.100", "primary_mac": "00:11:22:33:44:55", "distributed_interval": 10, "config_tls_refresh": 3600, "logger_tls_period": 300, "team_id": 1, "team_name": "Engineering", "gigs_disk_space_available": 250.5, "percent_disk_space_available": 75.2, "gigs_total_disk_space": 500, "disk_encryption_enabled": true, "refetch_critical_queries_until": "2024-01-20T00:00:00Z", "last_restarted_at": "2024-01-10T08:00:00Z", "policies": [ { "id": 123, "name": "Password Policy", "query": "SELECT * FROM users;", "critical": true, "description": "Ensures strong passwords", "author_id": 456, "author_name": "John Doe", "author_email": "john@example.com", "team_id": 789, "resolution": "Update password settings", "platform": "darwin", "calendar_events_enabled": false, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-15T00:00:00Z", "response": "compliant" } ], "last_mdm_enrolled_at": "2024-01-01T00:00:00Z", "last_mdm_checked_in_at": "2024-01-15T12:00:00Z", "status": "online", "display_text": "Johns MacBook Pro", "display_name": "John's MacBook Pro" } ], "count": 3, "member": { "id": "mem_abc123def456", "userId": "usr_abc123def456", "role": "admin", "department": "engineering", "isActive": true, "fleetDmLabelId": 123, "organizationId": "org_abc123def456", "createdAt": "2024-01-01T00:00:00Z" }, "authType": "api-key", "authenticatedUser": { "id": "usr_abc123def456", "email": "user@company.com" }}Unauthorized - Invalid authentication or insufficient permissions
object
Example
{ "message": "Unauthorized"}Organization or member not found
object
Example
{ "message": "Member with ID mem_abc123def456 not found in organization org_abc123def456"}Internal server error - FleetDM integration issue