---
updatedAt: 2025-08-14T17:00:59.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-central/llms.txt
---

# NC Rest API - Get Active Issues

```powershell PowerShell
###############################################################################################
#This script will retrive a list of active issues for a customer or site in N-central         #
#The list contains: OrgUnitName, Device ID, Notification State, Service ID, Service Name etc. #
#You can also export this information to CSV by removing the hash on the Export-CSV line      #
# 2=stale, 4=Warning, 5=Failed, 6=Misconfigured, 7=Disconnected, 8=Disabled                   #
###############################################################################################

#Enter your org unit ID below, it is not possible to query all customers by entering 50 currently
$orgunitid = 133

function NCentral-ActiveIssues {
    param (
        [string]$apiUrl,
        [string]$accessToken        
    )

    # Build the URI for the API endpoint
    $uri = "$apiUrl/api/org-units/$orgunitid/active-issues?sortBy=serviceName"

    # Build the headers with the access token
    $headers = @{
        "Authorization" = "Bearer $accessToken"
    }

    # Send the GET request to retrieve active issues information
    $response = Invoke-RestMethod -Uri $uri -Method Get -Headers $headers

    # Return the array of active issues from the response
    return $response.data
}

$activeissues = NCentral-ActiveIssues -apiUrl $apiUrl -accessToken $accessToken
$activeissue = $activeissues 

#$activeissue  | Export-Csv -Path C:\Temp\activeissues.csv -NoTypeInformation

$activeissue | ft
```

```json Response Example
{"success":true}
```

# Build the URI for the endpoint

<!-- powershell@16-18 -->



# Build the URI for the API endpoint





# Build Headers

<!-- powershell@19-24 -->



# Build the headers with the access token





# Retrieve Active Issues

<!-- powershell@25-30 -->



# Send the GET request to retrieve active issues information





# Return

<!-- powershell@31-37 -->