Modular Integration Hub

Developer API Docs

Integrate specific D-Modulus features securely into your own applications like Zoho. Our modular APIs let you consume only what you need—be it billing, chat, contacts, or network links.

Onboarding Process

Before making API requests, you must register your integration to obtain standard API credentials. Follow these simple steps to start using our modules in your application.

Register an API App

Log in to your D-Modulus Developer Dashboard and create a new App. Specify the exact modules you need (e.g., Billing, Chat) to ensure least-privilege security.

Obtain Credentials

Once registered, you'll receive a Client ID and a Client Secret. Keep the secret secure. Do not expose it in client-side code.

Test in Sandbox

Route your requests to https://sandbox.api.dmodulus.com during development to test your integrations safely without affecting live data.

Authentication

All production and sandbox endpoints require a Bearer token passed in the Authorization header. You can exchange your Client credentials for a token via our Auth server.

Header Format

Include the token in your requests like so:

Authorization: Bearer YOUR_ACCESS_TOKEN

Billing & Notifications Module

Use this module if you already have a billing engine (e.g., Zoho Billing) and only need to trigger Email or SMS invoice deliveries to customers using D-Modulus's reliable notification infrastructure.

POST /api/v1/billing/{sale_id}/{channel} Notifications

Send an invoice or bill notification to a customer via the specified channel (SMS, Email, or WhatsApp).

Parameter Type Description
sale_id Path The unique identifier of the sale/invoice.
channel Path Must be sms, email, or whatsapp.
phone Query Required if channel is SMS or WhatsApp.
email Query Required if channel is Email.

Contact & CRM Module

Integrate our Contact feature directly into your storefront or internal application. This allows external applications to push lead data or sales requests directly into the D-Modulus CRM.

POST /api/v1/contact-sales Contact

Submit a new contact or sales inquiry request to be managed by the D-Modulus admin team.

Body Field Type Description
name String Name of the person making the inquiry (Required)
email String Contact email address (Required)
message String The actual message or inquiry details (Required)
phone String Optional phone number

Real-time Chat Module

Embed our robust chat feature into any interface. Powered by WebSockets and Redis pub/sub, it ensures instantaneous messaging between business connections or staff.

WS wss://api.pos.dmodulus.com/api/chat/ws Chat

Establish a persistent WebSocket connection to send and receive real-time messages. Requires token-based authentication during the handshake.

Payload Format (Send Message):

{ "type": "message", "recipient_id": "user_456", "content": "Hello!" }
GET /api/v1/chat/conversations Chat

Fetch a list of recent chat conversations including the last message snippet and unread counts.

Need a custom integration?

Our engineering team can assist you with integrating D-Modulus into your existing enterprise stack, like Zoho Hub.