Communications API for developers: SMS, WhatsApp, voice calls and online meetings in one API
The DiceX API gives your software SMS, login codes, WhatsApp and other messaging apps, automated voice calls and online meetings through HTTP requests, with one account and one key per use.
6 min read
A communications API lets your software send SMS and WhatsApp messages, place automated calls and run meetings without anyone working in a panel. The DiceX communications API is one documented API: one account and one key in a header give your app SMS and login codes, WhatsApp and other messaging apps, voice messages by automated call, and online meetings. It is described with a public OpenAPI file, documented with sample code in cURL, JavaScript, Python and PHP, and every key can have its own spending cap and IP restriction. This guide is the map: what the API covers, how authentication works, how you start, and what to plan for.
Why one API for several channels
Building and maintaining a separate connection to every operator and messaging app is a lot of work: different credentials, different formats, different status reports. With DiceX, one API and one account cover them all. A typical case: an app that sends its users' login codes through the SMS API and order receipts on WhatsApp, from the same codebase and the same wallet. You do not have to move your work into DiceX's panels. DiceX provides the infrastructure; your software stays yours.
What the DiceX communications API covers
Whatever the DiceX panels do, the API does too. The public endpoints are grouped by service:
Service | What you can do | Example endpoints |
|---|---|---|
SMS | Single, bulk and per-recipient sends, status of each message, incoming messages, OTP template parameters | |
One-time codes (OTP) | Send a one-time code from a template | |
Messages, files, polls, contacts, locations, reactions; status and incoming messages; check whether a number uses WhatsApp | | |
Social messaging | Messages, files, polls, contacts and locations through the social messaging service (WhatsApp, Telegram bots and Discord bots on the product side) | |
Voice (VoIP) | Send a voice message by automated call and check its status | |
Online meetings | Create and manage meetings, folders, contacts and groups; attendance reports | |
| Account | Account details and balance, sub-accounts, contact groups | GET /api/v1/Account/GetInformation, POST /api/v1/Account/CreateSubAccount |
The full list, with request and response examples for each endpoint, is in the API reference.
SMS and login codes
The SMS service handles the classic cases: one message to one recipient, the same message to many recipients, and different messages to different recipients in one call. You can check the status of each message you sent and read incoming messages. For login and verification codes there is a dedicated OTP endpoint that sends a code from a template. See the SMS hub for the product side.
WhatsApp and other messaging apps
On the product side, DiceX social messaging works through WhatsApp, Telegram bots and Discord bots, and carries long texts, images, videos and files without splitting them into parts like an SMS. Beyond text, the WhatsApp endpoints send files, polls, contacts, locations and reactions, return the status of each message, and list incoming messages. There are also helpers such as checking whether a number has WhatsApp. The social messaging hub covers the channels from a business point of view.
Voice calls
The VoIP endpoints send a voice message by automated call and let you ask for its status, which is useful for reminders and alerts that need to be heard. More on the voice messaging hub.
Online meetings
The meeting endpoints create and manage meetings, folders, participants and contact groups, change passcodes and access types, and return attendance reports for hosts and participants. More on the online meetings hub.
How the API works: one key, one request
Base address and authentication
- Base address:
https://gateway.dicex.me - Authentication: every request carries your API key in the
ApiKeyheader. - Format: JSON request and response bodies over HTTPS.
A request to send one SMS looks like this:
```bash
curl -X POST https://gateway.dicex.me/api/v1/Sms/SendSingleSMS \
-H "ApiKey: $DICEX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"lineNumber": "30004567",
"receptor": "+96890000000",
"message": "Your login code is 482190"
}'
```
Responses share a simple wrapper:isSuccess, amessage, and avaluewith the result. For a sent SMS,valueincludes themessageId, which you use later to check its status. The same request in JavaScript, Python and PHP is in the documentation and on the developers page.
The OpenAPI description
The OpenAPI description of the services is public:
```
https://gateway.dicex.me/swagger/v1/swagger.json
```
Load it into your code generator, API client or testing tool to get typed models and ready requests. You can also give it to an AI agent so it builds correct calls, or use the MCP servers that DiceX has ready for AI tools. The AI hub explains that side.
OpenAPI is a standard way of describing an API. It does not mean the API is free or open source: using the services is paid from your wallet, as in the panels.
API keys: spending caps and IP restriction
Keys are created in the developer panel. Each key has:
- A title, so you know which app or environment it belongs to.
- An optional spending cap: the maximum amount the key may spend through the API.
- An optional IP restriction: single IPs or ranges allowed to use the key. If the list is empty, every IP is allowed.
A new key is reviewed by the DiceX team and can be used once it is approved. Creating a key may carry an activation fee; it is shown before you submit, and the key is not created until you accept it.
A good habit is one key per use: one for your production backend, one for staging, one for an AI agent. Each can have its own cap, and if one is exposed, you delete it without touching the others.
From sign-up to your first request
- Create an account. The same DiceX account works for every service.
- Create a key. In the developer panel, create an API key and set its spending limit.
- Top up your wallet. Add credit with a payment method available to you.
- Send your first request. Run a documentation example with your own key.
Build your own product on DiceX
The API is not only for sending from your own app. With the API and sub-accounts, you can offer communication services to your customers under your own name and brand, and run a white-label platform on DiceX infrastructure. The account endpoints create sub-accounts and read balances, so your platform can manage customers programmatically. The terms are on the partnership page.
Things to plan for
- Keys need approval before they work, so create them before your launch day.
- You still use the panel to manage the account, create keys and top up.
- Every call that sends something costs credit; set a spending cap on keys used by automated jobs.
- Keep the key on the server. Read it from the environment, as the samples do, and never ship it in a mobile app or web page.
Related reading: the quick-start to send SMS via API in cURL, JavaScript, Python and PHP, the guide to API key security, and how to connect an agent through the MCP server for SMS and WhatsApp.
Next step
Open the API reference, create your first key in the developer panel, and send one SMS to your own number. Everything for developers is collected on the developers hub.
Frequently asked questions
What does the DiceX API cover?
SMS and one-time codes, WhatsApp and other messaging apps, voice messages by automated call, online meetings, and account functions such as balance, sub-accounts and contact groups. Whatever the DiceX panels do, the API does too.
How do I authenticate?
Every request carries your API key in the ApiKey header. The base address is https://gateway.dicex.me.
Does OpenAPI mean the API is free or open source?
No. OpenAPI is a standard for describing an API so tools and developers can read it easily; using the services is paid from your wallet, as in the panels.
Do I also have to use the DiceX panels?
No. You need the panel only to manage your account, create keys and top up.
Can I build my own product on the DiceX API?
Yes. With the API and sub-accounts you can offer communication services to your customers under your own name and brand; the terms are on the DiceX partnership page.
Related articles
How to send SMS via API: your first DiceX request in cURL, JavaScript, Python and PHP
A short quick-start: create a key, make one POST request to SendSingleSMS with the key in the ApiKey header, read the messageId from the response and check the status.
API key security for messaging APIs: spending caps and IP restriction on DiceX keys
A leaked messaging API key costs real money. Here is how DiceX keys limit the damage: a spending cap per key, an IP allow list, one key per use, and what to do if a key leaks.