Tips on using API with Automox
Recently active
We would like to fetch software and hardware details of our endpoints and send to Symphony AI ITSM tool. can I get single API for getting both details ?
Ever wish your tools would just talk to each other without you stitching everything together manually?Join us next week on Thursday, March 26th at 10 AM CT for a practical intro to webhooks—one of the simplest ways to connect Automox with the rest of your stack and cut down on repetitive tasks.We’ll cover what webhooks are, how they work, and how you can start using them to trigger actions and streamline your workflows.👉 Save your spot: https://university.automox.com/best-practices-webinar-registrationHope to see you there!
Hello all, As we look to improve our data insights, we were wondering if our ticketing system (Freshdesk) could ingest data from Automox to help us keep track of assets. Upon searching I found these two integrations available for Automox. Does anyone have any experience with either of them, and are they useful?
Hello,For some reason our Axonius integration with Automox (via API) has stopped working and I can’t seem to find the API key for it anywhere (but have noticed a Global level “New” Keys section just appeared). How can I create an API key specific to a read only user that we have?Thanks,Mark
The overall structure of zones vs. groups is creating a lot of redundant issues. As a service provider, we have many clients, which means a lot of consistent policies and users being made. Having clients in zones, we can assign their users the ability to view their console. But then we have to duplicate the same policies, worklets, and users from one zone to another. This is really redundant and the overall structure of zones vs. groups just makes API calls for all clients a nightmare. I see that you can customize the Automox agent installer to specify a group. Managing by the zone (top-level) and groups (clients) makes everything easier to manage. Only thing missing is limiting a user to view only specified group(s). Is there a possibility of this being added in the future? It is just very odd that there is limited to no features when administrating on a global level.
Hello all,I’ve run into a couple of issues I’m looking for solutions for with Automox’s implementation of SAML, one of which is a security concern. Scenario 1: You have an Entra joined Windows device that you log into with an Entra ID account (joel@contoso.com). Once logged in, you open up a fresh copy of Microsoft Edge with no stored credentials, cookies, or cache. Finally, attempt to log into Automox. Expectation: Edge will use your device credential by default to SSO authenticate you into Automox, if that is rejected, you will be prompted to create a browser token via Microsoft to authenticate to Automox. Reality: The device credential created by Edge is rejected by Automox, no attempt is made by Automox to request your computer create a browser token, and there is no way to prevent Edge from using your device credential in the browser.Result: You simply cannot use Edge to log into Automox in this circumstance unless you use an incognito window.Scenario 2: You have a regular accoun
I’ve just started looking at the API documentation, and it looks like if I don’t know the Device ID but only the name, the only way I can query the API is to return all devices and then filter my results.The only filter option I can find in the documentation for the servers ‘is_compatible’.Is getting all servers and then filtering the results the only way?Thanks!
This script will dump all available critical updates for all of the endpoints in an organization into a .csv file along with the number of days the update has been available and if the update requires a reboot. You’ll need to set the following before running the script: $apiKey = 'YOUR_API_KEY' - in your console, go to Settings->API and select the API key. Note that the API key is per admin user, so you and another admin in your console will have different API keys. $orgID = 'YOUR_ORG_ID' - put in your Org ID which can be found by looking at the URL on the dashboard and selecting the value after the “?o=”: [https://console.automox.com/dashboard?o=1234]. In this example the Org ID is 1234. You can also modify $filepath if you want to change the file name or save it in a different location. Keep in mind the script will overwrite a previously generated file if it exists. $apiKey = 'YOUR_API_KEY' $orgID = 'YOUR_ORG_ID' $filepath = 'C:\Temp\CritUpdates.csv' Set-Content $filepath -Value
With the new (and awesome btw) Status page roll out, is there a way to api pull from that page? Just looking for base info... up,degraded,down and the like! I looked a bit to see if I could find that but coming up empty lol!
Reached out to support and they said they didnt have a way to bulk remove duplicate devices . They have this link but its a little lacking. https://developer.automox.com/openapi/axconsole/operation/deleteDevice/ With Chat GPT and a little trouble shooting, i came up with this powershell script that worked for me. you will need to do an export of all devices, find the duplicates and get a list of device id’s and put them in column A with deviceid as the header, save as *.csv. Enjoy! #Add api key and orgid!$apiKey = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'$orgId = xxxxxx$headers = @{ "Authorization" = "Bearer $apiKey" "Content-Type" = "application/json" }#Edit csv path and log path!# Paths$csvPath = "C:\Path\*.csv"$logPath = "C:\Path\*.txt"# Clear previous logif (Test-Path $logPath) { Remove-Item $logPath}New-Item -Path $logPath -ItemType File -Force | Out-Null# Read device IDs$deviceIds = Import-Csv -Path $csvPathforeach ($row in $deviceIds) { $deviceId = $row.Dev
Hello Automox Community1Has anyone been able to deploy the agent using Azure Policy? I understand going the gold image route is the typical way. But I’d like to have other options of automating the Agent deployment if it’s missing on an Azure server VM.
# Set mandatory variables$apiKey = 'Your_API_Key'$orgID = 'Your_OrgID'# Set optional$groupID = ''# Where to save the file$currentDate = (Get-Date).ToString("yyyyMMdd")$output = "C:\Temp\NeedsAttention$currentDate.txt"################################################## $headers = @{ "Authorization" = "Bearer $apiKey" }If ($groupID){ $url = "https://console.automox.com/api/reports/needs-attention?o=$orgID&groupId=$groupID"}else{ $url = "https://console.automox.com/api/reports/needs-attention?o=$orgID"}$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content$data = $response | ConvertFrom-Json# Extract the devices information$devices = $data.nonCompliant.devices# Create a table and format the output$table = @()foreach ($device in $devices) { $table += [PSCustomObject]@{ ID = $device.id Name = $device.name CustomName = $device.customName Created = (Get-Dat
Hello, I am trying to follow the Automox/PowerBi guide here: https://help.automox.com/hc/en-us/articles/8180172309780-Custom-API-Dashboard-through-PowerBI#h_01HAT7WZ8E95S0YA6E8FCYVY5B but running into an issue on step #6 (Double click to open Automox_Reports_Example_v1_wAPI.pbit from C:\temp\.). When I do this, PowerBI states “query is blocked by the following errors: health, The column 'name' of the table wasn't found.” Due to this, all the PowerBI report pages are blank as the rest of the queries don’t load. When opening up health.csv, I see that it is empty. Any thoughts?
I am looking for a PS script to get a list of all software installed in our environment and determine which ones Automox can patch and which ones cannot be patched by Automox. Thanks
You’ll need to set the following before running the script: $apiKey = 'YOUR_API_KEY' - in your console, go to Settings->API and select the API key. Note that the API key is per admin user, so you and another admin in your console will have different API keys. $orgID = 'YOUR_ORG_ID' - put in your Org ID which can be found by looking at the URL on the dashboard and selecting the value after the “?o=”: [https://console.automox.com/dashboard?o=1234]. In this example the Org ID is 1234. $cve = 'DESIRED_CVE' - Set the CVE You can also modify $filepath if you want to change the file name or save it in a different location. Keep in mind the script will overwrite a previously generated file if it exists. # Set these ----------------- $apiKey = 'YOUR_API_KEY' $orgID = 'YOUR_ORG_ID' $cve = 'CVE-2020-0689' $filepath = 'C:\Temp\cve.csv' # --------------------------- $page = 0 $limit = 500 $servers = @() $apiInstance = 'https://console.automox.com/api/' $apiTable = 'servers' Set-Content $fil
This was originally written for a customer that wanted to see if every system in their environment had Sophos Antivirus installed or not - and what version if they did. $apiKey = 'YOUR_API_KEY' - in your console, go to Settings->API and select the API key. Note that the API key is per admin user, so you and another admin in your console will have different API keys. $orgID = 'YOUR_ORG_ID' - put in your Org ID which can be found by looking at the URL on the dashboard and selecting the value after the “?o=”: [https://console.automox.com/dashboard?o=1234]. In this example the Org ID is 1234. $appInstalled = 'APPLICATION' - put the name of the application as it is listed in the software section of a device’s page that has it installed. $filepath - The save location and file name for the .csv file generated. Here’s a sample output checking for Microsoft Edge Chromium: $apiKey = 'YOUR_API_KEY' $orgID = 'YOUR_ORG_ID' $appInstalled = 'Microsoft Edge' $filepath = 'C:\Temp\AppInstalled.
This API script will give you a hardware inventory in addition to some basic OS info and agent version. You’ll need to set the following before running the script: $apiKey = 'YOUR_API_KEY' - in your console, go to Settings->API and select the API key. Note that the API key is per admin user, so you and another admin in your console will have different API keys. $orgID = 'YOUR_ORG_ID' - put in your Org ID which can be found by looking at the URL on the dashboard and selecting the value after the “?o=”: [https://console.automox.com/dashboard?o=1234]. In this example, the Org ID is 1234. You can also modify $filepath if you want to change the file name or save it in a different location. Keep in mind the script will overwrite a previously generated file if it exists. # Update these variables with your API Key, orgID & save directory/filename # This script expects the $expDir path to already exist and will overwrite an existing file $apiKey = 'YOUR_API_KEY' $orgID = 'YOUR_ORG_ID'
We already use the Automox API quite a bit, but it would be nice to have an Automox provider for Terraform. Any chance of that happening anytime soon?
Using the standard API call for software packages installed will just give you software installed on a single device referenced by the server ID#. This script will give you software packages installed on every device in an organization referenced by the computer names. By altering the script you can add additional fields - but make sure the Set-Content line reflects all of the fields you add to the Select-Object part of the last line of the script. You’ll also want the Set-Content line to have the fields in the same order as the Select-Object. Available fields can be found here from the Response tab:https://developer.automox.com/openapi/axconsole/operation/getDevicePackages/ View the script on GitHub You can also modify it to do things like not show Windows updates & hotfixes by altering the Where-Object part of the last line of the script. For example:Where-Object {$.installed -EQ $true -and $.repo -notlike “Windows*”} You’ll need to set the following before running the script:
This script will let you run an arbitrary number of required software policies or worklets against a list of devices exported from the Devices page, in essence giving you a workaround to implement a dynamic group functionality. Go to your devices page and filter for the devices you’d like to run the policies against. Click the select all box to select all of those devices. Click Export which will save a csv file that contains one line per device, named automox-devices.csv. Replace YOUR_API_Key with a valid API key from your console. Replace YOUR_ORG_ID with the orgID for your console (you can get this from the browser URL for your console: look for the o=1234 portion and that 1234 is your orgID). Replace PolicyID1,PolicyID2,PolicyID3,PolicyID4,PolicyID5,etc… with a list of the policies you want to run, each one separated by a comma. To find the PolicyIDs, edit the policy you wish to include and look for the pid=123456 in the URL. That 123456 is the Policy ID that you’ll put in the l
A common request we get is to remove old devices from the console, especially ones that might have been re-imaged. Currently you can do this on the devices page by sorting by Last Disconnected Date and selecting devices to remove. However, this can become unwieldy if you have pages and pages of devices to remove. This script automates the removal using an API call to check the last disconnected date and remove any devices older than the number of days you specify in the code. There are four areas in the code you’ll need to update to get the script to function: $orgID = 'YOUR_ORG_ID' - put your Org ID, which can be found by looking at the URL of your console and selecting the value after the “?o=”: https://console.automox.com/dashboard?o=999999. In this example URL the Org ID is the 999999 portion. $apiKey = 'YOUR_API_KEY' - in your console, go to Settings->API and select the API key. Note that the API key is per admin user, so you and another admin in your console will have di
Based on a query by @d.mccleskey that support would have to run for customers, I’ve adapted it so that customers can run it for themselves. This query is useful for customers to review their Automox patching configurations and review agent communication/health.$apiKey = 'YOUR_API_KEY' - in your console, go to Settings->API and select the API key. Note that the API key is per admin user, so you and another admin in your console will have different API keys.$orgID = 'YOUR_ORG_ID' - put in your Org ID which can be found by looking at the URL on the dashboard and selecting the value after the “?o=”: [https://console.automox.com/dashboard?o=1234]. In this example, the Org ID is 1234.# Updated May 1, 2025 to account for Fast by Default# https://developer.automox.com/developer-portal/servers-fast-by-default# Update these variables with your API Key, orgID & save directory/filename # This script expects the $expDir path to already exist and will overwrite an existing file$apiKey = 'YOUR
Hi Eveyone, I’m researching whether what I’m trying to do is feasible or not. I’m trying to trigger a webhook on freshservice workflows The idea is to trigger a prepatch email when a patching ticket is placed and another one after the ticket has been completed. Question is. Is there a way to trigger a prepatch report and send it through mail by using the automox API ? so far I couldn’t find a way to do it. Thanks for any helpDiego
Hello everyone, One of the most consistent pieces of feedback I get from users is that they don’t know when it is safe to press the Install Now button on the patching notification. The primary reason is due to silent installs, they have no idea when it is safe to “get back to work.”The Automox UI clearly has this status in the device details screen, as it displays installing, and once the installation is complete, the device returns to ready status. I searched the API, but I can’t find any method of accessing this status such that I can display a complete message to users.
Hi EveryoneI’m new to the API. guess im doing something wrong related to authentication. I can query through postman without any issues using my key but no luck with the below code : Here is what Im tryin to run through PS but I always get an “(401) Unauthorized.” error message$headers=@{Authorization="MyAccessKeyStringhere";Content='application/json'}$uri = "https://console.automox.com/api/reports/prepatch"$result = Invoke-restmethod -Uri $uri -Headers $headers -method get$result | select -expandproperty profile |select name Thanks a lot for any help. Diego
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.