curl https://<DEPLOYMENT_SUBDOMAIN>.cyberhoot.com/api/customers/users/policy-response/training-history.php \
-u <API_KEY>: \
-d customer_id=1000 \
-d user_id=10 \
-G
[
“user policy response ID”: {
“id”: INT (ID of the user’s policy response),
“policyId”: INT (ID of the policy),
“policyType”: STRING (type of training: policy, video or phishing),
“dateLastSent”: STRING (Date of last email sent to user for this policy – YYYY-MM-DD, h:ia format),
“userFirstOpenedDate”: STRING (Date user first opened email for this policy – YYYY-MM-DD, h:ia format),
“dateResponded”: STRING (Date user responded to this policy – YYYY-MM-DD, h:ia format),
“fourthEmailSentDate”: STRING (Date HR email was sent – YYYY-MM-DD, h:ia format),
“thirdEmailSentDate”: STRING (Date manager email was sent – YYYY-MM-DD, h:ia format),
“secondEmailSentDate”: STRING (Date reminder email was sent – YYYY-MM-DD, h:ia format),
“firstEmailSentDate STRING (Date initial was sent – YYYY-MM-DD, h:ia format),
“accepted”: INT (1 if user has accepted the policy, otherwise 0),
“firstEmailNeeded”: STRING (Yes or no),
“secondEmailNeeded”: STRING (Yes or no),
“thirdEmailNeeded”: STRING (Yes or no),
“fourthEmailNeeded”: STRING (Yes or no),
“notificationNeeded”: STRING (Yes or no),
“whichNotification”: INT (Which notification is needed, 1-4),
“questionScore”: STRING (serialized data of user scoring details),
“quizResults”: STRING (serialized data of user quiz results details),
“userGroupName”: STRING (Name of group user is a part of that is assigned to this policy),
“policyName”: STRING (Policy name),
“isOptional”: INT (1 if policy is optional, otherwise 0),
“questionEnabled”: INT (1 if quiz is enabled, otherwise 0),
“policyStatus”: STRING (Active, Pending, or Archived),
“emailExpiresDate”: “20240405”,
“effectiveStart”: INT (Date policy starts, YYYYMMDD format),
“effectiveEnd”: INT (Date policy ends, YYYYMMDD format),
“firstNotifyDate”: INT (Date initial email gets sent, YYYYMMDD format),
“secondNotifyDate”: INT (Date reminder email gets sent, YYYYMMDD format),
“thirdNotifyDate”: INT (Date manager email gets sent, YYYYMMDD format),
“fourthNotifyDate”: INT (Date HR email gets sent, YYYYMMDD format),
“notificationName”: STRING (Current notification that is needed),
“status”: STRING (users current status/step in the policy response),
},
]