EmpireUC: call flow API (start a flow from any app) - Empire Telecom

EmpireUC: call flow API (start a flow from any app)

Empire Telecom · EmpireUC developers

Start a call flow from any app, form or CRM, and let a flow call your app during a live call.

Open Phones in the portal →Where: Sign in at empiretelecom.io/phones with your portal login.
Direct link: https://empiretelecom.io/phones/

Call flows in EmpireUC are not only for phone calls. Any app, web form, CRM workflow, Zapier or Make can start a flow by sending its details to one web address, and the flow takes it from there: text the person, email the team, create or update a CRM record, call them back, ask AI to write a reply. In the other direction, a Run a webhook step lets a flow call your system in the middle of a live call and route the call on your answer.

At a glance

ItemDetail
WherePhones > Call flow in the Empire Telecom customer portal
Start a flow from your appPOST https://empiretelecom.io/wp-json/empire-portal/v2/pbx/flow/{flow-key}/event (the exact address, with its key, is shown on the flow)
BodyJSON, form fields or query string. Every field becomes a value the flow can use, like {{name}}
StartsApp or web form (default), CRM record changed (?start=crmin)
Answer{ "ok": true, "run": 1234, "outcome": "..." }
Limit120 requests a minute per flow (then 429)
SecurityThe address contains a long secret key: treat it like a password. Anyone with it can start the flow
Flow calls your appThe Run a webhook step: POST, GET or PUT to your HTTPS address; your JSON answer becomes values the next steps can use

Start a flow from your app

1In Phones > Call flow, start the flow with App or web form (or CRM record changed).
2Build what should happen next, for example Send a text > Send an email.
3Press Go live. Under Apps and forms, copy the address.
4Send it your data:
curl -s -X POST "https://empiretelecom.io/wp-json/empire-portal/v2/pbx/flow/{flow-key}/event" \ -H "Content-Type: application/json" \ -d '{"name":"Pat Smith","phone":"2125550100","email":"pat@example.com","interest":"Tour on Saturday"}'

Answer:

{ "ok": true, "run": 18342, "outcome": "Sent a text to (212) 555-0100" }

Inside the flow the values are {{name}}, {{phone}}, {{email}} and {{interest}}. Nested JSON is flattened with underscores: {"contact":{"first":"Pat"}} becomes {{contact_first}}. A field called phone, caller or from also fills {{caller}}, so Send a text and Call back steps know who to reach.

From a web form, Zapier or Make

  • Web form: set the form's action to the address with method="post". Field names become the values.
  • Zapier: add a Webhooks by Zapier > POST action with the address and your fields.
  • Make: add an HTTP > Make a request module, method POST, body type JSON.
  • CRM: add ?start=crmin to the address so the flow's CRM record changed start runs.

Answers and errors

StatusMeaning
200 with "ok": trueThe flow ran. run is its ID in the flow's history
200 with "ok": falseThe flow has no start of that kind. outcome says which
404The flow is not live, or the address is wrong
429More than 120 requests a minute to this flow. Slow down and retry

Let a flow call your app: Run a webhook

Add a Run a webhook step anywhere in a flow. During a live call it waits up to 5 seconds for your answer (15 seconds outside calls), then follows Worked, Failed or Timed out.

Unless you write your own body, your address receives:

{ "event": "call_flow", "flow": "Main line", "caller": "12125550100", "called": "17325550100", "answer": "2", "key": "2", "time": "2026-10-29T18:35:02+00:00", "details": { "caller": "12125550100", "called": "17325550100", "caller_pretty": "(212) 555-0100", "flow": "Main line", "date": "Thursday, October 29, 2026", "time": "2:35 PM", "answer": "2", "key": "2" } }
  • Method: POST (default), PUT, or GET (values sent as query string).
  • Your own body: write any JSON in the step with values like {{caller}}.
  • Your answer: reply with JSON and every field becomes a value for the next steps, prefixed app_. {"vip":"yes","account":{"tier":"gold"}} gives {{app_vip}} and {{app_account_tier}}, ready for a Check something step to route VIPs to a person.
  • Signing in to your app: add your app under the flow's connected apps with a header name and secret (for example Authorization and Bearer ...); the step sends it with every request.
  • Addresses: public HTTPS (or HTTP) only, ports 80, 443 or 8080. Private or local addresses are refused.

More

Need a hand? Call Empire Telecom support at (732) 363-9898, email support@empiretelecomnj.com, or open a ticket in the customer portal.