Upcoming commands queue for specific device

Returns the queue of upcoming commands for the specified device. See Using Global API Keys for more information on permission and scope requirements.

SecuritybearerAuth
Request
path Parameters
id
required
integer <int64>

Server ID for the specified device.

query Parameters
o
required
integer <int64>

Organization ID for the specified device.

Responses
200

Successful Operation

4XX

Invalid Request

default

Invalid Request

get/servers/{id}/queues
Request samples
$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
Response samples
application/json
[
  • {
    • "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"
    }
]