Returns the queue of upcoming commands for the specified device. See Using Global API Keys for more information on permission and scope requirements.
Successful Operation
Invalid Request
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/servers/123456/queues?o=0000" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
[- {
- "id": 33325425014,
- "server_id": 3519797,
- "command_id": null,
- "organization_id": 106068,
- "args": "",
- "reboot": 0,
- "exec_time": "2025-06-05T17:56:06+0000",
- "response": null,
- "response_time": null,
- "policy_id": 0,
- "agent_command_type": 0,
- "command_type_name": "GetOS"
}
]