Skip to main content
Read one phishing campaign and its participants

Authorizations

Authorization
string
header
required

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

Scopes

phishing_analytics:view_employee_data

Phishing results for named employees

phishing_campaigns:view

Phishing campaigns

Path Parameters

campaignId
string<uuid>
required

The campaign to read

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}$

Query Parameters

query
string

Words to find in campaign names or, when reading one campaign, in the first name, last name or email of a participant

status
enum<string>

Only campaigns in this state, judged as the web app's filter judges it

Available options:
draft,
scheduled,
running,
completed,
cancelled
channel
enum<string>

Only campaigns sent this way

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

Only campaigns whose scheduledStartDate is on or after this: a day, YYYY-MM-DD, or a date and time with its offset

Pattern: ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$
startsBefore
string

Only campaigns whose scheduledStartDate is before this, a day or a date and time as startsFrom takes. For a period that ends with a day, the day after it

Pattern: ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$
timeZone
string

An IANA time zone, such as Europe/London, in which a day given to startsFrom or startsBefore begins. UTC without it

simulationStatus
enum<string>

Only participants with this result. It applies when reading one campaign

Available options:
pending,
success,
failure
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.

campaigns
null | object[]
required
totalCount
integer
required

How many campaigns match, or with campaignId how many participants, across every page

nextOffset
null | integer

The offset of the next page. Absent on the last

participants
null | object[]

With campaignId, a page of the people it targets, by name

results
null | object

With campaignId, how all its participants did, whatever the filters