Empire Telecom · EmpireUC developers
Get every phone event and AI alert in email, text, chat apps or your own system, signed and in real time.
EmpireUC tells you when something happens on your phones: a missed call, a voicemail, a 911 call, a text, a caller on hold too long, or (with the AI add-on) a caller who sounds upset or wants to cancel. Each alert rule picks the events, which calls it covers and where to send them. Sending to a webhook gives your own system every detail as JSON, signed so you know it is real.
| Item | Detail |
|---|---|
| Where | Phones > Alerts in the Empire Telecom customer portal (portal admins) |
| Rule types | Phone events (anyone) and AI alerts (needs the AI add-on: describe what to catch in plain words, mood, key words) |
| Destinations | Email, text message, Slack, Microsoft Teams, Google Chat, Discord, Zapier, Make, and any number of webhooks. Several per rule |
| Timing | Instantly, or a daily or weekly summary |
| Format | JSON, POST, Content-Type: application/json |
| Security | HTTPS only. Each rule has its own signing secret; every post carries X-EmpireUC-Signature |
| Filters | Inbound or outbound, which extensions, minimum call length, and a schedule (only during or only outside its hours) |
| Testing | Send a test on every rule posts a sample to each destination |
| 1 | Open Phones > Alerts and press New alert. |
| 2 | Name it, and pick Phone events or AI alert. |
| 3 | Events: pick All events or switch on the ones you want. |
| 4 | Which calls: direction, extensions (the whole company or chosen people), shortest call to count, and a schedule (attach an existing one or make one there). |
| 5 | Send to: click each place it should go and paste its details. For your own system, paste your HTTPS address under Webhook. Copy the signing secret shown there. |
| 6 | Test: press Send a test, check every destination received it, then save. |
Event (the event field) | What it means | How fast |
|---|---|---|
call.answered | Call answered | within about a minute of the call |
call.completed | Call completed | within about a minute of the call |
call.missed | Call missed | within about a minute of the call |
call.recorded | Call recorded | within about a minute of the call |
call.rec_failed | Call recording failed | within about a minute of the call |
call.emergency | Emergency call (911) | within about a minute of the call |
queue.answered | Ring group call answered | within about a minute of the call |
queue.missed | Ring group call missed | within about a minute of the call |
voicemail.received | Voicemail received | within about a minute |
call.ringing | Call ringing | within seconds, as it happens |
call.busy | Call busy | within seconds, as it happens |
call.blocked | Call blocked | within seconds, as it happens |
call.forward | Call forwarded | within seconds, as it happens |
call.hold | Call on hold | within seconds, as it happens |
call.resume | Call resumed | within seconds, as it happens |
call.transfer | Call transferred (blind) | within seconds, as it happens |
call.consult | Call transferred (consultative) | within seconds, as it happens |
call.park | Call parked | within seconds, as it happens |
call.unpark | Call unparked | within seconds, as it happens |
call.pickup | Call picked up | within seconds, as it happens |
queue.entered | Ring group call waiting | within seconds, as it happens |
message.received | Text message received | within seconds, as it happens |
message.sent | Text message sent | within seconds, as it happens |
click_to_call | Click to call result | as soon as the call is placed |
AI alert rules send ai_alert. Daily and weekly summaries send call_alert_summary or ai_alert_summary (below).
One POST per alert, with these headers:
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | EmpireUC-AI-Alerts/1.0 |
X-EmpireUC-Event | The event, for example call.missed |
X-EmpireUC-Signature | sha256=<hex HMAC-SHA256 of the raw body, keyed with the rule's signing secret> |
Example body:
| { "event": "call.missed", "event_label": "Call missed", "from": "12125550100", "to": "101", "number_dialled": "17325550100", "ring_group": "", "answered": false, "id": "a7Hk2LmPq9", "rule": "Missed calls to the front desk", "rule_id": "rK3f8Zq1", "kind": "call", "call_id": "20261029143502004912-7d9", "direction": "inbound", "seconds": 0, "caller": "Pat Smith (212) 555-0100", "extension": "101", "ours": "Front desk", "why": [ "Call missed" ], "summary": "", "said": "", "mood": "", "at": "2026-10-29T18:35:02+00:00", "link": "https://empiretelecom.io/phones/#/aialerts", "account": "Sunrise Senior Living" } |
| Field | Meaning |
|---|---|
event, event_label | What happened (see the events table) |
id | The alert ID (unique; use it to ignore repeats) |
rule, rule_id | The rule that sent it |
from, to | Caller and called party |
number_dialled | Your number the caller dialled |
ring_group | The ring group or queue, when there is one |
answered | true, false, or null when it does not apply |
kind | call, voicemail or message |
call_id | The phone system's ID for the call (matches call history and recordings) |
direction | inbound or outbound |
seconds | Call length |
caller | Caller name and number, as shown in the portal |
extension, ours | Your extension and its name |
why | List of reasons the rule matched |
summary, said, mood | AI alerts only: summary of the call, the key words said, and the caller's mood |
at | When it happened (ISO 8601, UTC) |
link | Opens Alerts in the portal |
account | Your account name |
| { "event": "call_alert_summary", "period": "daily", "rule": "Missed calls to the front desk", "rule_id": "rK3f8Zq1", "count": 2, "account": "Sunrise Senior Living", "link": "https://empiretelecom.io/phones/#/aialerts", "alerts": [ { "event": "call.missed", "from": "12125550100", "at": "2026-10-29T13:02:10+00:00", "...": "same fields as above" } ] } |
Compute an HMAC-SHA256 of the raw request body (the exact bytes, before parsing) with your rule's signing secret, and compare it with the header in constant time. Reject the post if they differ.
| const crypto = require('crypto'); app.post('/empireuc', express.raw({ type: 'application/json' }), (req, res) => { const sig = req.get('X-EmpireUC-Signature') || ''; const mine = 'sha256=' + crypto.createHmac('sha256', process.env.EMPIREUC_SECRET).update(req.body).digest('hex'); if (sig.length !== mine.length || !crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(mine))) return res.sendStatus(401); const alert = JSON.parse(req.body); // ... handle alert.event, alert.from, alert.call_id ... res.sendStatus(200); }); |
| import hmac, hashlib, os from flask import Flask, request, abort app = Flask(__name__) @app.post("/empireuc") def empireuc(): raw = request.get_data() mine = "sha256=" + hmac.new(os.environ["EMPIREUC_SECRET"].encode(), raw, hashlib.sha256).hexdigest() if not hmac.compare_digest(mine, request.headers.get("X-EmpireUC-Signature", "")): abort(401) alert = request.get_json() return "", 200 |
| $raw = file_get_contents('php://input'); $mine = 'sha256=' . hash_hmac('sha256', $raw, getenv('EMPIREUC_SECRET')); if (!hash_equals($mine, $_SERVER['HTTP_X_EMPIREUC_SIGNATURE'] ?? '')) { http_response_code(401); exit; } $alert = json_decode($raw, true); http_response_code(200); |
id. Use call_id to join with call history and recordings from the API.| Destination | Paste |
|---|---|
| Slack | An Incoming Webhook URL (hooks.slack.com/services/...) |
| Microsoft Teams | A Workflows webhook URL for the channel (Teams > channel > Workflows > "Post to a channel when a webhook request is received") |
| Google Chat | The space's webhook URL (chat.googleapis.com/...) |
| Discord | The channel webhook URL (discord.com/api/webhooks/...) |
| Zapier | A "Catch Hook" URL from Webhooks by Zapier (gets the same signed JSON as a webhook) |
| Make | A Custom webhook URL (gets the same signed JSON) |
| Email, text | Addresses or mobile numbers, several allowed |
Need a hand? Call Empire Telecom support at (732) 363-9898, email support@empiretelecomnj.com, or open a ticket in the customer portal.