API for Dealers and Partners

Created by Daniel Kauffer, Modified on Wed, 14 Feb at 11:41 AM by Daniel Kauffer

The Megacall API provides distributors and partners with the opportunity to seamlessly incorporate telephony services into their platforms, allowing them to offer these services under their brand (Whitelabel). Below are the steps and integration possibilities in more detail:


Process for Connecting Telephony to Your Clients:


  1. User Registration:

  • Initiate the registration of a new user using the POST /v1/reseller/users/registration/new/ function.

  • Complete the registration confirmation using the POST /v1/reseller/users/registration/confirm/ function.

  • Add and verify the user's contact phone number through the POST /v1/reseller/users/phones/add/ and /v1/reseller/users/phones/confirm/ methods, respectively.


  1. Balance Transfer:

  • Execute the balance transfer from the partner's account to the user's account using the GET /v1/reseller/users/topup/ method.


  1. Virtual Number Connection:

  • Connect virtual numbers using the appropriate methods and ensure to include the user_id parameter to identify the specific user.


  1. Creation and Configuration of Virtual Switchboard:

  • Create the virtual switchboard using the POST /v1/pbx/create/ method.

  • Assign extensions to the switchboard using the POST /v1/pbx/internal/create/ function.

  • Activate the call recording feature in the cloud with the PUT /v1/pbx/internal/recording/ method.


  1. Management of Incoming Calls:

  • Use interactive voice response (IVR) menus and scenarios to route incoming calls in the switchboard.

  • Develop menus and scenarios using the /v1/pbx/create/ and /v1/pbx/ivr/scenario/create/ functions.


  1. Uploading Audio Files for IVR Menus:

  • Upload audio files for IVR menus through the POST /v1/pbx/ivr/sounds/upload function.


  1. API Access and Notifications:

  • Generate API access keys to allow the user to interact with their account.

  • Configure the URL to receive call notifications through the POST /v1/pbx/callinfo/url/ function.

  • Set another URL for additional notifications through the POST /v1/pbx/webhooks/url/ function.


  1. Dynamic Voice Menu Management:

  • Implement dynamic voice menu management and incoming call handling using the PHP library provided by Megacall or by developing a custom solution with the call notification system.


  1. Integration with External CRM:

  • Follow the instructions provided by Megacall for integration with an external CRM.


  1. Making Calls from the Web Interface:

  • Enable the WebRTC widget to allow customers to make calls directly from the web interface.



These steps will enable Megacall distributors and partners to effectively incorporate telephony services into their platforms, providing customized services to their clients under their brand.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article