Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Response "Error occurred: {"Meta":{"ResponseCode":403,"ErrorMessage":"Unknown system identifier."}}"

Featured Replies

Posted

Hello,

We want to send a post notification via the API, but we always get the message "Unknown system identifier". What are we doing wrong? Below is the script that is used.

# Set your Pulseway API credentials
$tokenID = "*********"
$tokenSecret = "*************"

# Pulseway API Endpoint
$apiEndpoint = "https://************.pulseway.com/api/v3/notifications"

# Notification details
$instanceId = "Test"
$title = "Testing"
$message = "Test succeed"
$priority = "Critical"

# Create the JSON payload
$jsonPayload = @{
    InstanceId = $instanceId
    Title      = $title
    Message    = $message
    Priority   = $priority
} | ConvertTo-Json

$jsonPayload

# Set the authorization header
$headers = @{
    Authorization = "Basic {0}" -f [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("$($tokenID):$($tokenSecret)"))
    'Content-Type' = 'application/json'
}

# Send the API request
try {
    $response = Invoke-RestMethod -Uri $apiEndpoint -Method Post -Headers $headers -Body $jsonPayload

    if ($response.status -eq "success") {
        Write-Host "Notification sent successfully."
    } else {
        Write-Host "Failed to send notification. Response: $($response | ConvertTo-Json -Depth 5)"
    }
}
catch {
    Write-Host "Error occurred: $_"
}
 

Hope someone can help us.

Greeting,

Martijn

  • 4 months later...

Hello Martijn,

To send a post notification, you need a host system through which the notification will be transmitted. This host system is identified by a unique system identifier.

In the above script - "$instanceId" refers to the System Identifier. 
Below is how you can find the System Identifier. 

Select any device in the device card. You will find an alphanumeric in the URL associated to it. 

image.png.253d7075118cc96a8d59ebdb07c634e0.png

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.