Dialmora

Dialmora developer portal — APIs and webhooks for your app

Build on Dialmora's open REST APIs: place calls, buy numbers, transcribe and summarise calls, and receive webhooks when things happen. Every route below is real — copy the examples and run them against the staging app in demo mode.

Demo mode: no provider account is live yet, so every example below answers with configured: false and places no real call, buys no real number, and spends no money. That is the honest demo answer — not an error in your code.

Build your first app

  1. Step 1 — Sign in

    Sign in with Google. No key is needed to try the APIs — demo mode answers every call with its real shape.

  2. Step 2 — Try an endpoint

    Run the voice-call example below. You will get the demo answer back — the same JSON shape the live API returns.

  3. Step 3 — Go live

    Create your own workspace API key on the Integrations page — Developer section, or keep using your signed-in session. When the provider accounts exist, the Super Admin enters the provider keys in the Admin panel — no redeploy.

API categories

Voice API — calls and the softphone

The voice account is chosen by the Super Admin. Numbers must be E.164, e.g. +12125550120.

POST /api/voice/tokenSoftphone login token. Body: { identity }. Demo: { configured: false, identity, error: "Voice is not connected yet — the softphone runs in demo mode." }

POST /api/voice/callPlace an outbound call. Body: { to, from, amd?, fallback?, workspaceId? }. amd is detect, detect_beep or disabled. Missing/invalid numbers → 400. Blocked number or zero credits → 403 from the service gate.

GET /api/voice/callWhether voice is configured: { configured, note }.

POST /api/voice/conferenceSupervisor Listen / Whisper / Barge. Body: { mode, agentId }. mode must be listen, whisper or barge (else 400). Live use needs a Super Admin, Admin or Supervisor session.

curl -X POST https://dialmora.com/api/voice/call \
  -H "Content-Type: application/json" \
  -d '{"to": "+12125550120", "from": "+12125550101", "amd": "detect"}'

# Demo-mode response (no voice account live yet):
{"configured": false,
 "error": "Voice provider not configured (placeholder key)"}

Numbers API — search, buy, assign

Numbers come from the number account the Super Admin connected, separate from the voice account. Search needs a signed-in session; buying and assigning need a Workspace Admin.

GET /api/numbers/search?country=US&area_code=212Available numbers for a country + area code. Demo (unconfigured): { configured: false, country: "US", demo: true, numbers: ["+12125550121", "+12125550122", "+12125550123"], note }.

POST /api/numbers/buyBuy a number. Body: { phone_number, country?, area_code? }. Workspace Admin only. Unconfigured: 503 { configured: false, purchased: false, error } — nothing is bought.

POST /api/numbers/assignAssign a number to an agent and/or campaign, toggle Local Presence. Body: { phone_number, agent_id?, campaign_id?, local_presence? }. Demo: { configured: false, saved: false, demo: true, assignment, note }.

curl "https://dialmora.com/api/numbers/search?country=US&area_code=212"

# Demo-mode response (signed in, no number account live yet):
{"configured": false, "country": "US", "demo": true,
 "numbers": ["+12125550121", "+12125550122", "+12125550123"],
 "note": "Demo numbers — numbers are not connected yet. Buying a number needs
  the provider account + payment set up by Super Admin first."}

AI API — transcription and summaries

These two routes transcribe audio and summarise calls when an AI key is configured. The live in-app AI Coach is different: it transcribes and coaches on the built-in AI. Do not confuse the two.

POST /api/ai/transcribeCall transcription. Multipart form, field audio, max 25 MB. Demo: { configured: false, transcript: "", error: "Transcription is not configured yet — ask your Super Admin to connect it." }

POST /api/ai/summaryPost-call summary. Body: { transcript } — text, max 20,000 characters (else 400). Demo: { configured: false, summary: "AI summary unavailable — transcription is not configured yet.", sentiment: "unknown", actionItems: [] }.

curl -X POST https://dialmora.com/api/ai/summary \
  -H "Content-Type: application/json" \
  -d '{"transcript": "Agent: Hi, this is Amna from Raza Retail. Lead: We are using competitor software at the moment."}'

# Demo-mode response:
{"configured": false,
 "summary": "AI summary unavailable — transcription is not configured yet.",
 "sentiment": "unknown", "actionItems": []}

Webhooks — WhatsApp

Dialmora receives WhatsApp events on this route and stores them in the messages table (one thread per lead). Voice-provider webhook receivers are set up by the Super Admin in the Admin panel — they are not part of this user API.

POST /api/webhooks/whatsappWhatsApp. Form-encoded inbound (From / Body / MessageSid) → stored in the messages table (one thread per lead) when the database is connected: { received: true, channel: "whatsapp", from, body, stored: true }. JSON { to, body, channel } sends outbound (body max 4,096 chars) and stores the sent message too when the database is connected (demo: not stored). The response never names the messaging provider.

CRM webhooks — planned, not live

POST /api/webhooks/crm exists and acknowledges any JSON payload: { received: true, kind, note } where kind is the payload's event/type or "lead.upsert". That is all it does today. Mapping CRM fields to leads and call logs — for HubSpot, Salesforce or Zoho — is planned, not built: there is no live HubSpot, Salesforce or Zoho sync yet, and none is claimed here.

curl -X POST https://dialmora.com/api/webhooks/crm \
  -H "Content-Type: application/json" \
  -d '{"event": "lead.upsert", "email": "lead@example.com"}'

# Response today (acknowledged, not synced):
{"received": true, "kind": "lead.upsert",
 "note": "CRM sync is a placeholder — map fields to leads/call_logs
  when a CRM is connected."}

Developer API — workspace keys and your webhook

Any signed-in user creates their own workspace API key on the Integrations page (/dashboard/integrations) — shown once at creation, stored hashed, revocable, scoped to your workspace only. One webhook endpoint per workspace. Provider keys are never here — they stay Super Admin only. Manage your keys and webhook.

GET /api/developer/meProve a workspace key. Header: Authorization: Bearer <key>. → 200 { workspaceId, keyId, label, authenticated: true }. Missing, malformed or revoked key → 401.

POST /api/integrations/keysCreate a workspace key. Body: { label? }. → 201 { key, fullKey, warning } — fullKey is shown ONCE, never again. Signed-in session required (demo mode: open demo workspace, demo: true).

GET /api/integrations/keysList your workspace keys — metadata only (label, prefix, created, last-used, revoked). The full key is never returned.

DELETE /api/integrations/keys/:idRevoke a key. Revoked keys never validate again (→ 401 on /api/developer/me). Unknown or already-revoked id → 404.

GET /api/integrations/webhookYour saved webhook endpoint (or null) + the events it receives (call.completed).

POST /api/integrations/webhookSave your webhook URL. Body: { url } — must be http(s), else 400. Saving a new URL replaces the old one (one endpoint per workspace).

POST /api/integrations/webhook/testSend a real test call.completed event to your saved URL right now and get the delivery result back: { ok, test: true, delivery: { status, code, detail } }. No webhook saved → 404.

DELETE /api/integrations/webhookDelete your webhook endpoint. No endpoint saved → 404.

# 1 — create a key (signed in, or demo mode):
curl -X POST https://dialmora.com/api/integrations/keys \
  -H "Content-Type: application/json" \
  -d '{"label": "Zapier"}'
# → {"key": {"id": "key-…", "prefix": "dm_live_a1b2…", …},
#    "fullKey": "dm_live_…", "warning": "Save this key now — it is shown ONCE …"}

# 2 — prove it works:
curl https://dialmora.com/api/developer/me \
  -H "Authorization: Bearer dm_live_…"
# → {"workspaceId": "ws-dialmora-hq", "keyId": "key-…",
#    "label": "Zapier", "authenticated": true}

Calls, leads and lists — the working data routes

These routes read and write the workspace's own data. There is no separate messages REST endpoint — WhatsApp and SMS go through the webhook above (inbound stored in the messages table, outbound sent + stored).

POST /api/calls/logWrite a call log entry. Body: { sessionId, to, from, provider?, status?, disposition?, durationSeconds?, recording?, amd?, voicemailDrop?, transferredTo?, dtmf? }. When the database is connected the entry is saved to call_logs and the workspace webhook receives call.completed; otherwise { configured: false, saved: false, demo: true }.

POST /api/leads/importImport leads from JSON. Body: { leads: [{ phone, ... }] } — at most 1,000 leads per request (else 400). Workspace Admin only when the database is connected; otherwise { configured: false, imported: 0, blocked: 0 }.

GET /api/blocklistList blocked numbers for the workspace. Signed-in session required.

POST /api/blocklistBlock or unblock a number. Body: { phone, name?, reason?, scope: "personal" | "workspace", action: "block" | "unblock", workspaceId? }. Any user can block anyone. Signed-in session required.

POST /api/teams/inviteInvite a teammate by email. Body: { name, email, role?, teamId } — name, email and teamId are required. Workspace Admin only. Signed-in session required.

API keys and auth

Two different keys, never mixed up. Workspace API keys are yours: any signed-in user creates one on the Integrations page (/dashboard/integrations) — shown once, stored hashed, revocable, scoped to your workspace only. Send it as Authorization: Bearer <key> and prove it with GET /api/developer/me. Provider keys (voice, messaging, AI, payments, database) are entered by the Super Admin in the Admin panel — they live in the settings table under Super-Admin-only access and come back masked (••••••••). They are never shown in full, and never in these docs. In demo mode (no keys) the routes answer configured: false and need no session. Manage yours on the Integrations page — Developer section.

Integrations — only what is real

Dialmora connects to voice, messaging, billing and data services behind the scenes — all of them are set up by the Super Admin in the Admin panel. As a developer you only need your own workspace key (above); which services run underneath is not part of this API and is never shown here.

CRM (HubSpot / Salesforce / Zoho): the webhook endpoint exists; field mapping is planned, not live. No other integrations are claimed — no SDKs in 11 languages, no 500+ integrations, no developer counts.

Community

There is no Dialmora forum or blog yet — so none is linked here. For help, use the support page or send us a message.

Frequently asked questions

How do I start building on Dialmora?

Sign in with Google, then try any endpoint in demo mode — no key needed. Demo answers say configured: false and place no real calls. When you are ready for live calls, create your own workspace API key on the Integrations page (/dashboard/integrations) and send it as Authorization: Bearer <key>.

Do I need an API key?

In demo mode, no. For live actions the caller needs a signed-in session or a workspace API key (create one on /dashboard/integrations — it is shown once, stored hashed, revocable). The provider keys are different: they must be set by the Super Admin. Keys are stored in the database and come back masked — they are never shown in full, and never in these docs.

Is there an SDK?

No SDK yet — Dialmora is a REST API with curl and JavaScript examples on this page. The examples below run against the real routes.