API Issue

Status
Not open for further replies.

Mg_PS

Premier Customer
Joined
Sep 12, 2023
Messages
3
Reaction score
0
Good morning,

Following the loss of functionality in V20 which allows reports to be sent to users who do not have extended rights, I would like to recover them via the API.
https://www.3cx.com/docs/configuration-rest-api

Unfortunately, it is not documented enough. I can easily connect, list extensions, and others... But calling the GetExtensionStatisticsData function returns me a 404 error.

Here is the call in question:
HTTP:
GET https://xxxxxxx.xxx:5001/xapi/v1/ReportExtensionStatistics/Pbx.GetExtensionStatisticsData(periodFrom=2024-06-26T00:00:00Z,periodTo=2024-06-26T23:59:59Z,extensionFilter=,callArea= )

Thank you for the feedback,
 
The parameters values should be in single quotes even if empty.
 
Thanks for the fast answer. Unfortunatly same result...

1719491951233.png
What should I put to get all extension ?
What is "CallArea" ?

Thanks
 
Last edited:
Putting "0" in call area does the job.
Thanks
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,843
Messages
589,328
Members
164,680
Latest member
JV J