Creating an API User and Generating API Tokens in Kaseya VSA
Creating the API User
-
Log into the Client VSA and navigate to System > Server Management > Default Settings.
-
Take note of the current setting "Require email address for user name". If this is set to 'Yes', change this setting to No.
-
Next, go to System > Users.
-
Click "New"
-
Enter the following information in the fields:
- Email Address: support@provaltech.com
- Initial Role: Master or System
- Initial Scope: Master or System
- First Name: API
- Last name: Service
- Staff Org: Select the Client's internal Organization
- Staff Dept: Select the Client's internal Department
- Staff member: Leave the default "--Create new staff member--"
- User Name: provalApi
- Password:
- Generate a random 16char + password in ITGlue
- Confirm Password: Enter the same password as above.
- Require Password change at next login: Leave unchecked.
-
Click Save.
-
Save these credentials in an ITG password as "Kaseya - API"
Generating API Tokens
-
Now that the API User is created, select it in the list and click on the "Access Tokens" tab at the right.
-
Click New and fill the following properties:
- Token Name: REST API
- Expires after the date: Leave Blank
- Scopes Assigned: Check ONLY "REST API (Read, Write)"
-
Click Save
-
Once you click save, the token window will pop up. Copy the token to the clipboard, and IMMEDIATELY save this information in the ITGlue API User you created earlier in the process, in the Notes field, as:
REST API Token: TOKEN
-
Once that's done, close the token window, and click "New" again. We will now create a Data Warehouse token. Fill the following properties:
- Token Name: DataWarehouse API
- Expires after the date: Leave Blank
- Scopes Assigned: Check ONLY "Data Warehouse API (Read, Write)"
-
Click Save
-
Once you click save, the token window will pop up. Copy the token to the clipboard, and IMMEDIATELY save this information in the ITGlue API User you created earlier in the process, in the Notes field, as:
DW API Token: TOKEN