Back to Dashboard

OneTimer Pro API v2

Programmatic access to server telemetry push-endpoints and edge metric nodes.

POST /v2/agent/push-metrics

Send compressed server state metrics. Supports raw binary payloads, encrypted TCP, and WebSocket fallback protocols.

Request Body (JSON)

{
  "agent_id": "edge-ingest-01",
  "timestamp": 1784268579,
  "metrics": {
    "cpu_pct": 1.2,
    "ram_pct": 15.0,
    "net_tx_bytes_daily": 25899104000
  }
}
GET /v2/edge/nodes

Fetch list of active edge routing gateways, including current peer latency and socket handshake states.

Response Example (200 OK)

{
  "status": "success",
  "nodes": [
    { "node_id": "internal-gateway-01", "ip": "192.0.2.10", "state": "active" },
    { "node_id": "internal-gateway-02", "ip": "192.0.2.11", "state": "active" }
  ]
}