Query phishing analytics
Computes phishing figures across campaigns: the metrics asked for, in one row for each combination of the groupBy fields’ values, or a single row without groupBy. A row’s fields are named after the metrics and groupBy fields asked for. failure_rate and pass_rate are percentages of the people sent a simulation; the distinct_ metrics count people, campaigns or templates; every other metric counts events. startDate and endDate go by the day of each event. Rows come in groupBy order unless sortBy names a metric or field to order them by. Grouping by employee_name or email, or filtering by userIds, also needs the scope phishing_analytics:view_employee_data, and is refused with 403 without it. Pages with limit and offset: the answer has totalCount for the whole list and, while more remain, nextOffset to pass back as offset. The whole result is computed for the first page and kept for about a minute for the pages after it, so read a result through without long pauses.
Authorizations
Query Parameters
What to compute, at least one
failure_rate, pass_rate, distinct_users_sent, distinct_users_failed, distinct_users_passed, distinct_campaigns, distinct_templates, sent, delivered, bounced, opened_email, clicked_link, opened_attachment, downloaded_file, visited_fake_page, visited_awareness_page, entered_credentials, submitted_form, replied_to_email, replied, answered_call, read_sms, scanned_qr, viewed_message, called_phone_number, complied_with_request, provided_sensitive_info, reported_email, completed_successfully, completed_remediation_training Give each combination of these fields' values a row of its own. Without any, one row covers everything
event_date, event_month, event_quarter, event_year, campaign, phishing_channel, template, difficulty, event_type, simulation_status, organization, division, department, cost_center, country, state_province, city, employee_name, email, job_title, user_type, manager, manager_email