Skip to content

Network ​

Base URL: https://your-domain.com/api/v1

Read-only network data. Requires HTTP Basic Auth.

NAS / Routers ​

List NAS ​

GET /api/v1/nas/list — Config only; credentials are never returned. Filters: nasapi, limit, offset.

  • 200:
json
[ { "id": 2, "nasname": "10.0.0.1", "shortname": "Core-MT", "nasip": "10.0.0.1",
    "api_enabled": 1, "parent": null, "api_port": "8728", "incoming_port": "3799" } ]

Get NAS ​

GET /api/v1/nas/get/{id} — Single NAS (config only). 404 if not found.

RADIUS sessions ​

Online sessions ​

GET /api/v1/radius/online — Currently online sessions. Filters: username, nas_ip, limit, offset.

  • 200:
json
[ { "username": "john123", "ip": "10.0.0.5", "nas_ip": "10.0.0.1", "session_id": "…",
    "mac": "AA:BB:…", "start_time": "…", "last_update": "…" } ]

Session history ​

GET /api/v1/radius/history — Filters: username, nas_ip, date_from, date_to, limit, offset. Capped at 100 rows without an explicit limit. Adds stop_time to each row.

Disconnecting a session

Use /api/v1/activation/disconnect to drop a live session.

www.onezeroart.com