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
| Request | Returns | Filters |
|---|---|---|
GET /v1/organization | Name, plan, enrolled devices and the device limit | |
GET /v1/devices | Devices with hostname, serial, model, OS, agent, status, online, last check-in, group | status 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/alerts | Alerts with device, rule, severity, value and status | status active (default: open + acknowledged), open, acknowledged, resolved, all · device_id · since |
GET /v1/assets | Assets: tag, type, model, serial, assignee, location, status, warranty, cost | status · search |
GET /v1/assets/{id} | One asset | |
GET /v1/groups | Groups 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.
| Request | Does | Key |
|---|---|---|
GET /v1/software/apps | Your library: id, name, publisher, portal, needs_approval, description | Read |
GET /v1/lookup/devices | Find the PC for a ticket by hostname, serial or user (the Windows user signed in on it) | Read |
POST /v1/software/installs | Install 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 result | Read |
GET /v1/software/requests | App requests from the employee portal or the API. status pending (default), approved, denied, cancelled, all | Read |
POST /v1/software/requests | Ask for an app and let Pointrus owners and admins approve it (they get the usual email). Body: library_id, device_id, requester, reason, reference | Read + software |
POST /v1/software/requests/{id}/approve · /deny | Decide 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
| Status | Meaning |
|---|---|
| 400 | A filter has a wrong value. detail says which. |
| 401 | Missing, invalid, expired or revoked key. |
| 403 | The organization is suspended or closed, or a read-only key tried to install or decide a request. |
| 409 | The device cannot take the install (not Windows, agent too old), or a request was already decided. |
| 404 | Not found in this organization. |
| 429 | More 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
| Type | When | data |
|---|---|---|
device.enrolled | A device enrolled, or re-enrolled (re_enrolled: true) | device |
device.offline | A device stopped checking in (the Device offline alert opened) | device, offline_minutes |
device.online | An offline device checked in again | device |
device.revoked | A device was revoked | device, by |
device.deleted | A device was deleted | device (id, hostname, serial), by |
alert.opened | An alert opened | alert, device |
alert.acknowledged | Someone acknowledged an alert | alert, device, by |
alert.resolved | An alert resolved | alert, device |
asset.created | An asset was added | asset, by |
asset.updated | An asset changed: details, status, tag or return (change says which) | asset, change, details, by |
asset.deleted | An asset moved to the trash | asset (id, tag, serial), by |
software.requested | Someone asked for an app that needs approval (employee portal or API) | request, device, approve_url |
software.request.decided | An app request was approved or declined | request (status, note, install_id, reference), device |
software.finished | An install, update or uninstall finished on a PC | install (status, result, app, source, reference), device |
ping | You pressed Send test | message |
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.