The Phonebar API
The XCALLY Phonebar provides CTI capabilities to call external application on one hand and many API to allow your applications to control the phonebar and perform several operations.
API are easy to be called via http requests. The API answers are available via http JSON standard requests (XML is not supported).
Endpoints are documented with the HTTP method for the request and a partial resource identifier.
Example:
GET /api/calls
Prepend your Motion Phonebar URL to the resource identifier to get the full endpoint URL:
http://domain:port/api/calls
Default port is the 9888 (you can change the port inside the Motion GUI section agent/motiobar/advanced)
Curly braces, {}, indicate values you have to supply.
Example:
GET /api/answer/{sessionId}
The examples in the docs are cURL statements. You can run the statements on a command line to try out different API requests.
Warning |
---|
In order to enable APIs, please see the configuration steps Here |
Info |
---|
Please note we can update APIs from time to time |
Panel | ||
---|---|---|
| ||
|
Example
Here you can download a html/javascript file to use as Motion Phonebar API example.
In particular you will see how to:
- manage the Motion Phonebar status
- manage a call, inserting the phone number as input
- manage a direct call to a specific agent (i.e. john doe)
- manage active calls
You just need to launch the html file, after the Motion Phonebar login, to get the result: