Authentication

The Unified Security Stack API allows users to authenticate using an API key. Insert the key into the Utm-Api-Key header on every request.

Header Format

Utm-Api-Key: {{apiKey}}

Example Request

curl -sk "{{baseUrl}}/api/ping" 
  -H "Utm-Api-Key: {{apiKey}}"

Response: "OK" (HTTP 200)

Verifying API Key

curl -sk "{{baseUrl}}/api/utm-alerts/count-open-alerts" 
  -H "Utm-Api-Key: {{apiKey}}"

Response: Integer count of open alerts (e.g., 10). If you get a 401 Reply: your API key is not valid.