3CX REST API to manage Configuration

Discussion in 'Ideas' started by voipvision, May 8, 2017.

3CX REST API to manage Configuration 5 5 11votes
5/5, 11 votes

  1. voipvision

    Joined:
    May 5, 2017
    Messages:
    2
    Likes Received:
    1
    Please provide a REST API to manage configurations from external systems (e.g. Adding User, Removing User, Renaming User, change Call Forward Rules, etc).

    A REST API would allow the pbx to be controlled from an external system like customer account center and so forth.
     
    B.Fluehmann likes this.
  2. Hielkio

    Joined:
    May 19, 2017
    Messages:
    1
    Likes Received:
    1
    Vote +1 :)
    This would be a really great feature for a lot of people ... I know for sure!
     
    B.Fluehmann likes this.
  3. Timo

    Joined:
    Jun 8, 2017
    Messages:
    2
    Likes Received:
    0
  4. loyer

    Joined:
    May 5, 2016
    Messages:
    43
    Likes Received:
    4
    I also vote +1 for this. I would in particular like to have the ability to get a list of all extensions on the system and be able to query their cell phone numbers and DIDs. I want this to integrate with Twilio SMS. I am currently using Twilio Trunks and can forward text messages to their cell phones but I need to maintain my own database of extensions and cell phone numbers.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    B.Fluehmann likes this.
  5. vpage

    Joined:
    Mar 14, 2011
    Messages:
    7
    Likes Received:
    0
    I also vote +1 for this
     
  6. B.Fluehmann

    Joined:
    Jan 7, 2017
    Messages:
    14
    Likes Received:
    1
    Most important functions for us:
    - Manage Phonebook (add, update, delete entries)
    - Query call-history (global or per extension)
    - Query queue history/statistics
    - Query health information (logs, alerts)
     
    sv9080w3u02 likes this.
  7. Benjamin Fauchald

    Joined:
    Jan 25, 2018
    Messages:
    6
    Likes Received:
    0
    +5

    Do we now have to use a .net service to connect to the REST api?
    Im not sure I understand how to query the call que etc from ruby or any other linux call?
     
  8. voiptoys

    voiptoys Active Member

    Joined:
    Feb 13, 2013
    Messages:
    730
    Likes Received:
    126
    Guys, there is the 3CX Call Control API. To use the API, however, you must attach to it via a .Net Core application. We built an HTTP API for call control actions (makecall, drop, transfer, barge, etc). But please note that the 3CX API is called the "Call Control" API. It does not expose log information for example. You can, however, update extensions, and lots of other things strictly not "call control" functions. To get access to call history, and logging information, you will need to do so outside the API. Take a look at our 3CX Exporter tool for duplicating the call log information into SQL or MySQL. Accessing the 3CX database directly is frowned upon by 3CX support, and doing so must be done with great care (if at all and not recommended). We could easily expand our HTTP API to allow you to do things like update extensions.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...