Configuring access to SOTI API

Solved Locked
CH
Callum Haynes
Microlise Ltd.

We used the tool and ran the command

MCAdmin.exe APIClientAdd -n:[ANY_NAME_YOU_WANT]

we are using the SOTI admin account with these ClientId and ClientSecret

Using the Swagger page we are still unable to query the API, we are getting a 401 unauthorised

We attempted to use the powershell script in:

https://discussions.soti.net/thread/api-call-via-power-shell-to-send-script/

and that returns us a code 400

Any help would be appreciated, thanks.

6 years ago
SOTI MobiControl
ANSWERS
SB
Stuart Barrett
6 years ago
Solution
SB
Stuart Barrett
6 years ago

Did you add the details as below on the Swagger API reference page to test?

MCUsername:MCPassword:ClientID:ClientSecret

CH
Callum Haynes
6 years ago

yes we did

CH
Callum Haynes
6 years ago

That did the trick, thankyou!  :)