API only returns 404 Not Found

BrunoTeste

Platinum Partner
Joined
Feb 24, 2022
Messages
10
Reaction score
1
After updating to V20, we lost the daily schedule of the report by time, where we had the schedule for 9 am, 10 am and so on and then the CSV was imported into BI.
As we no longer have this option, we tried to use the new configurations API to obtain the JSON of the calls, however, it only returns 404 without feedback as to which parameter is invalid.
Has anyone managed to use this API for call reporting?

Request example:

curl -v --location 'https://3CX_FQDN/xapi/v1/ReportCallLogData/Pbx.GetCallLogData(periodFrom=2024-10-18T00:00:00Z,periodTo=2024-10-20T23:59:59Z)?%24top=%3C100%3E&%24skip=%3C0%3E' --header 'Accept: application/json' --header 'Authorization: Bearer api_token'
 
DM me. We have a prebuilt solution for you.

FYI all the parameters are required for the function to work.
 
callTimeFilterFrom= and callTimeFilterTo= are strings value, so you need to specify '' if they are empty.
 
callTimeFilterFrom= and callTimeFilterTo= are strings value, so you need to specify '' if they are empty.
Thanks for the help.
Now I receive a 200, but without information, probably due to the sourceType, destinationType and calltype, testing with 0, 1 and 2 but without success.
I tried looking for Enums in the XML that returns, but there are none. Do you have any other tips on what I can put there?
 

Attachments

  • Captura de tela 2024-10-21 170830.png
    Captura de tela 2024-10-21 170830.png
    81 KB · Views: 24
  • Captura de tela 2024-10-21 171221.png
    Captura de tela 2024-10-21 171221.png
    75.1 KB · Views: 23
I tried looking for Enums in the XML that returns, but there are none. Do you have any other tips on what I can put there?

Have you tried reaching out to ConceptsWeb here ?
Personally, I would start there. If they have documented the various parameters, it will save you a lot of time!
It’s not that I don’t want to help, but I haven’t worked with the 3CX CallLog XAPI yet.
I guided you regarding the string parameters because I quickly noticed some were missing at first glance, after briefly reviewing it (Reverse Engineering).

DM me. We have a prebuilt solution for you.
 
Have you tried reaching out to ConceptsWeb here ?
Personally, I would start there. If they have documented the various parameters, it will save you a lot of time!
It’s not that I don’t want to help, but I haven’t worked with the 3CX CallLog XAPI yet.
I guided you regarding the string parameters because I quickly noticed some were missing at first glance, after briefly reviewing it (Reverse Engineering).
Thank you very much for your help, I managed to identify what was missing and I can now consume the reports normally!
 
Thanks for the reply. I'm using Version 20.0 Update 4 (Build 484 Beta) and I'm referring to the swagger.yaml as the endpoint