I am trying to connect the API to Power Automate but I cannot seem to figure out the authentication.
Has anyone else tried this before?
I am trying to connect the API to Power Automate but I cannot seem to figure out the authentication.
Has anyone else tried this before?
This worked perfectly for me. I just can't figure out how SendMessage is formatted now


Hi Mitchell,
Great to hear. The below should work for you.
Method:POST
URI: https://<SERVERID>.mobicontrolcloud.com/mobicontrol/api/devices/<DEVICEID>/actions
Authorization: Bearer Token
Body:
{
"Action": "SendMessage",
"Message": "Test",
"SendBy": "MobiControl",
"QueueForOfflineDelivery": "true",
"DisplayDuration": "UntilPressOk",
"MessageType": "Information"
}
I imagine only action and message are required in the body, but worth knowing the other parmeters too.
FYI:
If you need to get DeviceID, then get all devices and DeviceID is listed as one of the returned value pairs
In my above image I get Device ID based on a search for Hardware Serial (Note these need to be URL encoded (twice is think)
FYI:
The documentation is fairly limited on APIs, one of the most helpful pieces of advice I had when using the APIs was the following. In Mobicontrol, select your device and choose your action e.g. SendMessage. Before pressing send, press F12, network and expand the action. This (in come cases) give you an idea of what the Method/URI/Body etc are for the actions. They wont always give you the exact answer youre looking for but are usually more helpful than the documentation.
Hi Mitchell
Thanks for posting on SOTI Pulse and thanks Adam for responding to the post.
I am glad to see that you found the resolution to Adam's suggestions.
Feel free to reach out to Technical support if you have any other queries.
Thank you.
Kind regards,
Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |