curl --request GET \
--url http://localhost:3333/v1/devices \
--header 'X-API-Key: <api-key>'{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T00:00:00Z",
"software": [
{}
],
"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,
"pack_stats": [
{}
],
"team_name": "Engineering",
"users": [
{}
],
"gigs_disk_space_available": 250.5,
"percent_disk_space_available": 75.2,
"gigs_total_disk_space": 500,
"disk_encryption_enabled": true,
"issues": {},
"mdm": {},
"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"
}
],
"labels": [
{}
],
"packs": [
{}
],
"batteries": [
{}
],
"end_users": [
{}
],
"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": 25,
"authType": "api-key",
"authenticatedUser": {
"id": "usr_abc123def456",
"email": "user@company.com"
}
}Returns all devices for the authenticated organization from FleetDM. Supports both API key authentication (X-API-Key header) and session authentication (cookies + X-Organization-Id header).
curl --request GET \
--url http://localhost:3333/v1/devices \
--header 'X-API-Key: <api-key>'{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T00:00:00Z",
"software": [
{}
],
"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,
"pack_stats": [
{}
],
"team_name": "Engineering",
"users": [
{}
],
"gigs_disk_space_available": 250.5,
"percent_disk_space_available": 75.2,
"gigs_total_disk_space": 500,
"disk_encryption_enabled": true,
"issues": {},
"mdm": {},
"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"
}
],
"labels": [
{}
],
"packs": [
{}
],
"batteries": [
{}
],
"end_users": [
{}
],
"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": 25,
"authType": "api-key",
"authenticatedUser": {
"id": "usr_abc123def456",
"email": "user@company.com"
}
}API key for authentication
Organization ID (required for session auth, optional for API key auth)
Devices retrieved successfully
Show child attributes
Device created at
"2024-01-01T00:00:00Z"
Device updated at
"2024-01-15T00:00:00Z"
Software list
Software updated at
"2024-01-10T00:00:00Z"
Device 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"
Last seen time
"2024-01-15T12:00:00Z"
Refetch requested
false
Hostname
"johns-macbook"
Device 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 in seconds
86400
Memory in bytes
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
Pack stats
Team name
"Engineering"
Users
Disk space available in GB
250.5
Percent disk space available
75.2
Total disk space in GB
500
Disk encryption enabled
true
Issues
MDM info
Refetch critical queries until
"2024-01-20T00:00:00Z"
Last restarted at
"2024-01-10T08:00:00Z"
Policies
Show child attributes
Policy ID
123
Policy name
"Password Policy"
Policy query
"SELECT * FROM users;"
Whether policy is critical
true
Policy description
"Ensures strong passwords"
Author ID
456
Author name
"John Doe"
Author email
"john@example.com"
Team ID
789
Policy resolution
"Update password settings"
Platform
"darwin"
Calendar events enabled
false
Created at
"2024-01-01T00:00:00Z"
Updated at
"2024-01-15T00:00:00Z"
Policy response
"compliant"
Labels
Packs
Batteries
End users
Last MDM enrolled at
"2024-01-01T00:00:00Z"
Last MDM checked in at
"2024-01-15T12:00:00Z"
Device status
"online"
Display text
"Johns MacBook Pro"
Display name
"John's MacBook Pro"
Total number of devices
25
How the request was authenticated
api-key, session Was this page helpful?