Skip to main content
Query phishing analytics

Authorizations

Authorization
string
header
required

An API service account's access token, from the client credentials grant.

Scopes

phishing_analytics:view

Phishing analytics

Query Parameters

metrics
enum<string>[]
required

What to compute, at least one

Available options:
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
groupBy
enum<string>[]

Give each combination of these fields' values a row of its own. Without any, one row covers everything

Available options:
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
startDate
string<date>

Only events on or after this day

Pattern: ^\d{4}-\d{2}-\d{2}$
endDate
string<date>

Only events on or before this day

Pattern: ^\d{4}-\d{2}-\d{2}$
campaignIds
string<uuid>[]

Only these phishing campaigns

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
templateIds
string<uuid>[]

Only these phishing templates

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
userIds
string<uuid>[]

Only these people

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
phishingChannels
enum<string>[]

Only these channels

Available options:
email,
sms,
phone_call,
multi_channel,
qr_code,
instant_messaging,
social_media
sortBy
string

Order the rows by one of the metrics or groupBy fields asked for

sortOrder
enum<string>

With sortBy, desc unless asc is given

Available options:
asc,
desc
limit
integer
default:20

How many to return, up to 100. Defaults to 20

Required range: 1 <= x <= 100
offset
integer

How many to skip: the nextOffset of the previous page

Required range: x >= 0

Response

What was asked for.

rows
null | object[]
required

One per group, holding its groupBy fields' values and its metrics

totalCount
integer
required

How many rows there are, across every page

nextOffset
null | integer

The offset of the next page. Absent on the last