From an external app I would like to change the presence status of a user via an API. I was not able to figure out if there is a public API but found this js code that supposedly works in an apex vf page:
sforce.console.presence.setServicePresenceStatus(statusId, function(result) { ... });
I guess as it is running in the page it will switch the status of the logged in user. Now I need to do this from an external service. I have a very limited knowledge of Salesforce and just figuring out what is what, but so far I am thinking on this:
Somehow I would send in a platform event from my Python app (unsure yet how). I would create an apex vf page that subscribes to the platform event and runs the above code for that user.
Would this work? Can an apex page subscribe to a platform event that is coming in from an external app using some API?
Any help or pointers would be highly appreciated.