HospifyDashboard
Docs menu

Your own back office

Want your control room in your own system, without opening Hospify? Everything the Live SOS Board does is in the API, with your secret key: see open incidents, follow the agent's trail, acknowledge, add notes and resolve. Your supervisors can use your tools, the Live SOS Board at org.hospify.cloud, or both: they stay in step.

Open incidents

const { data } = await hospify.incidents.list({ status: "open" });
for (const i of data) {
  console.log(i.id, i.agent?.external_id, i.status, i.location?.lat, i.location?.lng, i.responder);
}

One incident, with its trail

GET /v1/org/incidents/{id} adds the timeline (sent, acknowledged, escalated, notes, closed, with who and when). Add ?trail=true for every location point.

Node.js
const incident = await hospify.incidents.get("inc_4821", { trail: true });
drawPath(incident.trail);   // [{ lat, lng, accuracy_m, at }, ...]

Act on it

Pass by to record who in your team did it; it shows in the timeline and on the Live SOS Board.

Node.js
await hospify.incidents.acknowledge("inc_4821", { by: "Control room, Amaka" });
await hospify.incidents.note("inc_4821", { note: "Patrol car on the way, ETA 8 minutes", by: "Control room, Amaka" });
await hospify.incidents.resolve("inc_4821", { outcome: "resolved", note: "Agent home safe", by: "Control room, Amaka" });

The agent's app hears each step within a few seconds (responder is filled in when someone acknowledges), and your webhooks and event feed get it too.