GET
/
v1
/
campaigns
/
statistics
curl --request GET \
  --url https://public-api.tryriot.com/v1/campaigns/statistics \
  --header 'x-api-key: <api-key>'
{
  "data": {
    "active_employees_attacked_count": 73,
    "attack_events_per_employee": {
      "attachment_opened": 42,
      "attack_sent": 42,
      "attack_voided": 42,
      "credentials_submitted": 42,
      "download_link_clicked": 42,
      "email_answered": 42,
      "email_opened": 42,
      "email_reported": 42,
      "employee_tricked": 42,
      "file_opened": 42,
      "manually_reported": 42,
      "manually_retried": 42,
      "mfa_code_submitted": 42,
      "page_opened": 42,
      "phishing_remedial_course_completed": 42,
      "qr_code_scanned": 42,
      "remedial_completed": 42,
      "remedial_started": 42,
      "scope_granted": 42,
      "social_login_clicked": 42
    },
    "employees_attacked_count": 81,
    "employees_weak_credentials_detected_count": 52
  }
}

Authorizations

x-api-key
string
header
required

Query Parameters

workspace_id
string
required

ID of the workspace for which to retrieve campaign statistics

campaign_id
string

ID of the campaign for which to retrieve statistics

campaign_cycle_id
string

ID of the campaign cycle for which to retrieve statistics

created_after
string

Optional parameter to filter statistics for attacks created after specified date

created_before
string

Optional parameter to filter statistics for attacks created before specified date

Response

200
application/json

Campaign statistics

The response is of type object.