PointrusManage API keys and webhooks →

Pointrus API & webhooks

Read your devices, alerts, assets and groups over HTTPS, get a signed POST the moment something happens, and let your own portal or service desk install approved apps through Pointrus.

Authentication

Create a key in Integrations › API keys (owners and admins). Each key works on one organization. Keys are Read only unless you choose Read + software, which also lets the key install library apps and decide app requests (see Software). Send it as a bearer token:

curl https://app.pointrus.io/api/v1/devices \
  -H "Authorization: Bearer ptk_your_key"

Keys are shown once and stored only as a hash. Give each tool its own key so you can revoke it on its own. Never put a key in a web page or a public repository.

Requests & paging

Base URL: https://app.pointrus.io/api/v1. Responses are JSON; times are ISO 8601 in UTC. Lists accept limit (1 to 500, default 100) and offset, and answer:

{ "data": [ … ], "total": 42, "limit": 100, "offset": 0, "has_more": false }

Endpoints

RequestReturnsFilters
GET /v1/organizationName, plan, enrolled devices and the device limit
GET /v1/devicesDevices with hostname, serial, model, OS, agent, status, online, last check-in, groupstatus active (default), revoked, all · online true/false · group_id · search
GET /v1/devices/{id}One device, plus health (CPU, memory, disk, uptime, updates, security) and open_alerts
GET /v1/alertsAlerts with device, rule, severity, value and statusstatus active (default: open + acknowledged), open, acknowledged, resolved, all · device_id · since
GET /v1/assetsAssets: tag, type, model, serial, assignee, location, status, warranty, coststatus · search
GET /v1/assets/{id}One asset
GET /v1/groupsGroups with device counts

Example: devices that are offline

curl "https://app.pointrus.io/api/v1/devices?online=false" -H "Authorization: Bearer $POINTRUS_KEY"

{
  "data": [{
    "id": 516, "hostname": "FRONT-DESK-02", "serial_number": "PF3HY06E",
    "manufacturer": "LENOVO", "model": "ThinkPad T14", "platform": "Windows",
    "os_version": "Windows 11 Pro 23H2", "agent_version": "0.8.3",
    "status": "active", "online": false, "last_seen_at": "2026-10-15T07:12:40Z",
    "enrolled_at": "2026-10-02T14:03:11Z", "description": "Reception",
    "group": {"id": 4, "name": "Front office"},
    "url": "https://app.pointrus.io/device.html?id=516"
  }],
  "total": 1, "limit": 100, "offset": 0, "has_more": false
}

PowerShell

$h = @{ Authorization = "Bearer $env:POINTRUS_KEY" }
(Invoke-RestMethod "https://app.pointrus.io/api/v1/alerts?status=open" -Headers $h).data |
  Select-Object @{n="Device";e={$_.device.hostname}}, severity, message, opened_at

Software & your own portal

Keep your intranet, ServiceNow, Jira Service Management, Freshservice or any other tool as the place where employees ask for apps, and let Pointrus do the install: it runs silently on the PC through the Pointrus agent, from the apps in your Software library. Installs, results and decisions stay in Pointrus activity and the audit log.

RequestDoesKey
GET /v1/software/appsYour library: id, name, publisher, portal, needs_approval, descriptionRead
GET /v1/lookup/devicesFind the PC for a ticket by hostname, serial or user (the Windows user signed in on it)Read
POST /v1/software/installsInstall a library app on a PC now (your tool already approved it). Body: library_id, device_id, optional requester and reference (your ticket number). Asking again while it runs returns the same install.Read + software
GET /v1/software/installs/{id}Status: queued, running, completed or failed, with the device's resultRead
GET /v1/software/requestsApp requests from the employee portal or the API. status pending (default), approved, denied, cancelled, allRead
POST /v1/software/requestsAsk for an app and let Pointrus owners and admins approve it (they get the usual email). Body: library_id, device_id, requester, reason, referenceRead + software
POST /v1/software/requests/{id}/approve · /denyDecide a request from your own approval workflow. Body: optional note (shown to the employee). Approving starts the install.Read + software

Example: a ServiceNow catalog item installs Zoom

# 1. Find the requester's PC
curl "https://app.pointrus.io/api/v1/lookup/devices?user=j.tremblay" -H "Authorization: Bearer $POINTRUS_KEY"

# 2. Install the library app on it, with your ticket number
curl -X POST https://app.pointrus.io/api/v1/software/installs \
  -H "Authorization: Bearer $POINTRUS_KEY" -H "Content-Type: application/json" \
  -d '{"library_id": 12, "device_id": 516, "requester": "j.tremblay", "reference": "RITM0010042"}'

{ "id": 9031, "device_id": 516, "action": "software_install", "status": "queued", "app": "Zoom Workplace",
  "source": "api", "reference": "RITM0010042", "requested_at": "2026-10-22T14:03:11Z", … }

# 3. Close the ticket when Pointrus sends software.finished (or poll GET /v1/software/installs/9031)

Use a Read + software key only in the tool that needs it, and store it in that tool's credential store. The employee portal on PCs can be renamed or turned off in Software › Employee portal if you use your own.

Errors & limits

StatusMeaning
400A filter has a wrong value. detail says which.
401Missing, invalid, expired or revoked key.
403The organization is suspended or closed, or a read-only key tried to install or decide a request.
409The device cannot take the install (not Windows, agent too old), or a request was already decided.
404Not found in this organization.
429More than 300 requests in a minute with one key. Wait for Retry-After seconds.
{ "detail": "Invalid, expired or revoked API key" }

Webhooks: how they work

Add an endpoint in Integrations › Webhooks. When an event happens, Pointrus sends an HTTPS POST with a JSON body to your URL, usually within 15 seconds. Answer with any 2xx status within 10 seconds; do slow work after you answer. URLs must be public https:// addresses, and redirects are not followed.

Works with Zapier (“Webhooks by Zapier · Catch Hook”), Make (“Custom webhook”), n8n (Webhook node), Power Automate (“When an HTTP request is received”) and your own code.

Events

TypeWhendata
device.enrolledA device enrolled, or re-enrolled (re_enrolled: true)device
device.offlineA device stopped checking in (the Device offline alert opened)device, offline_minutes
device.onlineAn offline device checked in againdevice
device.revokedA device was revokeddevice, by
device.deletedA device was deleteddevice (id, hostname, serial), by
alert.openedAn alert openedalert, device
alert.acknowledgedSomeone acknowledged an alertalert, device, by
alert.resolvedAn alert resolvedalert, device
asset.createdAn asset was addedasset, by
asset.updatedAn asset changed: details, status, tag or return (change says which)asset, change, details, by
asset.deletedAn asset moved to the trashasset (id, tag, serial), by
software.requestedSomeone asked for an app that needs approval (employee portal or API)request, device, approve_url
software.request.decidedAn app request was approved or declinedrequest (status, note, install_id, reference), device
software.finishedAn install, update or uninstall finished on a PCinstall (status, result, app, source, reference), device
pingYou pressed Send testmessage

Device, alert and asset objects have the same fields as in the API. New event types may be added; endpoints that subscribe to every event receive them, so ignore types you do not handle.

Payload

POST /your/endpoint
Content-Type: application/json
User-Agent: Pointrus-Webhooks/1.0
Pointrus-Event: alert.opened
Pointrus-Event-Id: evt_6f1c0d4e2b9a4c8e9f0a1b2c3d4e5f60
Pointrus-Delivery: 1842
Pointrus-Signature: t=1792050000,v1=5b2c…e91

{
  "id": "evt_6f1c0d4e2b9a4c8e9f0a1b2c3d4e5f60",
  "type": "alert.opened",
  "created_at": "2026-10-15T08:02:11Z",
  "organization": {"id": 23, "slug": "contoso", "name": "Contoso"},
  "data": {
    "alert": {"id": 77, "rule": "Low disk space", "metric": "disk_pct", "severity": "warning",
              "value": 93.0, "status": "open", "opened_at": "2026-10-15T08:02:10Z",
              "device": {"id": 516, "hostname": "FRONT-DESK-02"}},
    "device": {"id": 516, "hostname": "FRONT-DESK-02", "online": true, "…": "…"}
  }
}

The same event can arrive more than once (after a retry or a Resend). Use id to ignore duplicates.

Verify signatures

Each endpoint has a signing secret (whsec_…, under Signing secret). Pointrus-Signature holds a Unix timestamp t and v1, the hex HMAC-SHA256 of t + "." + raw request body with that secret. Compare in constant time, use the raw body (not re-encoded JSON), and reject old timestamps.

Python

import hashlib, hmac, time

def verify(raw_body: bytes, header: str, secret: str, tolerance=300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t, sig = parts.get("t", ""), parts.get("v1", "")
    if not t.isdigit() or abs(time.time() - int(t)) > tolerance:
        return False
    expected = hmac.new(secret.encode(), t.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, sig)

Node.js

const crypto = require("crypto");

function verify(rawBody, header, secret, tolerance = 300) {
  const parts = Object.fromEntries(header.split(",").map(p => p.split("=")));
  if (!/^\d+$/.test(parts.t || "") || Math.abs(Date.now() / 1000 - Number(parts.t)) > tolerance) return false;
  const expected = crypto.createHmac("sha256", secret).update(parts.t + "." + rawBody).digest("hex");
  const a = Buffer.from(expected), b = Buffer.from(parts.v1 || "");
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

Retries

A delivery that does not get a 2xx answer is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours (7 attempts). An endpoint that fails 50 deliveries in a row is paused; fix it, then choose Resume. Delivery history, with payloads and response codes, is kept for 14 days under Deliveries, where you can also resend any event.