API guide
Overview
Build your own product on LexoConnect. Calls, phone system, contact center, messaging, AI agents and CRM are all available through one REST API and signed webhooks.
What you can build#
LexoConnect is a cloud phone system (PBX), contact center, dialer, omnichannel inbox and CRM in one product. Everything the LexoConnect app does goes through the same REST API that you can use. A partner company can therefore build its own product on top of LexoConnect, for example:
- a CRM or helpdesk integration with click-to-call buttons, screen pops and every call logged automatically;
- its own softphone or agent desktop on top of LexoConnect's SIP/WebRTC service;
- an outbound sales tool that loads leads into LexoConnect dialer campaigns and reads the outcomes back;
- an SMS / WhatsApp / email bot that receives messages by webhook and answers through the API;
- AI voice agents that answer calls, book appointments in the partner's system and hand over to humans.
How the pieces fit#
| Piece | What it is for |
|---|---|
REST API (/api/v1) | Read and change everything: calls, users, numbers, queues, IVR, campaigns, messages, CRM, AI agents. JSON over HTTPS, authenticated with an API key. |
| Webhooks | LexoConnect calls your server when something happens: a call rings, is answered or ends, a recording is ready, a message arrives, an agent saves an outcome. Signed per the Standard Webhooks specification. |
| Webphone embed and SDK | Put a working phone inside your own web app with an iframe or a small JavaScript SDK. Your server mints a short-lived token; the API key never reaches the browser. |
| SIP / WebRTC | Desk phones, softphones and your own WebRTC client register to LexoConnect with SIP credentials. |
Your first call in three steps#
- Ask a LexoConnect admin of the company to create an API key in Admin → Developer → API keys with the scopes you need (see Getting started).
- Check the key:
curl
curl "$LEXO_URL/api/v1/me" -H "Authorization: Bearer $LEXO_API_KEY"- Place a click-to-call: the user's phone rings first, then LexoConnect dials the customer.
curl
curl -X POST "$LEXO_URL/api/v1/calls/originate" \
-H "Authorization: Bearer $LEXO_API_KEY" -H "Content-Type: application/json" \
-d '{"extension": "101", "to": "+12125550123"}'Guide contents#
| Page | Read it when you want to |
|---|---|
| Getting started | create a key, authenticate, page through lists and handle errors and rate limits |
| Calls | place calls, control live calls (transfer, conference, record, park, hang up), read call history and recordings, monitor calls |
| Phone system (PBX) | manage users and extensions, numbers and their routing, queues, IVR call flows, business hours and voicemail |
| Contact center | run dialer campaigns, upload leads, save dispositions and callbacks, read the wallboard, use call scripts and do-not-call lists |
| Messaging | send and receive SMS, WhatsApp, email and chat, and work with conversations |
| AI agents and ringless voicemail | create AI voice agents, place AI calls, read AI call history, send ringless voicemails |
| CRM | create and search contacts and other records, add notes and tasks, read the timeline |
| Webhooks | receive events, verify signatures, handle retries |
| Embedding | embed the webphone or the chat widget in your product |
| Recipes | follow complete, end-to-end examples |
The API reference lists every endpoint, field and response. The same definition is available as an OpenAPI file for Postman or a code generator, and this whole guide can be downloaded as one Markdown file to share with your team.