• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Troubleshooting and Validating ControlUp’s Compliance API

Posted on December 10, 2025

A team member reported an error while using the new Compliance API and asked if it was a known issue. Another member suggested creating a new API key as a possible solution and confirmed that the API was working for them. The team explained how to use the API and shared a code for testing API key access. After rechecking, the team found and fixed the issue.


Read the entire ‘Troubleshooting and Validating ControlUp’s Compliance API’ thread below:

Hi team, I’m trying to use the new Compliance API however I get an error when trying to use the below API call

https://api.controlup.com/compliance/devices

I get a 502 Bad gateway error, is this something that is an active issue with Compliance API?


Hi, can you try creating a new API key? I had a similar issue before and creating a new API key fixed it. I couldn’t reproduce the problem, but I’m sure the team will investigate if you had the same issue as well.

Just did a test request and the server is working for me.


Harrison, our test shows no issues at the moment. Are you using a VPN or a proxy for API requests?


Also can u share how u are using the API? using it in specific tool or Code?

You can use this code to validate the API key access

“`# ===============================================

ControlUp API Validation Script (Hard-coded Key)

===============================================

INSERT YOUR API KEY HERE

$ApiKey = "PASTE_YOUR_API_KEY_HERE"

$Url = "https://api.controlup.com/compliance/devices"

$Headers = @{

"Authorization" = "Bearer $ApiKey"

"Accept" = "application/json"

}

Write-Host "==============================================="

Write-Host " CONTROLUP API VALIDATION TEST"

Write-Host "==============================================="

Write-Host "Request URL: $Url"

Write-Host "Auth Header: Bearer * (hidden)"

Write-Host "Timestamp : $(Get-Date -Format ‘yyyy-MM-dd HH:mm:ss’)"

Write-Host "———————————————–"

try {

# Use Invoke-WebRequest to expose status code & raw content

$ProgressPreference = ‘SilentlyContinue’

$Response = Invoke-WebRequest -Uri $Url -Headers $Headers -Method GET -ErrorAction Stop

Write-Host "[OK] HTTP Request Completed Successfully" -ForegroundColor Green

Write-Host "HTTP Status Code : $($Response.StatusCode)"

Write-Host "Content Length : $($Response.RawContentLength)"

Write-Host "———————————————–"

# Parse JSON

$Json = $Response.Content | ConvertFrom-Json

Write-Host "Parsed Device Count: $($Json.devices.Count)"

Write-Host "———————————————–"

Write-Host "Sample Devices:" -ForegroundColor Cyan

$Json.devices |

Select-Object id, name, lastSeen, status |

Format-Table -AutoSize

}

catch {

Write-Host "[ERROR] Failed to call API" -ForegroundColor Red

Write-Host "———————————————–"

if ($_.Exception.Response) {

$RespStream = $_.Exception.Response.GetResponseStream()

$Reader = New-Object System.IO.StreamReader($RespStream)

$Body = $Reader.ReadToEnd()

Write-Host "HTTP Status: $($_.Exception.Response.StatusCode)" -ForegroundColor Yellow

Write-Host "Status Desc: $($_.Exception.Response.StatusDescription)"

Write-Host "Error Body:"

Write-Host $Body

}

else {

Write-Host "General Exception: $($_.Exception.Message)"

}

Write-Host "———————————————–"

}“`

you should see result like this


@member We rechecked and we believe we found the issue. now fixed. Kindly try again and let us know if you are still getting 502.


@member that has now worked, thank you 🙂

Continue reading and comment on the thread ‘Troubleshooting and Validating ControlUp’s Compliance API’.  Not a member? Join Here!


Categories: All Archives, ControlUp for Compliance, ControlUp Scripts & Triggers
Topics: Reporting, Scripts, Security, VPN

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2026 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..