Authentication via the OAuth 1.0 protocol
This protocol defines a way by which different servers can work together over a series of steps to authenticate and provide access to a user.
A full set of keys and secrets is already in place for the Administrator, these can be seen in the UI under Settings > Access.
As the initial steps are already done, no further registration/authentication etc. needs to be performed.
An API client can simply provide the required oauth_signature to authorise a request to a protected resource.
Please note:
Customers can also connect to the API to perform operations restricted to their own account. Customer users created via the API will automatically have a full set of keysand secrets created. Customers created via the UI will not have a set of keys and secrets. However, the admin can create the keys and secrets on their behalf using the adminregister endpoint.
access_token lifetime is 24h, refresh_token lifetime is 30 days
The Authorization Code grant with 'Proof Key for Code Exchange' (PKCE) is a secure way to authenticate single page applications or native applications to access your API.
A combination of a 'code verifier' and a 'code challenge' replaces the client secret when exchanging the authorization code for an access token.
A PCKE-enabled client generated will be used to authorize the application. For instance
As this authorization grant does not provide a client secret, a combination of a code verifier and a code challenge is used in order to request a token.
The following parameters are needed to retrieve an access_token/refresh_token:
<username>
<password>
S256
<users client ID>
{{url}}/restapi/oauth/callback
This endpoint performs a few redirects and if successful returns the access_token/refresh_token to be used for any further request.
Bearer token format is JWT with the following additional claims on it:
Field / Claim | Role(s) | Description |
---|---|---|
vue_role | all | (integer) id of the one of 4 Vue roles |
name | all | (string) administrator's fullname |
all | (string) administrator's username, which in practice is always email except main admin with id 1 | |
2fa_enabled | all | (boolean integer) 1 - enabled, 0 - disabled 2FA; calculated base on the number of 2FA setups for administrator. If no 2FA setup records then it is set to zero(disabled) |
msp_id | MSP | (integer) id of the MSP |
user_id | Customer | (integer) id of the customer/user |
account_name | Customer MSP | (string) Customer's account name (string) MSP's account name |
Security Scheme Type | OAuth2 |
---|---|
authorizationCode OAuth Flow | Authorization URL: {{url}}/restapi/oauth/authorize Token URL: {{url}}/restapi/oauth/token Refresh URL: {{url}}/restapi/token/refresh Scopes:
|
Send a batch request to execute multiple endpoint requests concurrently
system
sales
msp
customer
) object The request-key pair (example: create-user) |
{- "request-key": {
- "method": "POST",
- "path": "users/",
- "parameters": {
- "accountname": "HappyCustomer 1",
- "email": "HappyCustomer1@email.com",
- "password": "newpassword",
- "license": "LICNO1234"
}
}
}
{- "create-user": {
- "code": 200,
- "response": {
- "object": "user",
- "code": "200",
- "id": "1",
- "created": "2018-06-25 10:03:56",
- "accountname": "John",
- "description": "Example User",
- "timezone": "Europe/London",
- "email": "email@example.com",
- "license": "WCE-M-0000-005599",
- "lastlogin": "2018-06-26 10:03:56",
- "install_key": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "2fa_enabled": false,
- "suspended": false,
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062"
}
}
}
Download machine's active SSL certificate file in one of formats: .der(Windows) and .pem
type | string Enum: "der" "pem" The type of the certificate to download; default: der |
{- "code": 400,
- "error": "Error: The selected format is invalid."
}
Get list of all machine certificates details
system
sales
) {- "object": "list",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "object": "ssl_cert",
- "issuer": "TitnaHQ",
- "commonname": "WebTitanCloud",
- "serialnumber": "62:9d:2b:a8:4e:b9:98:3a:f5:f5:19:e4:93:17:ee:9a:e3:64:18:94",
- "expires": "2022-02-01 12:22:33",
- "filename": "wt_WfPwci.pem"
}
]
}
system
sales
) SSL certificate object for creating
duration required | integer [ 1 .. 10 ] Certificate duration in years |
common_name required | string SSL Certificate Common Name (CN) |
organization required | string Organization (O) |
unit required | string Organization Unit (OU) |
city required | string |
state required | string State or province |
country_code required | string 2 characters Country code according to list at https://www.digicert.com/kb/ssl-certificate-country-codes.htm |
{- "duration": 1,
- "common_name": "WebTitan Cloud",
- "organization": "TitanHQ",
- "unit": "Engineering Department",
- "city": "Galway",
- "state": "Galway",
- "country_code": "st"
}
{- "object": "ssl_cert",
- "code": 200,
- "issuer": "TitnaHQ",
- "commonname": "WebTitanCloud",
- "serialnumber": "62:9d:2b:a8:4e:b9:98:3a:f5:f5:19:e4:93:17:ee:9a:e3:64:18:94",
- "expires": "2022-02-01 12:22:33",
- "filename": "wt_WfPwci.pem"
}
Get single machine certificate details
system
sales
) id required | string <string> SSL certificate serial number |
{- "object": "ssl_cert",
- "code": 200,
- "issuer": "TitnaHQ",
- "commonname": "WebTitanCloud",
- "serialnumber": "62:9d:2b:a8:4e:b9:98:3a:f5:f5:19:e4:93:17:ee:9a:e3:64:18:94",
- "expires": "2022-02-01 12:22:33",
- "filename": "wt_WfPwci.pem"
}
Delete a specific SSL certificate for machine
system
sales
) id required | string <string> SSL certificate serial number |
{- "object": "ssl_cert",
- "code": 200,
- "issuer": "TitnaHQ",
- "commonname": "WebTitanCloud",
- "serialnumber": "62:9d:2b:a8:4e:b9:98:3a:f5:f5:19:e4:93:17:ee:9a:e3:64:18:94",
- "expires": "2022-02-01 12:22:33",
- "filename": "wt_WfPwci.pem"
}
Get machine's active certificate details
system
sales
) {- "object": "ssl_cert",
- "code": 200,
- "issuer": "TitnaHQ",
- "commonname": "WebTitanCloud",
- "serialnumber": "62:9d:2b:a8:4e:b9:98:3a:f5:f5:19:e4:93:17:ee:9a:e3:64:18:94",
- "expires": "2022-02-01 12:22:33",
- "filename": "wt_WfPwci.pem"
}
Set the active SSL certificate for machine
system
sales
) Details of machine SSL certificate to be set as active
id required | string <string> SSL certificate serial number |
{- "id": "62:9d:2b:a8:4e:b9:98:3a:f5:f5:19:e4:93:17:ee:9a:e3:64:18:94"
}
{- "object": "ssl_cert",
- "code": 200,
- "issuer": "TitnaHQ",
- "commonname": "WebTitanCloud",
- "serialnumber": "62:9d:2b:a8:4e:b9:98:3a:f5:f5:19:e4:93:17:ee:9a:e3:64:18:94",
- "expires": "2022-02-01 12:22:33",
- "filename": "wt_WfPwci.pem"
}
Download specific machine certificate
system
sales
) id required | string <string> SSL certificate serial number |
{- "code": 400,
- "error": "Error: The id may not be greater than 59 characters."
}
List a customer's cloud keys
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
offset | integer <int64> Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 2,
- "data": [
- {
- "object": "cloudkey",
- "id": 2,
- "logname": "sales",
- "keyid": "47D98D411F089",
- "expiresafter": 2,
- "expiresafterperiod": "days",
- "maxuse": 1000,
- "validfrom": "2018-01-01",
- "validto": null,
- "active": false,
- "comment": "desc",
- "timeused": 1,
- "created": "2018-07-17 15:58:58",
- "lastused": null,
- "lastip": null
}
]
}
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
logname | string Cloud key name used in reporting |
keyid | string Key ID for users to use the cloud key |
expiresafter | integer The amount of time a cloud key will expire after its first use |
expiresafterperiod | string Expire after time units (days, hours, mins). Used with expiresafter field |
maxuse | integer Maximum number of times the cloud key can be used |
validfrom | string When the cloud key will take effect (YYYY-MM-DD). Defaults to current date |
validto | string When the cloud key will expire (YYYY-MM-DD) |
active | boolean Specify whether the key can be used (true / false) |
comment | string comment |
{- "logname": "sales",
- "keyid": "47D98D411F089",
- "expiresafter": 2,
- "expiresafterperiod": "days",
- "maxuse": 1000,
- "validfrom": "2018-01-01",
- "validto": null,
- "active": false,
- "comment": "desc"
}
{- "object": "cloudkey",
- "id": 2,
- "logname": "sales",
- "keyid": "47D98D411F089",
- "expiresafter": 2,
- "expiresafterperiod": "days",
- "maxuse": 1000,
- "validfrom": "2018-01-01",
- "validto": null,
- "active": false,
- "comment": "desc",
- "timeused": 1,
- "created": "2018-07-17 15:58:58",
- "lastused": null,
- "lastip": null
}
Get a particular cloudkey by ID
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
cloudkeyid required | integer <int64> Cloud key identifier |
{- "object": "cloudkey",
- "id": 2,
- "logname": "sales",
- "keyid": "47D98D411F089",
- "expiresafter": 2,
- "expiresafterperiod": "days",
- "maxuse": 1000,
- "validfrom": "2018-01-01",
- "validto": null,
- "active": false,
- "comment": "desc",
- "timeused": 1,
- "created": "2018-07-17 15:58:58",
- "lastused": null,
- "lastip": null
}
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
cloudkeyid required | integer <int64> Cloud Key Identifier |
logname | string Cloud key name used in reporting |
keyid | string Key ID for users to use the cloud key |
expiresafter | integer The amount of time a cloud key will expire after its first use |
expiresafterperiod | string Expire after time units (days, hours, mins). Used with expiresafter field |
reset | boolean Reset the times used count to zero |
maxuse | integer Maximum number of times the cloud key can be used |
validfrom | string When the cloud key will take effect (YYYY-MM-DD). Defaults to current date |
validto | string or null When the cloud key will expire (YYYY-MM-DD) |
active | boolean Specify whether the key can be used (true / false) |
comment | string comment |
{- "logname": "sales",
- "keyid": "47D98D411F089",
- "expiresafter": 2,
- "expiresafterperiod": "days",
- "reset": false,
- "maxuse": 1000,
- "validfrom": "2018-01-01",
- "validto": null,
- "active": false,
- "comment": "desc"
}
{- "object": "cloudkey",
- "id": 2,
- "logname": "sales",
- "keyid": "47D98D411F089",
- "expiresafter": 2,
- "expiresafterperiod": "days",
- "maxuse": 1000,
- "validfrom": "2018-01-01",
- "validto": null,
- "active": false,
- "comment": "desc",
- "timeused": 1,
- "created": "2018-07-17 15:58:58",
- "lastused": null,
- "lastip": null
}
Delete a cloud key
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
cloudkeyid required | integer <int64> Cloud key identifier |
{- "code": 200,
- "deleted": true,
- "id": 1
}
List and download available log files. A customer admin can list and download their own log files. A system or MSP admin can list and download all customer log files.
A Customer admin can get a list of all log files. A System/MSP admin can specify a customer UUID and get a list of log files for that customer. Log files are retained for 35 days and made available in GZIP format.
system
sales
msp
customer
) list_type | integer <int64> This is an optional parameter that is defined in s3api. If a value is passed, it must be 2. |
prefix | string Example: prefix=0130ae8f-3712-4dad-9e1b-f2ad5ebc136c/2022-07-13 For System/MSP admin, prefix must contain a valid customer UUID (use Get Customer Account). Prefix is not required for a customer admin, unless you want to get logs for a specific date. To get logs for a specific date, append that date to the UUID in YYYY-MM-DD format. |
{- "object": "logs",
- "code": 200,
- "data": [
- "0130ae8f-3712-4dad-9e1b-f2ad5ebc136c/2022-07-13/filename-with-timestamp.extension",
- "0130ae8f-3712-4dad-9e1b-f2ad5ebc136c/2022-07-13/filename-with-timestamp.extension"
]
}
A Systems or MSP admin can download all log files from a specified date for a specified customer. Log files are retained for 35 days and made available in GZIP format.
system
sales
msp
customer
) uuid required | string Example: 0130ae8f-3712-4dad-9e1b-f2ad5ebc136c The customer UUID (use Get Customer Account) for the customer who's log files you want to download. |
date required | string Example: 2022-07-13 The specific date you want to download log files for in YYYY-MM-DD format. |
{- "code": 400,
- "error": "Error: Uuid cannot be empty"
}
A Customer admin can download all log files for a specified date. Log files are retained for * 35 days and made available in GZIP format.
system
sales
msp
customer
) date required | string Example: 2022-07-21 The specific date you want to download log files for in YYYY-MM-DD format. |
{- "code": 400,
- "error": "Error: The date does not match the format Y-m-d."
}
A Systems or MSP admin can download a single log file for a specified date and customer. Log files are retained for 35 days and made available in GZIP format.
system
sales
msp
customer
) uuid required | string Example: 056e2235-00f7-4494-9149-cbedbb5bd9db The customer UUID (use Get Customer Account) for the customer who's log files you want to download. |
date required | string Example: 2022-07-13 The specific date you want to download log files for in YYYY-MM-DD format. |
filename required | string Example: 1100.wtc.json.gz The filename of the single log file you want to download (use List all Customer Log Files to get file name). |
{- "code": 400,
- "error": "Error: Uuid cannot be empty"
}
A Customer admin can download a single log file for a specified date. Log files are retained for 35 days and made available in GZIP format.
system
sales
msp
customer
) date required | string Example: 2022-07-13 The specific date you want to download log files for in YYYY-MM-DD format. |
filename required | string Example: 1100.wtc.json.gz The filename of the single log file you want to download (use List all Customer Log Files to get file name). |
{- "code": 400,
- "error": "Error: Customer uuid entered is invalid"
}
List, Get, Update and Delete customer devices. These endpoints do not have * support for MSP layer. Please refer to the General Devices endpoints for MSP support.
Get the list of all the customer devices
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
policyid | integer <int64> [ 1 .. 2147483647 ] Customer Policy ID |
location_id | integer <int64> [ 1 .. 2147483647 ] Location Identifier |
{- "object": "object",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "id": 1,
- "name": "Claude-PC",
- "key": "3cfa0937-763b-4977-bbd4-b38e4324c637",
- "version": "2.0.1",
- "last_contact": "2021-05-18 11:37:35",
- "status": "DEVICE CONFIGURATION: CREATED",
- "location": "Dublin",
- "location_id": 3,
- "user": "claude@example.local",
- "user_id": 3,
- "extra_info": "{'info':'some extra info'}",
- "configuration": "{'filter:{'type':'value'}}",
- "configuration_inherited": false,
- "policyid": 3,
- "policyname": "Default Policy",
- "device_exception": "Device Exception Name",
- "created": "2021-05-18 11:37:16",
- "modified": "2021-05-18 11:37:16"
}
]
}
Get the customers OTG key
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
{- "object": "otgkey",
- "code": 200,
- "key": "5957356a-e77e-476c-ae3d-153a440d2d6a"
}
Regenerate the customers OTG key
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
{- "object": "otgkey",
- "code": 200,
- "reset": "true"
}
Get a single customer device
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
deviceid required | integer <int64> [ 1 .. 2147483647 ] Device identifier |
{- "object": "device",
- "code": 200,
- "id": 1,
- "name": "Claude-PC",
- "key": "3cfa0937-763b-4977-bbd4-b38e4324c637",
- "version": "2.0.1",
- "last_contact": "2021-05-18 11:37:35",
- "status": "DEVICE CONFIGURATION: CREATED",
- "location": "Dublin",
- "location_id": 3,
- "user": "claude@example.local",
- "user_id": 3,
- "extra_info": "{'info':'some extra info'}",
- "configuration": "{'filter:{'type':'value'}}",
- "configuration_inherited": true,
- "policyid": 3,
- "policyname": "Default Policy",
- "created": "2021-05-18 11:37:16",
- "modified": "2021-05-18 11:37:16"
}
Update a single customer device
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
deviceid required | integer <int64> [ 1 .. 2147483647 ] Device identifier |
name | string <= 250 characters |
location_id | integer >= 1 |
device_exception_id | integer >= 1 |
{- "name": "Claude-PC",
- "location_id": 3,
- "device_exception_id": 3
}
{- "object": "device",
- "code": 200,
- "id": 1,
- "name": "Claude-PC",
- "key": "3cfa0937-763b-4977-bbd4-b38e4324c637",
- "version": "2.0.1",
- "last_contact": "2021-05-18 11:37:35",
- "status": "DEVICE CONFIGURATION: CREATED",
- "location": "Dublin",
- "location_id": 3,
- "user": "claude@example.local",
- "user_id": 3,
- "extra_info": "{'info':'some extra info'}",
- "configuration": "{'filter:{'type':'value'}}",
- "configuration_inherited": true,
- "policyid": 3,
- "policyname": "Default Policy",
- "created": "2021-05-18 11:37:16",
- "modified": "2021-05-18 11:37:16"
}
Delete a single customer device
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
deviceid required | integer <int64> [ 1 .. 2147483647 ] Device identifier |
{- "code": 200,
- "deleted": true,
- "id": 48
}
Get Device Default Configuration (Default Policy)
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
{- "object": "deviceconfiguration",
- "code": 200,
- "policy_id": "10",
- "device_exception_id": "10"
}
Update a device's default policy for a specific device
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
policy_id | integer Policy Identifier |
{- "policy_id": 10
}
{- "object": "deviceconfiguration",
- "code": 200,
- "policy_id": "10",
- "device_exception_id": "10"
}
Get device configuration template
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
{- "object": "deviceconfiguration_advanced",
- "code": 200,
- "configuration": {
- "filter": [
- null
]
}
}
Update device configuration template
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
configuration | string json formatted string |
{- "configuration": "{'filter:{'type':'value'}}"
}
{- "object": "deviceconfiguration_advanced",
- "code": 200,
- "configuration": {
- "filter": [
- null
]
}
}
Reset device configuration template, Reset uses delete request
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
{- "object": "deviceconfiguration_advanced",
- "code": 200,
- "reset": true
}
Update a specific device configuration
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
deviceid required | integer <int64> >= 1 Device identifier |
configuration | string json formatted string |
{- "configuration": "{'filter:{'type':'value'}}"
}
{- "object": "deviceconfiguration_advanced",
- "code": 200,
- "configuration": {
- "filter": [
- null
]
}
}
Reset device configuration for a customer device, Reset uses delete request
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
deviceid required | integer <int64> [ 1 .. 2147483647 ] Device identifier |
{- "object": "deviceconfiguration_advanced",
- "code": 200,
- "reset": true
}
Get a list of all the MSP customer's devices. You can filter the devices either by msp_id or user_id
system
sales
msp
customer
) msp_id | integer <int64> [ 0 .. 2147483647 ] MSP Account Identifier |
user_id | integer <int64> [ 0 .. 2147483647 ] Customer Account Identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
policyid | integer <int64> [ 1 .. 2147483647 ] Customer Policy ID |
location_id | integer <int64> [ 1 .. 2147483647 ] Location Identifier |
{- "object": "object",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "id": 1,
- "name": "Claude-PC",
- "key": "3cfa0937-763b-4977-bbd4-b38e4324c637",
- "version": "2.0.1",
- "last_contact": "2021-05-18 11:37:35",
- "status": "DEVICE CONFIGURATION: CREATED",
- "location": "Dublin",
- "location_id": 3,
- "user": "claude@example.local",
- "user_id": 3,
- "extra_info": "{'info':'some extra info'}",
- "configuration": "{'filter:{'type':'value'}}",
- "configuration_inherited": false,
- "policyid": 3,
- "policyname": "Default Policy",
- "device_exception": "Device Exception Name",
- "created": "2021-05-18 11:37:16",
- "modified": "2021-05-18 11:37:16"
}
]
}
Get a device for an MSP Customer
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Device Identfieir |
{- "object": "device",
- "code": 200,
- "id": 1,
- "name": "Claude-PC",
- "key": "3cfa0937-763b-4977-bbd4-b38e4324c637",
- "version": "2.0.1",
- "last_contact": "2021-05-18 11:37:35",
- "status": "DEVICE CONFIGURATION: CREATED",
- "location": "Dublin",
- "location_id": 3,
- "user": "claude@example.local",
- "user_id": 3,
- "extra_info": "{'info':'some extra info'}",
- "configuration": "{'filter:{'type':'value'}}",
- "configuration_inherited": true,
- "policyid": 3,
- "policyname": "Default Policy",
- "created": "2021-05-18 11:37:16",
- "modified": "2021-05-18 11:37:16"
}
Update a device for an MSP Customer
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Device Identfieir |
name | string <= 250 characters |
location_id | integer >= 1 |
device_exception_id | integer >= 1 |
{- "name": "Claude-PC",
- "location_id": 3,
- "device_exception_id": 3
}
{- "object": "device",
- "code": 200,
- "id": 1,
- "name": "Claude-PC",
- "key": "3cfa0937-763b-4977-bbd4-b38e4324c637",
- "version": "2.0.1",
- "last_contact": "2021-05-18 11:37:35",
- "status": "DEVICE CONFIGURATION: CREATED",
- "location": "Dublin",
- "location_id": 3,
- "user": "claude@example.local",
- "user_id": 3,
- "extra_info": "{'info':'some extra info'}",
- "configuration": "{'filter:{'type':'value'}}",
- "configuration_inherited": true,
- "policyid": 3,
- "policyname": "Default Policy",
- "created": "2021-05-18 11:37:16",
- "modified": "2021-05-18 11:37:16"
}
Delete a device for an MSP Customer
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Device Identfieir |
{- "code": 200,
- "deleted": true,
- "id": 48
}
Get a list of all the device exceptions for the user. If logged in as admin you can pass user_id as a query param to get the list of device exceptions for the user.
system
sales
msp
customer
) user_id | integer <int64> [ 0 .. 2147483647 ] Customer Account Identifier |
{- "object": "device_exception",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "id": 1,
- "name": "Claude-PC",
- "description": "Device exception created",
- "rules": 5,
- "devices": 3,
- "default": "2021-05-18 11:37:16",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
]
}
Create a new device exception for users
system
sales
msp
customer
) user_id | integer <int64> [ 0 .. 2147483647 ] Customer Account Identifier |
name | string <= 250 characters |
description | string <= 2000 characters |
{- "name": "Device Exception",
- "description": "Device Exception "
}
{- "object": "device_exception",
- "code": 200,
- "id": 1,
- "name": "Claude-PC",
- "description": "Device exception created",
- "rules": 0,
- "devices": 0,
- "default": "2021-05-18 11:37:16",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
Get a single device exception
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Device Exception identifier |
{- "object": "device_exception",
- "code": 200,
- "id": 1,
- "name": "Claude-PC",
- "description": "Device exception created",
- "rules": 0,
- "devices": 0,
- "default": "2021-05-18 11:37:16",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
Update a single update device exception
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Device Exception identifier |
name | string <= 250 characters |
description | string <= 2000 characters |
{- "name": "Device Exception",
- "description": "Device Exception "
}
{- "object": "device_exception",
- "code": 200,
- "id": 1,
- "name": "Claude-PC",
- "description": "Device exception created",
- "rules": 0,
- "devices": 0,
- "default": "2021-05-18 11:37:16",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
Delete a single device exception
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Device Exception identifier |
{- "code": 200,
- "deleted": true,
- "id": 48
}
List all device exception rules for the device exception id passed
system
sales
msp
customer
) exceptionid required | integer <int64> [ 1 .. 2147483647 ] Device Exception Identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "object": "device_exception_rule",
- "id": 1,
- "description": "Device exception rule created",
- "domain": "google.com",
- "ip": "192.23.32.32",
- "resolver": "152.23.32.32",
- "rule_type": "ByPass OTG",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
]
}
Create a new device exception rule for the exception
system
sales
msp
customer
) exceptionid required | integer <int64> [ 1 .. 2147483647 ] Device Exception Identifier |
domain | string <= 250 characters |
description | string <= 2000 characters |
ip | string |
resolver | string |
device_exception_rule_type_id | integer [ 1 .. 2 ] |
{- "domain": "google.com",
- "description": "Device Exception Rule",
- "ip": "192.134.23.32",
- "resolver": "154.134.23.32",
- "device_exception_rule_type_id": "1"
}
{- "object": "device_exception_rule",
- "code": 200,
- "id": 1,
- "description": "Device exception rule created",
- "domain": "google.com",
- "ip": "192.23.32.32",
- "resolver": "152.23.32.32",
- "rule_type": "ByPass OTG",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
Get a specific device exception rule for the device exception rule id passed
system
sales
msp
customer
) exceptionid required | integer <int64> [ 1 .. 2147483647 ] Device Exception Identifier |
id required | integer <int64> [ 1 .. 2147483647 ] Device Exception Rules Identifier |
{- "object": "device_exception_rule",
- "code": 200,
- "id": 1,
- "description": "Device exception rule created",
- "domain": "google.com",
- "ip": "192.23.32.32",
- "resolver": "152.23.32.32",
- "rule_type": "ByPass OTG",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
Update a specific device exception rule for the device exception rule id passed
system
sales
msp
customer
) exceptionid required | integer <int64> [ 1 .. 2147483647 ] Device Exception Identifier |
id required | integer <int64> [ 1 .. 2147483647 ] Device Exception Rules Identifier |
domain | string <= 250 characters |
description | string <= 2000 characters |
ip | string |
resolver | string |
device_exception_rule_type_id | integer [ 1 .. 2 ] |
{- "domain": "google.com",
- "description": "Device Exception Rule",
- "ip": "192.134.23.32",
- "resolver": "154.134.23.32",
- "device_exception_rule_type_id": "1"
}
{- "object": "device_exception_rule",
- "code": 200,
- "id": 1,
- "description": "Device exception rule created",
- "domain": "google.com",
- "ip": "192.23.32.32",
- "resolver": "152.23.32.32",
- "rule_type": "ByPass OTG",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
Delete a specific device exception rule for the device exception rule id passed
system
sales
msp
customer
) exceptionid required | integer <int64> [ 1 .. 2147483647 ] Device Exception Identifier |
id required | integer <int64> [ 1 .. 2147483647 ] Device Exception Rules Identifier |
{- "object": "device_exception_rule",
- "code": 200,
- "id": 1,
- "description": "Device exception rule created",
- "domain": "google.com",
- "ip": "192.23.32.32",
- "resolver": "152.23.32.32",
- "rule_type": "ByPass OTG",
- "created_at": "2021-05-18 11:37:16",
- "updated_at": "2021-05-18 11:37:16"
}
List global domains based on allow, block or all
system
sales
msp
) action required | string Examples:
Action can be either allow, block or all. |
offset | integer <int64> Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "block",
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 1,
- "policyname": "Default"
}
]
}
system
sales
msp
) action required | string Examples:
Action can be either be allow or block |
domain required | string |
subdomains | boolean |
log_requests | boolean |
comment | string <= 250 characters |
{- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Get a global blocked domain entry
system
sales
msp
) action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain identifier |
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
system
sales
msp
) action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain identifier |
domain required | string |
subdomains | boolean |
log_requests | boolean |
comment | string <= 250 characters |
{- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Delete a global domain entry based on action
system
sales
msp
) action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain identifier |
{- "code": 200,
- "deleted": true,
- "id": 13
}
system
sales
msp
) action required | string Examples:
Action can be either be allow or block |
overwrite | boolean Default: false Example: overwrite=true Overwrite boolean (set true to overwrite domains) |
Array of objects (createGlobalDomain) |
{- "": [
- {
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
]
}
{- "": [
- {
- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
List all the customer's domains based on action type. * Action type is either allow, block or all
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
action required | string Examples:
action is either allow, block or all |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "object",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "allow",
- "id": 5,
- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Allow access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
List customer's default domains based on action
system
sales
msp
customer
) id required | integer <int64> [ 0 .. 2147483647 ] Customer identifier |
action required | string Examples:
Action can be either be allow or block |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "object",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "allow",
- "id": 5,
- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Allow access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
action required | string Examples:
Action can be either be allow or block |
domain required | string |
subdomains | boolean Default: true |
log_requests | boolean Default: true |
comment | string <= 250 characters |
{- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Get a customer's default domain entry by action
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain identifier |
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain identifier |
domain required | string |
subdomains | boolean Default: true |
log_requests | boolean Default: true |
comment | string <= 250 characters |
{- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Delete a default domain entry for a customer based on action
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain identifier |
{- "code": 200,
- "deleted": true,
- "id": 13
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
action required | string Examples:
Action can be either be allow or block |
overwrite | boolean Default: false Example: overwrite=true Overwrite boolean (set true to overwrite domains) |
csv | string <csv> Import Domain via CSV |
{- "object": "object",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "allow",
- "id": 5,
- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Allow access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
policyid required | integer <int64> Policy identifier |
action required | string Examples:
Action can be either be allow or block |
overwrite | boolean Default: false Example: overwrite=true Overwrite boolean (set true to overwrite domains) |
csv | string <csv> Import Domain via CSV |
{- "object": "object",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "allow",
- "id": 5,
- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Allow access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
List customer's domain based on action type. Action type is either allow, block or all
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
policyid required | integer <int64> >= 1 Policy identifier |
action required | string Examples:
action is either allow, block or all |
offset | integer <int64> >= 0 Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> >= 0 Number of items to return |
{- "object": "object",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "allow",
- "id": 5,
- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Allow access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
Get a customer's domain entry based on allow or block
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
policyid required | integer <int64> >= 1 Policy identifier |
action required | string Examples:
action is either allow or block |
domainid required | integer <int64> >= 1 Domain identifier |
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
policyid required | integer <int64> >= 1 Policy identifier |
action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> >= 1 Domain identifier |
domain required | string |
subdomains | boolean Default: true |
log_requests | boolean Default: true |
comment | string <= 250 characters |
{- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Delete a allowed domain entry for a customer for a specific policy
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
policyid required | integer <int64> Policy identifier |
action required | string Examples:
Action can be either be allow or block |
domainid required | integer <int64> Domain identifier |
{- "code": 200,
- "deleted": true,
- "id": 13
}
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
policyid required | integer <int64> >= 1 Policy identifier |
action required | string Examples:
Action can be either be allow or block |
domain required | string |
subdomains | boolean Default: true |
log_requests | boolean Default: true |
comment | string <= 250 characters |
{- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Domains for a policy type. If no user type is given (user_id or msp_id) * with the policyid as default the global domains are considered.
List Policy Domains
system
sales
msp
customer
) required | integer or string Policy Identifier |
action required | string Enum: "allow" "block" "all" Action Type |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "object",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "allow",
- "id": 5,
- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Allow access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
Create A Policy Domain
system
sales
msp
customer
) required | integer or string Policy Identifier |
action required | string Enum: "allow" "block" Action Type |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
domain required | string |
subdomains | boolean Default: true |
log_requests | boolean Default: true |
comment | string <= 250 characters |
{- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Get a policy domain
system
sales
msp
customer
) required | integer or string Policy Identifier |
action required | string Enum: "allow" "block" Action Type |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain Identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Update A Policy Domain
system
sales
msp
customer
) required | integer or string Policy Identifier |
action required | string Enum: "allow" "block" Action Type |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain Identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
domain | string |
subdomains | boolean |
log_requests | boolean |
comment | string <= 250 characters |
{- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site"
}
{- "object": "block",
- "code": 200,
- "id": 5,
- "domain": "redlight.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Block access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
Delete a policy domain
system
sales
msp
customer
) required | integer or string Policy Identifier |
action required | string Enum: "allow" "block" Action Type |
domainid required | integer <int64> [ 1 .. 2147483647 ] Domain Identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
{- "code": 200,
- "deleted": true,
- "id": 13
}
Import Policy Domains
system
sales
msp
customer
) required | integer or string Policy Identifier |
action required | string Enum: "allow" "block" Action Type |
user_id | integer <int64> >= 1 Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
overwrite | boolean Default: false Example: overwrite=true Overwrite boolean (set true to overwrite domains) |
csv | string <csv> Import Domain via CSV |
{- "object": "object",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "allow",
- "id": 5,
- "domain": "apple.com",
- "subdomains": false,
- "log_requests": true,
- "comment": "Allow access to this site",
- "policyid": 3,
- "policyname": "Created Policy 1"
}
]
}
List all the groups of a customer account.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "code": 200,
- "object": "list",
- "count": 2,
- "total": 2,
- "data": [
- {
- "object": "group",
- "id": 1,
- "name": "groupname",
- "description": "groupdescription",
- "policy_id": 1,
- "policy_name": "policyname",
- "users": "2",
- "disabled": false,
- "weight": 5,
- "last_updated": "2022-02-02 17:23:42"
}
]
}
Get single customer account group.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
groupid required | integer <int64> [ 1 .. 2147483647 ] Group identifier |
{- "object": "group",
- "id": 1,
- "name": "groupname",
- "description": "groupdescription",
- "policy_id": 1,
- "policy_name": "policyname",
- "users": "2",
- "disabled": false,
- "weight": 5,
- "last_updated": "2022-02-02 17:23:42"
}
Update single customer account group.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
groupid required | integer <int64> [ 1 .. 2147483647 ] Group identifier |
policyid | integer <int64> [ 1 .. 2147483647 ] Policy Identifier. Also takes the value 'default' for default policy |
description | string <= 250 Group Description |
{- "policyid": 4,
- "description": "This is an updated decription"
}
{- "object": "group",
- "id": 1,
- "name": "groupname",
- "description": "This is an updated description",
- "policy_id": 4,
- "policy_name": "Created Policy",
- "users": "2",
- "disabled": false,
- "weight": 5,
- "last_updated": "2022-02-02 17:23:42"
}
Customer history for a specific date.
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
action required | string Examples:
Action can be 'allowed', 'blocked', 'bypassed' or 'all' |
date required | string Date (YYYY-MM-DD) |
offset | integer <int64> Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> Number of items to return |
order_dir | string Sorting order can be either 'desc' or 'asc' (descending or ascending). Default is 'desc' |
starttime | string Time (HH-MM) |
endtime | string Time (HH-MM) |
q | string Input string to search from any history field, Searchable fields are:
|
order_by | string Enum: "user" "policy" "location" "time" "externalip" "internalip" Input string to sort by attributes, attributes listed in enum are sortable
|
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 10,
- "date": "2019-01-16",
- "order_by": "time",
- "order_dir": "desc",
- "data": [
- {
- "time": "09:30:50",
- "user": "User A",
- "url": "nbc.com",
- "category": "Entertainment and Videos",
- "action": "blocked",
- "externalip": "198.51.100.3",
- "internalip": "null",
- "policy": "default",
- "location": "San Francisco office"
}
]
}
List locations of a specific type for a particular customer.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
locationtype required | string Examples:
Location type: staticip, dynamicip, dynamicdns, roaming, virtual, all |
policyid | integer <int64> [ 1 .. 2147483647 ] Customer Policy ID |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 4,
- "data": [
- {
- "object": "location",
- "type": "dynamicIp",
- "id": 2,
- "name": "Branch Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": null,
- "key": "200100179b2cca7fa3b0df536088e6f0",
- "accesstime": "2019-06-13 17:48:36",
- "description": "Public Ip"
}
]
}
Create a new location
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
locationtype required | string Examples:
Location type: staticip, dynamicip, dynamicdns, roaming, virtual |
name required | string Location Name |
policyid | integer Policy applied to the location. The value 'null' means the default policy is applied |
{- "name": "Main Office",
- "policyid": 123
}
{- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": "11.22.123.45",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
Get any location for a customer.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
locationid required | integer <int64> [ 1 .. 2147483647 ] Location identifier |
{- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": "11.22.123.45",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
Get location of a specific type for a particular customer.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
locationtype required | string Examples:
Location type: staticip, dynamicip, dynamicdns, roaming, virtual |
locationid required | integer <int64> [ 1 .. 2147483647 ] Location identifier |
{- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": "11.22.123.45",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
Update a location, any parameters not provided will be left unchanged
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
locationtype required | string Examples:
Location type: staticip, dynamicip, dynamicdns, roaming, virtual |
locationid required | integer <int64> Location identifier |
name | string Location Name |
ip | string IP Address |
description | string Description for the location address |
policyid | integer Policy applied to the location. The value 'null' means the default policy is applied |
{- "name": "Main Office",
- "ip": "198.51.100.3",
- "description": "Public Ip",
- "policyid": 123
}
{- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": "11.22.123.45",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
Delete a location
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
locationtype required | string Enum: "staticip" "dynamicip" "dynamicdns" "roaming" "virtual" Examples:
Location type: staticip, dynamicip, dynamicdns, roaming, virtual |
locationid required | integer <int64> [ 1 .. 2147483647 ] Location identifier |
{- "code": 200,
- "deleted": true,
- "id": 17
}
List IP addresses associated with a Static IP location.
id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "object": "address",
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
]
}
Add address to location
id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
ip required | string IP Address. IPv4 / IPv6, single host or CIDR |
description required | integer Description for the location address |
{- "ip": "33.44.55.66",
- "description": "Connection 1"
}
{- "object": "address",
- "code": 200,
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
Get IP address associated with a Static IP location.
id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
addressid required | integer <int64> Address identifier |
{- "object": "address",
- "code": 200,
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
Update an address
id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
addressid required | integer <int64> Address identifier |
ip | string IP Address. IPv4 / IPv6, single host or CIDR |
description | integer Description for the location address |
{- "ip": "33.44.55.66",
- "description": "Connection 1"
}
{- "object": "address",
- "code": 200,
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
Delete a location address
id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
addressid required | integer <int64> Address identifier |
{- "code": 200,
- "deleted": true,
- "id": 3
}
List locations of a specific type.
system
sales
msp
customer
) locationtype required | string Examples:
Location type: staticip, dynamicip, dynamicdns, roaming, virtual, all |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP account identifier |
policyid | integer <int64> [ 1 .. 2147483647 ] Customer Policy ID |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 4,
- "data": [
- {
- "object": "location",
- "type": "dynamicIp",
- "id": 2,
- "name": "Branch Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": null,
- "key": "200100179b2cca7fa3b0df536088e6f0",
- "accesstime": "2019-06-13 17:48:36",
- "description": "Public Ip"
}
]
}
Create a new location for MSP's customer
system
sales
msp
customer
) user_id required | integer Customer identifier |
locationtype required | string Value: "staticip" Static IP Address Location Type |
name required | string Location Name |
policyid | integer Policy applied to the location. The value 'null' means the default policy is applied |
{- "user_id": 123,
- "locationtype": "staticip",
- "name": "Main Office",
- "policyid": 123
}
{- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": "11.22.123.45",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
Get any location.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Location identifier |
{- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": "11.22.123.45",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
Update a location, any parameters not provided will be left unchanged
system
sales
msp
customer
) id required | integer <int64> Location identifier |
name | string Location Name |
ip | string IP Address |
description | string Description for the location address |
policyid | integer Policy applied to the location. The value 'null' means the default policy is applied |
{- "name": "Main Office",
- "ip": "198.51.100.3",
- "description": "Public Ip",
- "policyid": 123
}
{- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 123,
- "policy_name": "Created Policy",
- "deletable": true,
- "customer_id": 1,
- "customer_name": "TitanHQ",
- "ip": "11.22.123.45",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
Delete a specific location
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Location identifier |
{- "code": 200,
- "deleted": true,
- "id": 17
}
List, Get, Create, Update or Delete Customer Location Addresses with * support for MSP layer.
List IP addresses associated with a Static IP location.
system
sales
msp
customer
) locationid required | integer <int64> [ 0 .. 2147483647 ] Location identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "object": "address",
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
]
}
Create IP addresses associated with a Static IP location.
system
sales
msp
customer
) locationid required | integer Location Identifier |
ip required | string IP Address. IPv4 / IPv6, single host or CIDR |
description required | integer Description for the location address |
{- "locationid": 10,
- "ip": "33.44.55.66",
- "description": "Connection 1"
}
{- "object": "address",
- "code": 200,
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
Get IP addresses associated with a Static IP location.
system
sales
msp
customer
) id required | integer <int64> [ 0 .. 2147483647 ] Location Address identifier |
{- "object": "address",
- "code": 200,
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
Update IP addresses associated with a Static IP location.
system
sales
msp
customer
) id required | integer <int64> [ 0 .. 2147483647 ] Location Address identifier |
ip | string IP Address. IPv4 / IPv6, single host or CIDR |
description | integer Description for the location address |
{- "ip": "33.44.55.66",
- "description": "Connection 1"
}
{- "object": "address",
- "code": 200,
- "id": 1,
- "description": "Connection 1",
- "ip": "33.44.55.66"
}
Get IP addresses associated with a Static IP location.
system
sales
msp
customer
) id required | integer <int64> [ 0 .. 2147483647 ] Location Address identifier |
{- "code": 200,
- "deleted": true,
- "id": 3
}
Get the default filtering policy
system
sales
msp
) {- "object": "policy",
- "code": 200,
- "id": 1,
- "name": "Default",
- "description": "Default filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27"
}
Any parameters not provided will be left unchanged.
system
sales
msp
) emailnotifications | string Email address for notifications |
allowunclassified | boolean True or False to decide whether to allow unclassified
|
safesearch | string Enforce safe search (values: ON/OFF) |
level | string Enum: "C" "L" "M" "H" Level (Custom/Low/Moderate/High) |
{- "emailnotifications": "string",
- "allowunclassified": true,
- "safesearch": "string",
- "level": "C"
}
{- "object": "policy",
- "code": 200,
- "id": 1,
- "name": "Default",
- "description": "Default filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27"
}
system
sales
msp
) offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 53,
- "data": [
- {
- "object": "category",
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
]
}
system
sales
msp
) allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
) categoryid required | integer <int64> [ 0 .. 2147483647 ] Category identifier |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
) categoryid required | integer <int64> [ 0 .. 2147483647 ] Category identifier |
allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "allowed": true,
- "notify": false
}
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
Get the list of customer's non-default policies
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 2,
- "data": [
- {
- "object": "policy",
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "L",
- "last_updated": "2021-07-27 10:41:27",
- "is_default": false,
- "belongs_to_msp": false,
- "belongs_to_customer": true,
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
]
}
Create a new customer's policy
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
name required | string <= 250 characters Policy name |
description required | string <= 250 characters Policy description |
emailnotifications | string Email address for notifications |
allowunclassified | boolean True or False to decide whether to allow unclassified traffic for the policy |
safesearch | string Enum: "ON" "OFF" Enforce safe search (values: ON/OFF) |
level | string Enum: "L" "M" "H" Level (Low/Moderate/High) |
inherit_default_allow_list | boolean True or False to decide whether to inherit the Customer's default policy allow list |
inherit_default_block_list | boolean True or False to decide whether to inherit the Customer's default policy block list |
{- "name": "string",
- "description": "string",
- "emailnotifications": "string",
- "allowunclassified": true,
- "safesearch": "ON",
- "level": "L",
- "inherit_default_allow_list": true,
- "inherit_default_block_list": true
}
{- "object": "policy",
- "code": 200,
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
Get a customer's policy
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
policyid required | integer <int64> [ 1 .. 2147483647 ] Policy identifier or 'default' |
{- "object": "policy",
- "code": 200,
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
Update a customer's policy
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
policyid required | integer <int64> [ 1 .. 2147483647 ] Policy identifier or 'default' |
name | string <= 250 characters Policy name |
description | string <= 250 characters Policy description |
emailnotifications | string Email address for notifications |
allowunclassified | boolean True or False to decide whether to allow unclassified traffic for the policy |
safesearch | string Enforce safe search (values: ON/OFF) |
level | string Enum: "C" "L" "M" "H" Level (Custom/Low/Moderate/High) |
inherit_default_allow_list | boolean True or False to decide whether to inherit the Customer's default policy allow list |
inherit_default_block_list | boolean True or False to decide whether to inherit the Customer's default policy block list |
{- "name": "string",
- "description": "string",
- "emailnotifications": "string",
- "allowunclassified": true,
- "safesearch": "string",
- "level": "C",
- "inherit_default_allow_list": true,
- "inherit_default_block_list": true
}
{- "object": "policy",
- "code": 200,
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
Delete a customer's policy
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
policyid required | integer <int64> [ 1 .. 2147483647 ] Policy identifier |
{- "code": 200,
- "deleted": true,
- "id": 19
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
policyid required | integer <int64> [ 1 .. 2147483647 ] Policy identifier or 'default' for the default policy |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 53,
- "data": [
- {
- "object": "category",
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
]
}
All categories in a customer's policy can be set to allowed or blocked and notification * emails can be enabled or disabled using the 'allowed' and 'notify' parameters respectively. * Alternatively all or any subset of categories can be updated using a JSON body listing each category and * the allowed and/or notify setting. Any category not provided will be left unchanged.
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
policyid required | integer <int64> >= 1 Policy identifier or 'default' for the default policy |
allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
policyid required | integer <int64> >= 1 Policy identifier or 'default' for the default policy |
categoryid required | integer <int64> >= 1 Category identifier |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
policyid required | integer <int64> >= 1 Policy identifier or 'default' for the default policy |
categoryid required | integer <int64> >= 1 Category identifier |
allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "allowed": true,
- "notify": false
}
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
Get a users default policy
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] User identifier |
{- "object": "policy",
- "code": 200,
- "id": 1,
- "name": "Default",
- "description": "Default filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Default Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
Update a customer's default policy
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] User identifier |
emailnotifications | string Email address for notifications |
allowunclassified | boolean True or False to decide whether to allow unclassified
|
safesearch | string Enforce safe search (values: ON/OFF) |
level | string Enum: "C" "L" "M" "H" Level (Custom/Low/Moderate/High) |
{- "emailnotifications": "string",
- "allowunclassified": true,
- "safesearch": "string",
- "level": "C"
}
{- "object": "policy",
- "code": 200,
- "id": 1,
- "name": "Default",
- "description": "Default filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Default Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 53,
- "data": [
- {
- "object": "category",
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
]
}
All categories in the default policy can be set to allowed or blocked and notification * emails can be enabled or disabled using the 'allowed' and 'notify' * parameters respectively. Alternatively all or any subset of categories can be * updated using a JSON body listing each category and the allowed and/or notify setting. * Any category not provided will be left unchanged.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] User identifier |
allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
categoryid required | integer <int64> [ 1 .. 2147483647 ] Category identifier |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
categoryid required | integer <int64> [ 0 .. 2147483647 ] Category identifier |
allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "allowed": true,
- "notify": false
}
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
Get the list of all the policies policies (Global|Customer|MSP)
system
sales
msp
customer
) user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
show_default | boolean To display default policies |
include_children | boolean Includes child policies |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 2,
- "data": [
- {
- "object": "policy",
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "L",
- "last_updated": "2021-07-27 10:41:27",
- "is_default": false,
- "belongs_to_msp": false,
- "belongs_to_customer": true,
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
]
}
Create a policy
system
sales
msp
customer
) user_id required | integer <int64> [ 1 .. 2147483647 ] Customer Identifier |
name required | string <= 250 characters Policy name |
description required | string <= 250 characters Policy description |
emailnotifications | string Email address for notifications |
allowunclassified | boolean True or False to decide whether to allow unclassified traffic for the policy |
safesearch | string Enum: "ON" "OFF" Enforce safe search (values: ON/OFF) |
level | string Enum: "L" "M" "H" Level (Low/Moderate/High) |
inherit_default_allow_list | boolean True or False to decide whether to inherit the Customer's default policy allow list |
inherit_default_block_list | boolean True or False to decide whether to inherit the Customer's default policy block list |
{- "name": "string",
- "description": "string",
- "emailnotifications": "string",
- "allowunclassified": true,
- "safesearch": "ON",
- "level": "L",
- "inherit_default_allow_list": true,
- "inherit_default_block_list": true
}
{- "object": "policy",
- "code": 200,
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
Get a policy (Global|Customer|MSP)
system
sales
msp
customer
) policyid required | integer <int64> [ 1 .. 2147483647 ] Policy identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
{- "object": "policy",
- "code": 200,
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
Update a policy
system
sales
msp
customer
) policyid required | integer <int64> [ 1 .. 2147483647 ] Policy identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Identifier |
msp_id | string <UUID> MSP Identifier |
name | string <= 250 characters Policy name |
description | string <= 250 characters Policy description |
emailnotifications | string Email address for notifications |
allowunclassified | boolean True or False to decide whether to allow unclassified traffic for the policy |
safesearch | string Enforce safe search (values: ON/OFF) |
level | string Enum: "C" "L" "M" "H" Level (Custom/Low/Moderate/High) |
inherit_default_allow_list | boolean True or False to decide whether to inherit the Customer's default policy allow list |
inherit_default_block_list | boolean True or False to decide whether to inherit the Customer's default policy block list |
{- "object": "policy",
- "code": 200,
- "id": 12,
- "name": "Custom Policy",
- "description": "Custom filtering Policy",
- "emailnotifications": "",
- "safesearch": "OFF",
- "allowunclassified": false,
- "level": "C",
- "last_updated": "2021-07-27 10:41:27",
- "inherit_default_allow_list": false,
- "inherit_default_block_list": false,
- "locations": [
- {
- "object": "location",
- "code": 200,
- "type": "staticip",
- "id": 2,
- "name": "Main Office",
- "policy_id": 12,
- "policy_name": "Custom Policy",
- "addresses": [
- {
- "object": "address",
- "id": 12,
- "description": "Public Ip",
- "ip": "11.22.123.45"
}
]
}
]
}
Delete a policy.
system
sales
msp
customer
) policyid required | integer <int64> [ 1 .. 2147483647 ] Policy identifier |
{- "code": 200,
- "deleted": true,
- "id": 19
}
system
sales
msp
customer
) required | integer or string Policy identifier or 'default' for the default policy |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account identifier |
msp_id | string Msp Account identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 53,
- "data": [
- {
- "object": "category",
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
]
}
All categories in a customer's policy can be set to allowed or blocked and notification * emails can be enabled or disabled using the 'allowed' and 'notify' parameters respectively. * Alternatively all or any subset of categories can be updated using a JSON body listing each category and * the allowed and/or notify setting. Any category not provided will be left unchanged.
system
sales
msp
customer
) required | integer or string Policy identifier or 'default' for the default policy |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account identifier |
msp_id | string Msp Account identifier |
allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
customer
) required | integer or string Policy identifier or 'default' for the default policy |
categoryid required | integer <int64> [ 1 .. 2147483647 ] Category identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account identifier |
msp_id | string Msp Account identifier |
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
system
sales
msp
customer
) required | integer or string Policy identifier or 'default' for the default policy |
categoryid required | integer <int64> [ 1 .. 2147483647 ] Category identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account identifier |
msp_id | string Msp Account identifier |
allowed | boolean If specified, all categories are set to allowed (true) / blocked (false) |
notify | boolean If specified, enable (true) or disable (false) a notification email all categories |
{- "allowed": true,
- "notify": false
}
{- "object": "category",
- "code": 200,
- "id": 15,
- "name": "Alcohol",
- "allowed": true,
- "notify": false,
- "description": "Web pages that promote, advocate or sell alcohol including beer, wine and hard liquor",
- "level": "L"
}
List all customer's reports
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 7,
- "data": [
- "6d918e1d-e1f0-4a57-bd08-453a9e04e63f"
]
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
name | string The name of the report |
scheduled_frequency | string Enum: "daily" "weekly" "monthly" Frequency(daily/weekly/monthly). Defaults to daily. |
scheduled_run_now | boolean If the scheduled report should run once before being scheduled |
scheduled_times | integer How many times the scheduled report should run |
{- "name": "new report",
- "scheduled_frequency": "daily",
- "scheduled_run_now": "true",
- "scheduled_times": 5
}
{- "object": "report",
- "code": 200,
- "id": "6d918e1d-e1f0-4a57-bd08-453a9e04e63f",
- "name": "Report name",
- "scheduled_frequency": "daily",
- "scheduled_run_once": "true",
- "scheduled_times": 5
}
Get a customer's single report
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
reportid required | string <uuid> Report identifier |
{- "object": "report",
- "code": 200,
- "id": "6d918e1d-e1f0-4a57-bd08-453a9e04e63f",
- "name": "Report name",
- "scheduled_frequency": "daily",
- "scheduled_run_once": "true",
- "scheduled_times": 5
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
reportid required | string <uuid> Report identifier |
name | string The name of the report |
scheduled_frequency | string Enum: "daily" "weekly" "monthly" Frequency(daily/weekly/monthly). Defaults to daily. |
scheduled_run_now | boolean If the scheduled report should run once before being scheduled |
scheduled_times | integer How many times the scheduled report should run |
{- "name": "new report",
- "scheduled_frequency": "daily",
- "scheduled_run_now": "true",
- "scheduled_times": 5
}
{- "object": "report",
- "code": 200,
- "id": "6d918e1d-e1f0-4a57-bd08-453a9e04e63f",
- "name": "Report name",
- "scheduled_frequency": "daily",
- "scheduled_run_once": "true",
- "scheduled_times": 5
}
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
reportid required | string <uuid> Report identifier |
{- "code": 200,
- "deleted": true,
- "id": 19
}
List scheduled reports for a particular customer
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
offset | integer <int64> Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> Number of items to return |
order_dir | string Sorting order can be either 'desc' or 'asc' (descending or ascending). Default is 'desc' |
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 4,
- "data": [
- {
- "object": "scheduledreport",
- "id": 4,
- "report": "r_requests_category",
- "recipients": "user@example.com",
- "sender": "sender@example.com",
- "subject": "Requests By Category for Last Month",
- "description": "This report lists the top 10 categories for last month",
- "format": "pdf",
- "frequency": "monthly",
- "records": 20,
- "range": "lastmonth",
- "has_filter": false
}
]
}
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
report required | string Report: eg. r_requests_user, r_requests_category, r_requests_domain |
sender required | string Senders email address |
recipients required | string one or more recipient email addresses, separated by commas |
subject required | string Subject line for scheduled report emails |
description | string Further details for scheduled report |
format | string Format (pdf/csv). Defaults to pdf. |
frequency | string Frequency(daily/weekly/monthly). Defaults to daily. |
records | integer Number of records to return in the report. Defaults to 20. |
range | boolean Range (today, yesterday, last7days, last14days, last30days, thisweek, lastweek, thismonth, lastmonth). Defaults to yesterday. |
{- "report": "r_requests_user",
- "sender": "sender@examplle.com",
- "recipients": "user@example.com",
- "subject": "Requests By Category for Last Month",
- "description": "This report lists the top 10 categories for last month",
- "format": "pdf",
- "frequency": "monthly",
- "records": 10,
- "range": "lastmonth"
}
{- "object": "scheduledreport",
- "code": 200,
- "id": 4,
- "report": "r_requests_category",
- "recipients": "user@example.com",
- "sender": "sender@example.com",
- "subject": "Requests By Category for Last Month",
- "description": "This report lists the top 10 categories for last month",
- "format": "pdf",
- "frequency": "monthly",
- "records": 20,
- "range": "lastmonth",
- "has_filter": false
}
Get a particular scheduled report for a particular customer.
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
scheduledreportid required | integer <int64> Scheduled Report identifier |
{- "object": "scheduledreport",
- "code": 200,
- "id": 4,
- "report": "r_requests_category",
- "recipients": "user@example.com",
- "sender": "sender@example.com",
- "subject": "Requests By Category for Last Month",
- "description": "This report lists the top 10 categories for last month",
- "format": "pdf",
- "frequency": "monthly",
- "records": 20,
- "range": "lastmonth",
- "has_filter": false
}
Update a scheduled report, any parameters not provided will be left unchanged.
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
scheduledreportid required | integer <int64> Scheduled report identifier |
report required | string Report: eg. r_requests_user, r_requests_category, r_requests_domain |
sender required | string Senders email address |
recipients required | string one or more recipient email addresses, separated by commas |
subject required | string Subject line for scheduled report emails |
description | string Further details for scheduled report |
format | string Format (pdf/csv). Defaults to pdf. |
frequency | string Frequency(daily/weekly/monthly). Defaults to daily. |
records | integer Number of records to return in the report. Defaults to 20. |
range | boolean Range (today, yesterday, last7days, last14days, last30days, thisweek, lastweek, thismonth, lastmonth). Defaults to yesterday. |
{- "report": "r_requests_user",
- "sender": "sender@examplle.com",
- "recipients": "user@example.com",
- "subject": "Requests By Category for Last Month",
- "description": "This report lists the top 10 categories for last month",
- "format": "pdf",
- "frequency": "monthly",
- "records": 10,
- "range": "lastmonth"
}
{- "object": "scheduledreport",
- "code": 200,
- "id": 4,
- "report": "r_requests_category",
- "recipients": "user@example.com",
- "sender": "sender@example.com",
- "subject": "Requests By Category for Last Month",
- "description": "This report lists the top 10 categories for last month",
- "format": "pdf",
- "frequency": "monthly",
- "records": 20,
- "range": "lastmonth",
- "has_filter": false
}
Delete a scheduled report
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
scheduledreportid required | integer <int64> Scheduled Report identifier |
{- "code": 200,
- "deleted": true,
- "id": 19
}
Add a scheduled report to run queue so that it will be run asap.
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
scheduledreportid required | integer <int64> Scheduled report identifier |
code required | integer Code |
queued required | boolean Report added to the run queue - success or failure |
id required | integer Identifier of the queued scheduled report |
{- "code": 200,
- "queued": true,
- "id": 4
}
{- "object": "scheduledreport",
- "code": 200,
- "id": 4,
- "report": "r_requests_category",
- "recipients": "user@example.com",
- "sender": "sender@example.com",
- "subject": "Requests By Category for Last Month",
- "description": "This report lists the top 10 categories for last month",
- "format": "pdf",
- "frequency": "monthly",
- "records": 20,
- "range": "lastmonth",
- "has_filter": false
}
Get system stats
system
sales
msp
) date | string Date (YYYY-MM-DD) |
start | string Date (YYYY-MM-DD) |
end | string Date (YYYY-MM-DD) |
{- "object": "stats",
- "code": 200,
- "date": "2019-01-31",
- "requests": 55,
- "allowed": 49,
- "blocked": 6,
- "unique_domains": 10,
- "users": 3,
- "top_user": "Customer A"
}
Get System top categories
system
sales
msp
) action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYYY-MM-DD) |
start | string Date (YYYY-MM-DD) |
end | string Date (YYYY-MM-DD), must before todays's date |
limit | integer Example: limit=10 Number of categories returned, default is 10 |
null
Return the System's Top Domains accessed with allowed or blocked requests, depending on :type.
system
sales
msp
) action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYYY-MM-DD) |
start | string Start of range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD), must be before today's date |
limit | string Number of domains returned, default 10 |
{- "object": "list",
- "code": 200,
- "count": 3,
- "date": "2019-01-31",
- "order_by": "count",
- "order_dir": "desc",
- "limit": 10,
- "data": [
- {
- "name": "google.com",
- "count": 12
}, - {
- "name": "ibm.com",
- "count": 8
}, - {
- "name": "ebay.com",
- "count": 6
}
]
}
Return the System's Top Users accessed with allowed or blocked requests, depending on :type.
system
sales
msp
) action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYYY-MM-DD) |
start | string Start of range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD), must be before today's date |
limit | string Number of domains returned, default 10 |
{- "object": "list",
- "code": 200,
- "count": 3,
- "date": "2019-01-31",
- "order_by": "count",
- "order_dir": "desc",
- "limit": 10,
- "data": [
- {
- "name": "Customer A",
- "count": 12
}, - {
- "name": "Customer B",
- "count": 8
}, - {
- "name": "Customer C",
- "count": 6
}
]
}
Return the system traffic history
system
sales
msp
) days required | integer Number of previous days of traffic history. 0 returns all history. |
{- "object": "list",
- "code": 200,
- "count": 5,
- "total": 5,
- "data": [
- {
- "date": "2019-01-03",
- "allowed": 300,
- "blocked": 30
}, - {
- "date": "2019-01-02",
- "allowed": 200,
- "blocked": 20
}, - {
- "date": "2019-01-01",
- "allowed": 100,
- "blocked": 10
}
]
}
Get system recent traffic for either today or yesterday
system
sales
msp
) day required | string Examples:
|
{- "object": "list",
- "code": 200,
- "count": 5,
- "total": 5,
- "data": [
- {
- "date": "2019-01-31 00:00:00",
- "allowed": 0,
- "blocked": 0
}
]
}
Customer history for a specific date.
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
action required | string Examples:
Action can be 'allowed', 'blocked', 'bypassed' or 'all' |
date required | string Date (YYYY-MM-DD) |
offset | integer <int64> Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> Number of items to return |
order_dir | string Sorting order can be either 'desc' or 'asc' (descending or ascending). Default is 'desc' |
starttime | string Time (HH-MM) |
endtime | string Time (HH-MM) |
q | string Input string to search from any history field, Searchable fields are:
|
order_by | string Enum: "user" "policy" "location" "time" "externalip" "internalip" Input string to sort by attributes, attributes listed in enum are sortable
|
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 10,
- "date": "2019-01-16",
- "order_by": "time",
- "order_dir": "desc",
- "data": [
- {
- "time": "09:30:50",
- "user": "User A",
- "url": "nbc.com",
- "category": "Entertainment and Videos",
- "action": "blocked",
- "externalip": "198.51.100.3",
- "internalip": "null",
- "policy": "default",
- "location": "San Francisco office"
}
]
}
Get Customer stats
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
date | string Date (YYY-MM-DD) |
start | string Start of date range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD). Must be before today's date |
{- "object": "stats",
- "code": 200,
- "date": "2019-01-31",
- "requests": 55,
- "allowed": 49,
- "blocked": 6,
- "unique_domains": 10,
- "users": 3,
- "top_user": "Internal user 1"
}
Get Customer top categories
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYY-MM-DD) |
start | string Start of date range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD). Must be before today's date |
limit | integer <int64> Number of items returned, default is 10 |
null
Return a Customer's Top Domains accessed with allowed or blocked requests, depending on action
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYY-MM-DD) |
start | string Start of date range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD). Must be before today's date |
limit | integer <int64> Number of items returned, default is 10 |
{- "object": "list",
- "code": 200,
- "count": 3,
- "date": "2019-01-31",
- "order_by": "count",
- "order_dir": "desc",
- "limit": 10,
- "data": [
- {
- "name": "www.bing.com",
- "count": 29
}, - {
- "name": "wikipedia.com",
- "count": 22
}, - {
- "name": "www.facebook.com",
- "count": 1
}
]
}
Return a Customer's Top Internal Users with allowed or blocked requests, depending on :type.
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYY-MM-DD) |
start | string Start of date range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD). Must be before today's date |
limit | integer <int64> Number of items returned, default is 10 |
{- "object": "list",
- "code": 200,
- "count": 3,
- "date": "2019-01-31",
- "order_by": "count",
- "order_dir": "desc",
- "limit": 10,
- "data": [
- {
- "name": "Internal User 3",
- "count": 19
}, - {
- "name": "Internal User 2",
- "count": 8
}, - {
- "name": "Internal User 1",
- "count": 3
}
]
}
Return a Customer's Traffic history.
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
days required | string Number of previous days of traffic history. 0 returns all history. |
{- "object": "list",
- "code": 200,
- "count": 5,
- "total": 5,
- "data": [
- {
- "date": "2019-01-03",
- "allowed": 300,
- "blocked": 30
}, - {
- "date": "2019-01-02",
- "allowed": 200,
- "blocked": 20
}, - {
- "date": "2019-01-01",
- "allowed": 100,
- "blocked": 10
}
]
}
Get customer recent traffic for either today or yesterday
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
day required | string Examples:
|
{- "object": "list",
- "code": 200,
- "count": 5,
- "total": 5,
- "data": [
- {
- "date": "2019-01-31 00:00:00",
- "allowed": 0,
- "blocked": 0
}
]
}
Get customer location stats overview
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
date | string Date (YYY-MM-DD) |
start | string Start of date range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD). Must be before today's date |
{- "object": "stats",
- "code": 200,
- "date": "2019-01-31",
- "allowed": 80,
- "blocked": 20,
- "requests": 100
}
Get Customer Location top categories
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYY-MM-DD) |
start | string Start of date range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD). Must be before today's date |
limit | integer <int64> Number of items returned, default is 10 |
{- "object": "list",
- "code": 200,
- "count": 3,
- "date": "2019-01-31",
- "order_by": "count",
- "order_dir": "desc",
- "limit": 10,
- "data": [
- {
- "name": "Search Engines",
- "count": 12
}, - {
- "name": "News",
- "count": 12
}, - {
- "name": "Shopping",
- "count": 5
}
]
}
Return a Customer Locations Top Domains,
system
sales
msp
customer
) id required | integer <int64> Customer identifier |
locationid required | integer <int64> Location identifier |
action required | string Examples:
Type is either allowed or blocked |
date | string Date (YYY-MM-DD) |
start | string Start of date range (YYYY-MM-DD) |
end | string End of date range (YYYY-MM-DD). Must be before today's date |
limit | integer <int64> Number of items returned, default is 10 |
{- "object": "list",
- "code": 200,
- "count": 3,
- "date": "2019-01-31",
- "order_by": "count",
- "order_dir": "desc",
- "limit": 10,
- "data": [
- {
- "name": "google.com",
- "count": 29
}, - {
- "name": "amazon.com",
- "count": 22
}, - {
- "name": "bbc.com",
- "count": 5
}
]
}
system
sales
msp
customer
) user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
{- "object": "blockpage",
- "code": 200,
- "title": "New Block Title",
- "access_denied_message": "New Access Denied Message",
- "logo": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QAs...",
- "footer": "TitanHQ c/o Copperfasten Technologies"
}
system
sales
msp
customer
) user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
{- "object": "blockpage",
- "code": 200,
- "reset": true
}
system
sales
msp
customer
) user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
Update the blockpage details
title required | string [ 4 .. 250 ] characters |
access_denied_message required | string [ 10 .. 250 ] characters |
logo | string <binary> Logo must be file type of jpeg, png, bmp, gif or svg |
footer | string |
{- "title": "New Block Title",
- "access_denied_message": "New Access Denied Message",
- "logo": "string",
- "footer": "TitanHQ c/o Copperfasten Technologies"
}
{- "object": "blockpage",
- "code": 200,
- "title": "New Block Title",
- "access_denied_message": "New Access Denied Message",
- "logo": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QAs...",
- "footer": "TitanHQ c/o Copperfasten Technologies"
}
Get admin support details
system
sales
msp
customer
) own | string Example: own=true Determines if the result is one's own data or the Admin's data * (only applicable if logged in user is MSP Admin) |
msp_id | integer <int64> [ 1 .. 2147483647 ] Example: msp_id=10 Get the support information for MSP Account * (only applicable if logged in user is System Admin) |
{- "object": "support",
- "code": 200,
- "email": "support@example.com",
}
Create/Update Support link and email
system
sales
msp
) string Support Email | |
link | string Support link |
msp_id | integer MSP Account Identifier |
{- "object": "support",
- "code": 200,
- "email": "support@example.com",
}
Get Mail Server Request
system
sales
msp
) msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier is optional and used to get msp mail server settings |
{- "object": "mail",
- "code": 200,
- "server": "webtitan.com",
- "notification_period": 60,
- "sender": "notification-test@webtitan.com"
}
Update Mail Server Request
system
sales
msp
) msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier is optional and used to get msp mail server settings |
mail_server | string Mail Server domain |
notification_period | integer Notification Period in minutes |
sender | string Sender Email |
{- "mail_server": "webtitan.com",
- "notification_period": 60,
- "sender": "notification-test@webtitan.com"
}
{- "object": "mail",
- "code": 200,
- "server": "webtitan.com",
- "notification_period": 60,
- "sender": "notification-test@webtitan.com"
}
Create Mail Server Request
system
sales
msp
) msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier is optional and used to get msp mail server settings |
mail_server | string Mail Server domain |
notification_period | integer Notification Period in minutes |
sender | string Sender Email |
{- "mail_server": "webtitan.com",
- "notification_period": 60,
- "sender": "notification-test@webtitan.com"
}
{- "object": "mail",
- "code": 200,
- "server": "webtitan.com",
- "notification_period": 60,
- "sender": "notification-test@webtitan.com"
}
Reset Mail Server Request
system
sales
msp
) msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier is optional and used to get msp mail server settings |
{- "object": "mail",
- "code": 200,
- "reset": true
}
{- "object": "dns",
- "code": 200,
- "dns1": "1.1.1.1",
- "dns2": "8.8.8.8",
- "dns3": "null"
}
Get System Information Details.
system
sales
msp
customer
) {- "code": 200,
- "object": "system",
- "version": 5,
- "buildno": 34350,
- "description": "WebTitan Cloud Production License",
- "license_number": "WCP-3-0210-612910",
- "type": "Production",
- "license_category": "Production",
- "no_of_accounts": "Unlimited",
- "no_of_ips": "Unlimited",
- "status": "License Valid",
- "organistion": "Titan HQ",
- "address": "Salthill Galway IE",
- "contact": "Will Smith",
- "email": "willsmith@titanhq.com",
- "telephone": "+353 91 54 55 00",
- "fax": "+1 323 555 123",
- "issued_date": "January 03, 2021",
- "update_expiry_date": "January 04, 2023",
- "no_of_users": 5
}
Get License Details.
system
sales
msp
customer
) {- "object": "license",
- "description": "WebTitan Cloud Production License",
- "license_number": "WCP-3-0210-612910",
- "type": "Production",
- "license_category": "Production",
- "no_of_accounts": "Unlimited",
- "no_of_ips": "Unlimited",
- "status": "License Valid",
- "organistion": "Titan HQ",
- "address": "Salthill Galway IE",
- "contact": "Will Smith",
- "email": "willsmith@titanhq.com",
- "telephone": "+353 91 54 55 00",
- "fax": "+1 323 555 123",
- "issued_date": "January 03, 2021",
- "update_expiry_date": "January 04, 2023",
- "no_of_users": 5
}
Import License File.
system
sales
msp
customer
) license required | string <binary> Webtitan Cloud License File |
{- "success": true,
- "imported": true,
- "license_information": {
- "object": "license",
- "description": "WebTitan Cloud Production License",
- "license_number": "WCP-3-0210-612910",
- "type": "Production",
- "license_category": "Production",
- "no_of_accounts": "Unlimited",
- "no_of_ips": "Unlimited",
- "status": "License Valid",
- "organistion": "Titan HQ",
- "address": "Salthill Galway IE",
- "contact": "Will Smith",
- "email": "willsmith@titanhq.com",
- "telephone": "+353 91 54 55 00",
- "fax": "+1 323 555 123",
- "issued_date": "January 03, 2021",
- "update_expiry_date": "January 04, 2023",
- "no_of_users": 5
}
}
Get Logo and title details
system
sales
msp
customer
) own | string Example: own=true Determines if the result is one's own data or the Admin's data * (only applicable if logged in user is MSP Admin) |
msp_id | integer <integer64> [ 1 .. 2147483647 ] Example: msp_id=10 Get interface settings for an msp account with id (msp_id) * (only applicable if logged in user is System Admin) |
{- "object": "interface",
- "code": 200,
- "logo": "{{url}}/storage/logo/IgSeN927TWAu807N5MmKlB6JoJdvwSYIUgrChNOt",
- "title": "Titan HQ",
- "powered_by": "TitanHQ",
- "footer": [
]
}
Create or Update Interface with Logo, Title, Footer and Powered By Details.
system
sales
msp
) logo | string <binary> Logo must be file type of jpeg, png, bmp, gif or svg |
title | string Page Title |
msp_id | integer [ 1 .. 2147483647 ] MSP Account Identifier |
powered_by | string <= 50 Powered By Details |
footer | string Footer Information |
{- "object": "interface",
- "code": 200,
- "logo": "{{url}}/storage/logo/IgSeN927TWAu807N5MmKlB6JoJdvwSYIUgrChNOt",
- "title": "Titan HQ",
- "powered_by": "TitanHQ",
- "footer": [
]
}
{- "object": "interface",
- "code": 200,
- "deleted": true
}
{- "object": "interface",
- "code": 200,
- "deleted": true
}
Recategorize Domains
system
sales
msp
customer
) domain | string <URL> |
category1 | integer <int64> |
category2 | integer <int64> |
category3 | integer <int64> |
{- "domain": "titanhq.com",
- "category1": "1",
- "category2": "2",
- "category3": "3"
}
{- "code": "200",
- "recategorize": true
}
Performs DNS lookup on the machine via dig command and returns the output
system
sales
msp
customer
) domain required | string <URL> Example: domain=rte.ie domain to check via DNS lookup |
{- "object": "test_dns_lookup",
- "code": "200",
- "success": true,
- "output": "\\n; <<>> DiG 9.16.3 <<>> rte.ie\\n;; global options: +cmd\\n;; Got answer:\\n;; ->>HEADER<<- opcode: QUERY\n , status: NOERROR, id: 61236\\n;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1\\n\\n;; OPT PSEUDOSECT\n ION:\\n; EDNS: version: 0, flags:; udp: 4096\\n;; QUESTION SECTION:\\n;rte.ie.\\t\\t\\t\\tIN\\tA\\n\\n;; ANSWER SECTION:\\nrte.ie.\n \\t\\t\\t300\\tIN\\tA\\t104.18.143.17\\nrte.ie.\\t\\t\\t300\\tIN\\tA\\t104.18.142.17\\n\\n;; Query time: 13 msec\\n;; SERVER: 172.31.0.\n 2#53(172.31.0.2)\\n;; WHEN: Thu Feb 17 08:21:17 GMT 2022\\n;; MSG SIZE rcvd: 67\\n"
}
Test Category
system
sales
msp
customer
) domain required | string <URL> |
{- "domain": "rte.ie"
}
{- "code": "200",
- "object": "test_categories",
- "success": true,
- "categories": [
- "Computers and Technology"
]
}
Test Filtering
system
sales
msp
customer
) domain required | string <URL> |
ip | string |
{- "domain": "rte.ie",
- "ip": "52.142.70.22"
}
{- "object": "test_filtering",
- "code": "200",
- "success": true,
- "result": "Allowed",
- "ip": "52.142.70.22",
- "category": [
- "Entertainment and Videos"
]
}
system
sales
msp
) AuthRegister object
id | integer <int64> >= 1 |
string <email> |
{- "id": 123,
- "email": "email@example.com"
}
{- "object": "user",
- "id": "1",
- "created": "2018-06-25 10:03:56",
- "accountname": "John",
- "description": "Example User",
- "timezone": "Europe/London",
- "email": "email@example.com",
- "license": "WCE-M-0000-005599",
- "lastlogin": "2018-06-26 10:03:56",
- "2fa_enabled": false,
- "consumer_key": "baf661c138fbb3138f8e476209714103055dd9abe",
- "consumer_secret": "b38d82c09de695606e2df3148f52fce7",
- "access_token": "8f0a7eaf22c1cd03c2fcab01956aebef055dd9abe",
- "access_token_secret": "8b0217681f0975c0437fc99010663fbd",
- "install_key": "4d20e977-0ec4-434a-b21d-2c529fb1d062"
}
Update the password of the logged in user
system
sales
msp
customer
) old_password required | string >= 6 The current password of the account |
new_password required | string >= 8 The new password of the account |
{- "old_password": "string",
- "new_password": "string"
}
{- "code": 200,
- "updated": true,
- "id": 4
}
Invalidate users token and session
system
sales
msp
customer
) {- "code": 200,
- "logout": true,
- "id": 4
}
Send a reset password mail to the email address
email required | string <email> Email account to send the reset mail to. |
{- "email": "customer@customer.com"
}
{- "code": 200,
- "object": "password_forgotten"
}
Enables two factor authentication for the Authenticated User.
system
sales
msp
customer
) AuthRegister object
code | string The 6 digit code provided by the user. This parameter is required. |
secret | string This is required to validate the one time password. |
{- "code": "123456",
- "secret": "ABCDEFGHIJKLMN"
}
{- "code": "200",
- "created": true,
- "recovery": true,
- "backupCodes": "[1,2,3,4,5,6,7,8,9,10]"
}
Disables two factor authentication for the Authenticated User.
system
sales
msp
customer
) {- "code": 200,
- "disabled": true
}
List, Get, Update or Delete alias admins of an account type.
* The System Admin can perform alias admins CRUD operation on all account types.
* The Sales and Customer can only perform alias admins CRUD operations on their own account.
* The MSP can perform alias admins CRUD operations on their account and their customer accounts.
For MSP account the msp_id
and/or user_id
is required.
For customer accounts the user_id
is required.
Get the list of all admin accounts for an account type.
system
sales
msp
customer
) msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier |
offset | integer <int64> [ 0 .. 2147483647 ] Offset for listing |
limit | integer <int64> [ 0 .. 2147483647 ] Limit for listing |
{- "object": "list",
- "code": 200,
- "count": 2,
- "total": 2,
- "data": [
- {
- "object": "admin",
- "id": 2,
- "username": "AccountAdmin1",
- "email": "accountadmin@wtc.com",
- "description": "This is a new admin account",
- "lastip": "127.0.0.1",
- "lastlogin": "12/01/2021",
- "fullname": "Francis Xavier",
- "2fa_enabled": false,
- "account_type": 2
}
]
}
Create an alias admin account. A system admin can create any alias admin. The sales account can only create an alias sales admin. An MSP can create an MSP or their customer alias admin. A customer can only create an alias admin for themselves.
system
sales
msp
customer
) msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier. Required by System Admin when creating MSP Alias Admin. |
user_id | integer <int64> [ 1 .. 2147483647 ] Customer Account Identifier. Required by System Admin when creating Customer Alias Admin. |
fullname | string |
email required | string |
description | string |
password required | string |
vue_role_id | integer >= 1 |
{- "object": "admin",
- "code": 200,
- "id": 2,
- "username": "AccountAdmin1",
- "email": "accountadmin@wtc.com",
- "description": "This is a new admin account",
- "lastip": "127.0.0.1",
- "lastlogin": "12/01/2021",
- "fullname": "Francis Xavier",
- "2fa_enabled": true,
- "account_type": "System Admin"
}
Get a single admin account for an account type
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Example: 2 Admin Identifier |
{- "object": "admin",
- "code": 200,
- "id": 2,
- "username": "AccountAdmin1",
- "email": "accountadmin@wtc.com",
- "description": "This is a new admin account",
- "lastip": "127.0.0.1",
- "lastlogin": "12/01/2021",
- "fullname": "Francis Xavier",
- "2fa_enabled": true,
- "account_type": "System Admin"
}
Update an alias admin account for an account type (System/Sales/MSP/Customer)
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Example: 2 Admin Identifier |
fullname | string |
string | |
description | string |
password | string |
{- "object": "admin",
- "code": 200,
- "id": 2,
- "username": "AccountAdmin1",
- "email": "accountadmin@wtc.com",
- "description": "This is a new admin account",
- "lastip": "127.0.0.1",
- "lastlogin": "12/01/2021",
- "fullname": "Francis Xavier",
- "2fa_enabled": true,
- "account_type": "System Admin"
}
Delete an admin account for account type. Cannot delete the admin account linked to the main account.
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Example: 2 Admin Identifier |
{- "code": 200,
- "deleted": true,
- "id": 19
}
Get all msps
system
sales
msp
customer
) offset | integer <int64> >= 0 Offset for listing |
limit | integer <int64> >= 0 Limit for listing |
{- "object": "list",
- "code": "200",
- "count": "1",
- "total": "1",
- "data": [
- {
- "object": "msp",
- "id": "144",
- "name": "MSP - The French Gaul",
- "email": "msp@example.com",
- "description": "Msp description",
- "policy_id": "42",
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "created_at": "2021-08-04 10:34:31",
- "2fa_enabled": false
}
]
}
system
sales
) Msp object for creating
name required | string <= 250 characters Msp account name |
email required | string <email> Msp account email address |
password required | string >= 6 characters Password primary contact will use (minimum 6 characters) |
description | string Msp account description |
uuid_str | string UUID identifier |
{- "name": "MSP - The French Gaul",
- "email": "email@example.com",
- "password": "password123",
- "description": "Msp account description",
- "uuid_str": "5e81b8bc-8c5e-417b-85db-5166981951cb"
}
{- "object": "msp",
- "code": "200",
- "id": "144",
- "name": "MSP - The French Gaul",
- "email": "email@example.com",
- "description": "Msp description",
- "policy_id": "42",
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "created_at": "2021-08-04 10:34:31",
- "2fa_enabled": false
}
Get a msp
system
sales
msp
) id required | integer <int64> The Msp ID |
{- "object": "msp",
- "code": "200",
- "id": "144",
- "name": "MSP - The French Gaul",
- "email": "email@example.com",
- "description": "Msp description",
- "policy_id": "42",
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "created_at": "2021-08-04 10:34:31",
- "2fa_enabled": false
}
Update an existing msp account
system
sales
msp
) id required | integer <int64> The Msp ID |
Msp object for updating
name | string <= 250 characters Msp account name |
string <email> Msp account email address | |
password | string >= 6 characters Password primary contact will use (minimum 6 characters) |
description | string Msp account description |
{- "name": "MSP - The Gaul",
- "email": "msp@example.com",
- "password": "password123",
- "description": "Msp account description"
}
{- "object": "msp",
- "code": "200",
- "id": "144",
- "name": "MSP - The French Gaul",
- "email": "email@example.com",
- "description": "Msp description",
- "policy_id": "42",
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "created_at": "2021-08-04 10:34:31",
- "2fa_enabled": false
}
Delete a msp account
system
sales
) id required | integer <int64> The msp ID |
{- "code": 200,
- "deleted": true,
- "id": 19
}
Get the MSP Stats
system
sales
msp
) id required | integer <int64> The Msp ID |
date required | string Date (YYYY-MM-DD) |
{- "object": "stats",
- "code": "200",
- "date": "2021-08-04",
- "allowed": 25,
- "blocked": 5,
- "average": 12,
- "malware_allowed": 0,
- "malware_blocked": 1
}
Get all users
system
sales
msp
) offset | integer <int64> [ 0 .. 2147483647 ] Offset for listing |
limit | integer <int64> [ 0 .. 2147483647 ] Limit for listing |
msp_id | integer <int64> [ 1 .. 2147483647 ] MSP Account Identifier |
{- "object": "list",
- "code": "200",
- "count": "1",
- "total": "1",
- "data": [
- {
- "object": "user",
- "id": "1",
- "created": "2018-06-25 10:03:56",
- "accountname": "John",
- "description": "Example User",
- "timezone": "Europe/London",
- "email": "email@example.com",
- "license": "WCE-M-0000-005599",
- "lastlogin": "2018-06-26 10:03:56",
- "install_key": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "2fa_enabled": true,
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062"
}
]
}
system
sales
msp
) User object for creating
accountname required | string <= 250 characters Customer name |
email required | string <email> Customers primary email address |
description | string <= 250 characters An arbitrary string that can be associated with this entry, and is displayed in the UI |
license required | string WTC license number |
password required | string >= 6 characters Password primary contact will use (minimum 6 characters) |
timezone | string Default: "System Time Zone" Set the timezone for the customer account. If the timezone is empty or not included in the request it assigns the system default timezone. |
policy_level | string Enum: "L" "M" "H" Policy Level (Low/Moderate/High) |
msp_id | integer MSP Account Identifier (To Create a Customer For an MSP) |
uuid_str | integer UUID identifier |
{- "accountname": "John",
- "email": "email@example.com",
- "description": "Example User",
- "license": "WCE-M-0000-005599",
- "password": "password123",
- "timezone": "UTC",
- "policy_level": "L",
- "msp_id": 10,
- "uuid_str": "5e81b8bc-8c5e-417b-85db-5166981951cb"
}
{- "object": "user",
- "id": "1",
- "created": "2018-06-25 10:03:56",
- "accountname": "John",
- "description": "Example User",
- "timezone": "Europe/London",
- "email": "email@example.com",
- "license": "WCE-M-0000-005599",
- "lastlogin": "2018-06-26 10:03:56",
- "2fa_enabled": false,
- "consumer_key": "baf661c138fbb3138f8e476209714103055dd9abe",
- "consumer_secret": "b38d82c09de695606e2df3148f52fce7",
- "access_token": "8f0a7eaf22c1cd03c2fcab01956aebef055dd9abe",
- "access_token_secret": "8b0217681f0975c0437fc99010663fbd",
- "install_key": "4d20e977-0ec4-434a-b21d-2c529fb1d062"
}
Get a user
system
sales
msp
) id required | integer <int64> [ 1 .. 2147483647 ] The user ID |
{- "object": "user",
- "code": "200",
- "id": "1",
- "created": "2018-06-25 10:03:56",
- "accountname": "John",
- "description": "Example User",
- "timezone": "Europe/London",
- "email": "email@example.com",
- "license": "WCE-M-0000-005599",
- "lastlogin": "2018-06-26 10:03:56",
- "install_key": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "2fa_enabled": false,
- "suspended": false,
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062"
}
Update an existing customer account
system
sales
msp
) id required | integer <int64> [ 1 .. 2147483647 ] The user ID |
User object for updating
accountname | string <= 250 characters Customer name |
string <email> Customers primary email address | |
description | string <= 250 characters An arbitrary string that can be associated with this entry, and is displayed in the UI |
license | string WTC license number |
password | string >= 6 characters Password primary contact will use (minimum 6 characters) |
timezone | string Default: "System Time Zone" If the timezone is passed as an empty string it assigns the default system timezone. If the timezone is not included in the request (null) it keeps the current timezone attached to the user. |
policy_level | string Enum: "L" "M" "H" Policy Level (Low/Moderate/High) |
{- "accountname": "Josn",
- "email": "email@example.com",
- "description": "Example User",
- "license": "WCE-M-0000-005599",
- "password": "password123",
- "timezone": "UTC",
- "policy_level": "L"
}
{- "object": "user",
- "code": "200",
- "id": "1",
- "created": "2018-06-25 10:03:56",
- "accountname": "John",
- "description": "Example User",
- "timezone": "Europe/London",
- "email": "email@example.com",
- "license": "WCE-M-0000-005599",
- "lastlogin": "2018-06-26 10:03:56",
- "install_key": "4d20e977-0ec4-434a-b21d-2c529fb1d062",
- "2fa_enabled": false,
- "suspended": false,
- "uuid_str": "4d20e977-0ec4-434a-b21d-2c529fb1d062"
}
Delete a customer account
system
sales
msp
) id required | integer <int64> [ 1 .. 2147483647 ] The user ID |
{- "code": 200,
- "deleted": true,
- "id": 19
}
Suspend user sets the user suspended boolean flag to true
system
sales
msp
) id required | integer <int64> [ 1 .. 2147483647 ] The user ID |
{- "object": "user",
- "code": 200,
- "id": 19,
- "suspended": true
}
Reinstate suspended user
system
sales
msp
) id required | integer <int64> [ 1 .. 2147483647 ] The user ID |
{- "object": "user",
- "code": 200,
- "id": 19,
- "suspended": false
}
List all the internal users of a customer account
system
sales
msp
customer
) id required | integer <int64> >= 1 Customer identifier |
group_id | integer <int64> [ 1 .. 2147483647 ] Filter by group IDs the user belongs to |
offset | integer <int64> [ 0 .. 2147483647 ] Number of items to exclude in the returned list, counting from 0 |
limit | integer <int64> [ 0 .. 2147483647 ] Number of items to return |
{- "object": "list",
- "code": 200,
- "count": 1,
- "total": 1,
- "data": [
- {
- "object": "internaluser",
- "id": "65",
- "name": "John Doe",
- "email": "john_doe@customer.com",
- "description": "",
- "policyid": "18",
- "policyname": "Default Policy",
- "effective_group": "Group Name",
- "deletable": true
}
]
}
List all the internal users of a customer account
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
userid required | integer <int64> [ 1 .. 2147483647 ] User identifier |
{- "object": "internaluser",
- "code": 200,
- "id": "65",
- "name": "John Doe",
- "email": "john_doe@customer.com",
- "description": "",
- "policyid": "18",
- "policyname": "Default Policy",
- "effective_group": "Group Name",
- "deletable": true
}
Update an internal user's policy
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
userid required | integer <int64> [ 1 .. 2147483647 ] User identifier |
Update the policy and description of an internal user
description | string <= 250 characters |
policyid | integer <int64> [ 1 .. 2147483647 ] Policy Identifier. Also takes the value 'default' for default policy |
{- "description": "This is an internal user",
- "policyid": 4
}
{- "object": "internaluser",
- "code": 200,
- "id": "65",
- "name": "John Doe",
- "email": "john_doe@customer.com",
- "description": "",
- "policyid": "18",
- "policyname": "Default Policy",
- "effective_group": "Group Name",
- "deletable": true
}
Delete an internal user
system
sales
msp
customer
) id required | integer <int64> [ 1 .. 2147483647 ] Customer identifier |
userid required | integer <int64> [ 1 .. 2147483647 ] User identifier |
{- "code": 200,
- "deleted": true,
- "id": 19
}
Get powerbi config details including workspace id and report id
system
sales
msp
customer
) {- "object": "powerbi_config",
- "code": "200",
- "config": [
- {
- "wid": "afaae9ac-c6df-402d-aa58-7596cca90eb1",
- "rids": [
- {
- "wid": "behaviour",
- "powerbiid": "afaae9ac-c6df-402d-aa58-7596cca90eb1"
}
]
}
]
}
Autheticate logged in customer to powerbi via webtitan-api
system
sales
msp
customer
) Authenticate user to powerbi
rid required | string Report identifier |
uuid | string Customer identifier |
{- "rid": "761e05a5-321d-4911-87be-8110cf",
- "uuid": "942d9c2d-8eaa-4797-9986-308f29c7760"
}
{- "object": "powerbi_authenticate",
- "code": "200",
- "authentication": [
- {
- "token": "token-string",
- "uuid": "f06f47a1-bcaa-46f0-8bda-ec63057f5f37"
}
]
}