Creating an API Client Using the Command Prompt
Before you begin
About this task
-
Authenticate securely when you connect external systems or tools to SOTI MobiControl.
-
Automate administrative tasks by sending Representational State Transfer (REST) API calls.
-
Experiment with the REST API in an interactive environment.
-
Integrate with third party applications.
Note: Use this method for versions earlier than SOTI MobiControl 2024.0.
Procedure
- Launch a Windows command prompt with administrative privileges.
- Navigate to the SOTI MobiControl directory.
-
Run the following command:
MCAdmin.exe APIClientAdd -n:{API client name} [-p:{API secret}] [-r:{Redirect URI}]
Specify the parameters as follows:- API client name is a reference to your integrated application.
- API secret (optional) is the passphrase used to protect the API. Store it securely because you cannot recover it if lost. If you do not provide one, the system generates it automatically.
- Redirect URI (optional) is the destination endpoint. The authorization server returns the user agent here.
Results
When you enter the
APIClientAdd
command with the correct parameters,
the SOTI MobiControl
Administration Utility returns a summary showing the generated Client ID
and Client secret.Note: Copy and securely store the client ID
and client secret before closing the dialog. You cannot retrieve the client
secret later.