Use the API

You can use the Patchdeck API to programmatically check for new patch alerts and unpatched systems. To use the API you first need to create an access token which you then include in every request.

Creating an access token

Head over to https://patchdeck.com/api and click the button "Generate access token": 

Making API requests

Available endpoints

  • https://patchdeck.com/api/patch_alerts
    • Available query parameters:
      • period=all
        • Get all patch alerts since subscribing to a patch feed
        • Example usage with cURL: curl https://patchdeck.com/api/patch_alerts?period=all -H 'Authorization: Token YOUR_API_TOKEN'
      • period=new
        • Get all new patch alerts since last API call
        • Example call: curl https://patchdeck.com/api/patch_alerts?period=new -H 'Authorization: Token YOUR_API_TOKEN'
    • Please note: All timestamps in API output are in UTC
  • https://patchdeck.com/api/patch_management/unpatched
    • Get all systems that are currently unpatched
  • https://patchdeck.com/api/patch_management/system/HOSTNAME
    • Get details on the system with HOSTNAME

Still need help? Contact Us Contact Us