White-Label Reseller API (V2)
Automate your Cloud PBX SaaS customer management seamlessly. Use this RESTful API to integrate ePBX functionalities directly into your own applications, billing portals, or CRM systems.
Authentication
All API requests require a Bearer token. You can generate your Developer API Key from your Reseller Dashboard under the White Label settings.
Authorization: Bearer YOUR_DEVELOPER_TOKEN
Base URL
https://epbx.bd/api/v2
Endpoints
List All Customers
Retrieve a paginated list of all your active customers/tenants.
Response
{
"status": "success",
"data": [
{
"id": 1,
"company_name": "Acme Corp",
"domain": "acme.epbx.bd"
}
]
}
Create Customer
Create a new Tenant (Customer) in the system and automatically provision their PBX environment.
Request Body
{
"company_name": "Example Corp",
"email": "admin@example.com",
"package_id": 1
}
Submit KYC
Upload KYC documents and information for a customer. Use multipart/form-data for this request.
Form Data (multipart/form-data)
NID Number: 1234567890 (Text) NID Front: nid_front.jpg (File) Trade License: trade_license.pdf (File) Address: 123 Main St (Text)
List Extensions
Retrieve all PBX extensions associated with a specific customer.
Create Extension
Provision a new SIP extension for the customer. PJSIP endpoints and authentication are configured automatically behind the scenes.
Request Body
{
"extension": "105",
"password": "SecurePassword123"
}
Request Number (DID)
Submit a request for a new DID Number or SIP Trunk. Once approved by the administrator, the trunk will be automatically assigned to the customer.
Request Body
{
"preferred_digits": "096",
"provider_id": 1,
"requested_channels": 2,
"notes": "Need this number for outbound call center."
}
Wallet Balance
Retrieve your current Reseller Wallet balance programmatically.
Wallet Top-up
Transfer funds from your Reseller Wallet to a customer, or deduct funds from a customer. This automatically creates ledger entries.
Request Body
{
"amount": 500.00,
"action": "add" // Use "add" to top-up, "deduct" to remove funds
}
Ping (Health Check)
Verify your API Token validity and White Label permissions.