Get instant support with our search!
Main API
The Main API is used to get customer usage data from the MyCompliance portal.
GetCompanyUsage – GET
Used to get customer's overall usage data.
Example:
$url = "https://api.metacompliance.com/main/GetCompanyUsage?key=7025499D-FB89-
438F-8F3D-96C2EA0678G9"
$contentType = "application/json"
Invoke-RestMethod $url -Headers $headers -ContentType $contentType -Method GET
JSON returned
{
"LastAdminAccessDate": "13/08/2019",
"LastUserAccessDate": "13/08/2019",
"LastPolicyPublishedDate": "13/08/2019",
"LastCoursePublishedDate": "13/08/2019",
"LastPhishPublishedDate": "13/08/2019",
"LastAdminAccessTime": "13:14:16",
"LastUserAccessTime": "08:31:43",
"LastPolicyPublishedDateTime": "12:24:04",
"LastCoursePublishedDateTime": "08:59:31",
"LastPhishPublishedDateTime": "11:24:44",
"TotalUsers": 2326,
"MonthlyUsers": 27,
"TotalPolicyAudits": 1440,
"TotalCourseAudits": 3548,
"TotalPhishEmails": 1568,
"NoOfProcessingActivities": 386
}