OniConnect API Documentation
The OniConnect API lets your own tools — scripts, dashboards, reports, ticketing systems — read your workspace data: organization info, device status, and the latest performance metrics per device. API v1 is read-only and authenticated with a simple API key.
Getting a key
Workspace owners and admins can create keys in Settings → API access (or directly at /api-keys.php). A key looks like oni_1a2b3c4d_9f8e7d6c5b4a39281706f5e4d3c2b1a0 and is shown once at creation — copy it into your secret store. You can have up to 10 active keys per workspace, and you can revoke any key at any time; revocation takes effect immediately.
Authentication
Send the key as a Bearer token on every request:
curl -H "Authorization: Bearer oni_1a2b3c4d_9f8e7d6c5b4a39281706f5e4d3c2b1a0" \
https://oniconnectrmm.com/api/v1/org.php
Base URL: https://oniconnectrmm.com/api/v1/. All responses are JSON. Rate limit: 120 requests per minute per key.
Endpoints
| Endpoint | What it returns |
|---|---|
GET /org.php | Organization name, plan, status, subscription expiry, and device counts by status. |
GET /devices.php | Devices in your workspace: hostname, display name, agent version, OS, status, last seen, last IP. Filters: ?status=online|offline|pending|disabled|retired, ?limit=1..200 (default 100), ?offset=. |
GET /devices.php?id=<uuid> | One device by ID. Returns 404 if the device is not in your workspace. |
GET /metrics.php?device_id=<uuid> | Latest metrics snapshot for a device: CPU %, memory %, memory used/total, GPU %, disk free/total, and when it was collected. metrics is null if none recorded yet. |
Example
# List offline devices
curl -H "Authorization: Bearer oni_..." \
"https://oniconnectrmm.com/api/v1/devices.php?status=offline"
# Latest metrics for one device
curl -H "Authorization: Bearer oni_..." \
"https://oniconnectrmm.com/api/v1/metrics.php?device_id=<uuid>"
{
"devices": [
{
"id": "…",
"hostname": "RECEPTION-PC",
"display_name": "Reception",
"agent_version": "1.7.27",
"operating_system": "Windows 11 Pro",
"os_version": "23H2",
"architecture": "x64",
"status": "offline",
"last_seen_at": "2026-12-02 08:15:00.000",
"last_ip": "203.0.113.10",
"created_at": "2026-11-20 10:02:11.000",
"updated_at": "2026-12-02 08:15:00.000"
}
],
"count": 1,
"limit": 100,
"offset": 0
}
Errors
Errors come back as {"error": {"code": "…", "message": "…"}}` with a matching HTTP status:
| Status | Meaning |
|---|---|
| 400 | Bad parameter (e.g. malformed UUID or unknown status filter). |
| 401 | Missing, malformed, invalid, or revoked API key. |
| 404 | Device not found in your workspace. |
| 405 | Wrong method — API v1 is GET-only. |
| 429 | Rate limit exceeded (120/minute per key). Slow down and retry. |
Good to know
Keys only ever see their own workspace's data — there is no cross-workspace access. Device secrets and enrollment tokens are never exposed. Timestamps are UTC. If a key leaks, revoke it in Settings → API access and create a new one; the old key stops working instantly.
Try it on your own fleet
Create a free trial workspace, enroll a PC, and call the API against real data in minutes.
Start free trialSee pricing