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

GET /customers

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"
    }
  ]
}
POST /customers

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
}
POST /customers/{customerId}/kyc

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)
GET /telephony/customers/{customerId}/extensions

List Extensions

Retrieve all PBX extensions associated with a specific customer.

POST /telephony/customers/{customerId}/extensions

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"
}
POST /telephony/customers/{customerId}/numbers/request

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."
}
GET /wallet/balance

Wallet Balance

Retrieve your current Reseller Wallet balance programmatically.

POST /wallet/customers/{customerId}/topup

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
}
GET /ping

Ping (Health Check)

Verify your API Token validity and White Label permissions.

© 2026 ePBX.bd Developer API. All rights reserved.