POWERSHELL

Authenticate a license with PowerShell

Invoke-RestMethod can send the required JSON request.

PowerShell
$body = @{
  app      = 'YOUR_APP_NAME'
  owner_id = 'YOUR_OWNER_ID'
  version  = '1.0'
  license  = $LicenseKey
  hwid     = $DeviceHwid
} | ConvertTo-Json

$result = Invoke-RestMethod `
  -Uri 'https://YOUR-DOMAIN/api/v1/license' `
  -Method Post `
  -ContentType 'application/json' `
  -Body $body

Use HTTPS and catch transport errors separately from API result codes.