CampaignResult

CampaignResult

Permission Required to use this API Endpoint

Email Campaign – Can Edit All

Get all outbound campaign results

This is all gathered campaign results for a campaign, containing data on which users clicked or otherwise interacted with the phishing exercise.

GET /rest/campaignresults/id/afterid
Parameters

Name

Type

Description

Name

Type

Description

id

Integer

The Campaign ID.

afterid

Integer

Optional – Use when Paging is required. Each request now returns the maxIdReturned. Use this value as the afterid to retrieve the next page of records if necessary. See Paging below for more details.

access_token

String

Set the access token if you have not added it as an Authorization header.

Example Usage
curl -X GET -H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -H "Cache-Control: no-cache" "https://api.phishline.com/phishline_example/rest/campaignresults/11"
Paging

Paging is required if the request will return more than 5,000 records. The HTTP status code will be set to 206 – Partial Content

To get subsequent pages you must pass the maxIdReturned from the current request to the next request as the afterid. Continue to do this until all the rows are returned and the remainingRowCount is zero and/or the HTTP status code returned is 200.

Example Usage with Paging
curl -X GET -H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -H "Cache-Control: no-cache" "https://api.phishline.com/phishline_example/rest/campaigns/1234234234/563311"
Success Response Example

Note the following values indicate that paging is needed.

  • status code changes from 200 to 206

  • statusMessage changes from OK to PartialContent

  • remainingRowCount changes from zero to greater than zero

 

HTTP/1.1 200 OK { "status": 200, "statusMessage": "OK", "statusDetails": { "Total Results": 1 }, "entity": "campaignresult", "jobid": 0, "notifications": { "API Token Expiration Date": "2019-09-21 11:15:09", "Maximum API calls per hour": 1000, "Your API calls in the last hour": 9 }, "totalRowCount": 1, "pageRowCount": 1, "remainingRowCount": 0, "maxIdReturned": 1021, "data": [ { "outboundid": "1021", "messageid": "e7fd0faacbd", "status": "Sent", "year": "2018", "yearQuarter": "2018-Q3", "yearMonth": "2018-07", "yearWeek": "2018-27", "dayOfWeek": "6", "hourOfDay": "18", "subject": "Background check requested", "to": "user.example@phishline.com", "cc": "", "bcc": "", "contentType": "multipart\/alternative; charset=\"UTF-8\"; boundary=\"_010e7fd0faacbdg743477160_\"", "replyTo": "\"Privacy Notifier\" <hrdept@corporateintranet.net>", "sender": "\"Privacy Notifier\" <hrdept@corporateintranet.net>", "locked": "1", "sent": "1", "sending": "0", "sendAttempts": "1", "sendAfter": "2018-07-08 18:31:00", "scheduledTimezoneActual": "2018-07-08 18:31 (Friday) America\/Chicago UTC-5", "sendDate": "2018-07-08 18:31:05", "campaignName": "Test Campaign from TestCafe", "campaignType": "Email Campaign", "campaignActive": "1", "planName": "Assessing current user abilities", "planid": "1", "campaignCategory": "none", "campaignStartDate": "2018-07-07 13:46:00", "campaignEndDate": "2018-07-22 13:46:00", "campaignCutoffDate": "2018-07-29 13:46:00", "campaignEmailCountMax": "1", "campaignModeSMS": "0", "campaignModeVoice": "0", "campaignModeAutomated": "0", "campaignIntent": "Testing", "campaignLifecycle": "Completed", "campaignLocked": "0", "emailaddressbookid": "21", "addressBookName": "N\/A", "addressBookActive": "0", "addressBookCategory": "N\/A", "emailserverid": "341", "emailServerName": "corporateintranet.net - hrdept", "emailServerType": "Email", "emailServerActive": "1", "emailServerSender": "hrdept@corporateintranet.net", "emailServerReplyTo": "hrdept@corporateintranet.net", "emailServerDailySendLimit": "0", "emailServerMaxRetries": "6", "emailServerRetryHourIncrement": "2", "emailServerModeEmail": "0", "emailServerModeSMS": "0", "emailServerModeVoice": "0", "emailServercentralphoneid": "0", "emailServerCentralPhoneNumber": "0", "emailtemplateid": "31", "emailTemplateGUID": "aee2b7e43ae0562fc6e571b88874a4e3", "emailTemplateName": "Background Check", "emailTemplateType": "Email", "emailTemplateActive": "1", "emailTemplateCategory": "Legal", "emailTemplateSenderName": "Privacy Notifier", "emailTemplateSubject": "Background check requested", "emailTemplateEnableHTML": "1", "emailTemplateMaxAttachments": "0", "emailTemplateModeEmail": "1", "emailTemplateModeSMS": "0", "emailTemplateModeVoice": "0", "emailTemplateIsUrgent": "0", "emailTemplateEnableInlineImages": "0", "webserverid": "181", "webServerName": "http:\/\/corporateintranet.net", "webServerType": "Web Server", "webServerActive": "1", "webServerURL": "http:\/\/corporateintranet.net\/de44001f181", "webServerModeVoice": "0", "webServerURLSSL": "0", "webServerURLHost": "corporateintranet.net", "webServerURLTiny": "0", "webtemplateid": "11", "webTemplateGUID": "812798dd391ec4a869c2d89424583812", "webTemplateName": "Employee Benefits Portal", "webTemplateType": "Web Page", "webTemplateActive": "1", "webTemplateCategory": "Login", "webTemplateURLBaseDir": "812798dd391ec4a869c2d894", "webTemplateURLBaseFile": "index.php", "link": "http:\/\/corporateintranet.net\/de44001f181\/812798dd391ec4a869c2d894\/index.php", "linkText": "Link", "attach": "http:\/\/corporateintranet.net\/de44001f181\/812798dd391ec4a869c2d894\/download.php", "img": "http:\/\/corporateintranet.net\/de44001f181\/812798dd391ec4a869c2d894\/img.php", "unsubscribe": "http:\/\/corporateintranet.net\/de44001f181\/812798dd391ec4a869c2d894\/unsubscribe.php", "unsubscribeText": "Unsubscribe", "webTemplateModeVoice": "0", "webTemplateivrid": "0", "webTemplateIVRName": "", "webTemplateServerExplodedStatus": "Current", "webTemplateServerExplodedPublished": "True", "webTemplateServerExplodedValidated": "True", "webTemplateServerExplodedLastPublished": "2018-09-07 22:23:01", "webTemplateServerExplodedLastValidated": "2018-06-25 16:58:28", "emailaddressid": "1021", "addressAddress": "user.example@phishline.com", "addressActive": "1", "addressAtRestricted": "0", "addressAtDomain": "@phishline.com", "addressAnonymized": "0", "addressFirstName": "User", "addressLastName": "Example", "addressFullName": "", "addressPersonalTitle": "", "addressNameSuffix": "", "addressOrgArea": "N\/A", "addressOrgLevel": "N\/A", "addressOrgTenure": "N\/A", "addressCompany": "", "addressCountry": "", "addressRegion": "", "addressSite": "", "addressLanguage": "", "addressTimeZone": "", "addressStreet": "", "addressCity": "", "addressState": "", "addressZip": "", "addressMobile": "", "addressOtherMobile": "", "addressSource": "", "addressCustom1": "", "addressCustom2": "", "addressCustom3": "", "addressCustom4": "", "addressCustom5": "", "addressCustom6": "", "addressCustom7": "", "addressCustom8": "", "addressCustom9": "", "addressCustom10": "", "addressCustom11": "", "addressCustom12": "", "addressCustom13": "", "addressCustom14": "", "addressCustom15": "", "addressCustom16": "", "addressCustom17": "", "addressCustom18": "", "addressCustom19": "", "addressCustom20": "", "addressCustom21": "N\/A", "addressCustom22": "N\/A", "addressCustom23": "N\/A", "addressCustom24": "N\/A", "addressCustom25": "N\/A", "addressCustom26": "N\/A", "addressCustom27": "N\/A", "addressCustom28": "N\/A", "addressCustom29": "N\/A", "addressCustom30": "N\/A", "addressCustom31": "N\/A", "addressCustom32": "N\/A", "addressCustom33": "N\/A", "addressCustom34": "N\/A", "addressCustom35": "N\/A", "addressCustom36": "N\/A", "addressCustom37": "N\/A", "addressCustom38": "N\/A", "addressCustom39": "N\/A", "addressCustom40": "N\/A", "addressOffenderCategory": "Non-Offender", "addressOffenderFailureNumber": "0", "addressOffenderCampaignList": "", "addressTraining": "0", "addressTrainingPassed": "0", "addressTrainingCompleted": "0", "addressTotalEventPoints": "100", "undeliverable": "0", "outOfOffice": "0", "senderAddressVerification": "0", "replyReceived": "0", "replyOrActivity": "0", "opp": "0", "activity": "0", "oppPageView": "1", "activityPageView": "0", "oppImageView": "0", "activityImageView": "0", "oppFileDownload": "1", "activityFileDownload": "0", "oppLoginForm": "1", "activityLoginForm": "0", "activityUser": "0", "activityPw": "0", "oppFeedbackForm": "0", "activityFeedbackForm": "0", "activityTopic": "0", "activitySender": "0", "activityMessage": "0", "oppFileUpload": "0", "activityFileUpload": "0", "oppCaptcha": "0", "activityCaptcha": "0", "oppUnsubscribePageView": "0", "activityUnsubscribePageView": "0", "activityUnsubscribeForm": "0", "oppIncidentResponse": "0", "activityIncidentResponse": "0", "oppSmartAttachment": "0", "activitySmartAttachment": "0", "oppSmartAttachmentRunnable": "0", "activitySmartAttachmentRunnable": "0", "messageType": "Email", "clickReporterActionSummary": "No Click and No Report", "multiClicker": "0", "osList": "N\/A", "pluginsCPEList": "", "messageEventPoints": "100", "lastSendAttemptError": "", "messageTotalEventPoints": "0", "programtermaddressid": "11", "programRollingTermTargetedCount": "93", "programRollingTermPageViewCount": "7", "programRollingTermReportedCount": "0", "programRollingTermPageViewRate": "7.53", "programRollingTermReportedRate": "0.00", "programRollingTermMultiClicker": "1", "programRollingTermConsecutiveClicker": "1", "programRollingTermChronicClicker": "0", "programRollingTermReportingDate": "2018-07-08", "programRollingTermReportingTermName": "2018-07", "firstSurveyTemplateStarted": "", "listSurveyTemplatesStarted": "", "timeInSecondsSpentOnPageForOutboundMessage": "0", "timeInMinutesSpentOnPageForOutboundMessage": "0.00", "timeInSecondsSpentTrainingForOutboundMessage": "0", "timeInMinutesSpentTrainingForOutboundMessage": "0.00", "firstClickTime": "0000-00-00 00:00:00", "firstReportedTime": "0000-00-00 00:00:00", "firstClickMinutes": "0", "firstReportedMinutes": "0", "emailTraining": "0", "emailTrainingPassed": "0", "emailTrainingCompleted": "0", "campaignid": "11" } ] }
Success 200

Name

Type

Description

Name

Type

Description

campaignresult

Object[]

A campaign outbound result record for a single email address.

campaignresult.activity

Boolean

 

campaignresult.activityCaptcha

Boolean

Has the user of this email address ever submitted an image Captcha form?

campaignresult.activityFeedbackForm

Boolean

Has the user of this email address ever submitted a Feedback Form?

campaignresult.activityFileDownload

Boolean

Has the user of this email address ever performed an Action File Download?

campaignresult.activityFileUpload

Boolean

Has the user of this email address ever uploaded a file to a form?

campaignresult.activityImageView

Boolean

Has the user of this email address ever performed an Action Image View?

campaignresult.activityIncidentResponse

Boolean

Has the user of this email address ever forwarded an email to an approved Incident Response Repository?

campaignresult.activityLoginForm

Boolean

Has the user of this email address ever submitted a Login form?

campaignresult.activityMessage

Boolean

 

campaignresult.activityPageView

Boolean

 

campaignresult.activityPw

Boolean

Has the user of this email address ever submitted a Password on a Login form?

campaignresult.activitySender

Boolean

 

campaignresult.activitySmartAttachment

Boolean

Has the user of this email address ever arrived at a landing page due to an interaction with a Smart Attachment?

campaignresult.activitySmartAttachmentRunnable

Boolean

Has the user of this email address ever arrived at a landing page by Running/Executing a Smart Attachment EXE or macro?

campaignresult.activityTopic

Boolean

 

campaignresult.activityUnsubscribeForm

Boolean

Has the user of this email address ever submitted an Unsubscribe form?

campaignresult.activityUnsubscribePageView

Boolean

Has the user of this email address ever viewed an Unsubscribe form?

campaignresult.activityUser

Boolean

 

campaignresult.addressActive

Number

 

campaignresult.addressAddress

String

 

campaignresult.addressAnonymized

String

Have the details of this email address entry been deactivated and replaced with Anonymous data?

campaignresult.addressAtDomain

String

The domain information, located to the right of the @ sign.

campaignresult.addressAtRestricted

Number

Deprecated. This field is no longer used and will be removed in a future release.

campaignresult.addressBookActive

Number

 

campaignresult.addressBookCategory

String

 

campaignresult.addressBookName

String

Name of the address book containing this address entry.

campaignresult.addressCity

String

The geographic City corresponding to this email address entry.

campaignresult.addressCompany

String

Organization associated with this email address book entry. 

campaignresult.addressCountry

String

Geographic Country corresponding to this email address book entry.

campaignresult.addressCustom1

String

Custom email address attributes used for advanced campaign targeting and analysis.

campaignresult.addressCustom2

String

" "

campaignresult.addressCustom3

String

" "

campaignresult.addressCustom4

String

" "

campaignresult.addressCustom5

String

" "

campaignresult.addressCustom6

String

" "

campaignresult.addressCustom7

String

" "

campaignresult.addressCustom8

String

" "

campaignresult.addressCustom9

String

" "

campaignresult.addressCustom10

String

" "

campaignresult.addressCustom11

String

" "

campaignresult.addressCustom12

String

" "

campaignresult.addressCustom13

String

" "

campaignresult.addressCustom14

String

" "

campaignresult.addressCustom15

String

" "

campaignresult.addressCustom16

String

" "

campaignresult.addressCustom17

String

" "

campaignresult.addressCustom18

String

" "

campaignresult.addressCustom19

String

" "

campaignresult.addressCustom20

String

" "

campaignresult.addressCustom21

String

" "

campaignresult.addressCustom22

String

" "

campaignresult.addressCustom23

String

" "

campaignresult.addressCustom24

String

" "

campaignresult.addressCustom25

String

" "

campaignresult.addressCustom26

String

" "

campaignresult.addressCustom27

String

" "

campaignresult.addressCustom28

String

" "

campaignresult.addressCustom29

String

" "

campaignresult.addressCustom30

String

" "

campaignresult.addressCustom31

String

" "

campaignresult.addressCustom32

String

" "

campaignresult.addressCustom33

String

" "

campaignresult.addressCustom34

String

" "

campaignresult.addressCustom35

String

" "

campaignresult.addressCustom36

String

" "

campaignresult.addressCustom37

String

" "

campaignresult.addressCustom38

String

" "

campaignresult.addressCustom39

String

" "

campaignresult.addressCustom40

String

" "

campaignresult.addressOffenderCategory

String

 

campaignresult.addressOffenderFailureNumber

String

 

campaignresult.addressOffenderCampaignList

String

 

campaignresult.addressFirstName

String

First name associated with the contact email address.

campaignresult.addressFullName

String

Complete name associated with the contact email address, usually consisting of the first and last name, but can also include a middle name. 

campaignresult.addressLanguage

String

Language Code, typically the ISO language/region code, corresponding to this email address book entry.

campaignresult.addressLastName

String

Last name associated with the contact email address. 

campaignresult.addressMobile

String

Phone number that can be used for text messaging tests. 

campaignresult.addressNameSuffix

String

Name suffix (like Jr. or Sr.) associated with this email address.

campaignresult.addressOrgArea

String

Part of the organization, like department or division, corresponding to the email address entry.

campaignresult.addressOrgLevel

String

Title or management level corresponding to the email address entry.

campaignresult.addressOrgTenure

String

How long the user of this email address has been with the organization. Can be numerical or alphabetical entry.

campaignresult.addressOtherMobile

String

Additional mobile phone number????

campaignresult.addressPersonalTitle

String

Title associated with the contact email address, such as Dr., Mr., Ms., and so on.

campaignresult.addressRegion

String

Geographic region where the email address is located, like EMEA or Northeast. You can also choose to use ISO region codes.

campaignresult.addressSite

String

Descriptor for the location of the email address, like Manufacturing or Downtown Branch.

campaignresult.addressSource

String

The source of the email address. This field can be an Open Source Intelligence source or perhaps data from human resources or a response from a certain marketing campaign.

campaignresult.addressState