Pbx integration

Have been looking at integrating a pbx we work with and would like to get some input.

We have looked at the REST api for ERPNext and are having trouble with what we need.

Here is an example of what we need to call from the pbx to build the app:
We have tried to map to something like this but know this is not correct and of course does not work

Based on this here: