1. Who this guide is for
This guide explains how to use the API to get the results of simulated phishing campaigns sent to your users: who opened, clicked, or reported each message. It's useful for analyzing user behavior in your reporting tools.
The data is a subset of the columns from the phishing Excel report you can download from the platform.
Your IT team or integrator is responsible for automating the calls (scheduling, processing, and storing the data): LibraCyber provides the data and supports you in understanding it.
Before you start, read Start here: API authentication: there you'll find how to get your credentials and token.
2. The API call
GET <api_base_url>/phishing/campaigns
with the header Authorization: Bearer <access_token>.
| Parameter (optional) | Format | Purpose |
|---|---|---|
start_date |
YYYY-MM-DD | Start of the period |
end_date |
YYYY-MM-DD | End of the period |
year |
YYYY | Only campaigns from that year |
anon |
0 or 1
|
1 to receive anonymized data; by default, data is not anonymized |
3. What you receive
One row for each message sent to each user.
| Field | Meaning |
|---|---|
campaignName |
Name or code of the campaign |
campaignType |
Type of campaign |
templateId, templateName
|
ID and name of the simulated message |
template_type |
Message channel (email, sms, ...) |
subject |
Subject of the message, if present |
targetId |
Recipient's ID |
firstname, lastname, email
|
Recipient's details |
target_risk |
Risk level associated with the user |
language, country
|
Message language and user's country |
sent |
Date and time sent |
open |
Date and time opened (empty if not opened) |
clicked |
Indicates if the user clicked the link |
reported |
Indicates if the user reported the message as phishing |
submitted_data |
Date of the report |
phished_device |
Type of device used |
active |
1 if the user is active, 0 otherwise |
If you use organizations on the platform (for example, office or department), each row also includes the user's organizations as name-value pairs.
[
{
"campaignName": "C-01",
"templateId": "1EDB5763305311ED9CCBA85E4535D801",
"templateName": "PayPal_1",
"template_type": "email",
"subject": "1 New Message: PayPal Account",
"targetId": "C5A9F8B7E8AE47488DF6EFE73012129C",
"firstname": "Sara",
"lastname": "Bianchi",
"campaignType": "Ordinary",
"target_risk": "Strong",
"email": "sara.bianchi@example.com",
"language": "it",
"country": "IT",
"sent": "2026-06-20 15:35:35",
"open": null,
"clicked": null,
"reported": null,
"submitted_data": null,
"phished_device": null,
"active": 1
}
]
| 💡 | Deleted users appear with their first and last names hidden and an anonymous email address: their results remain available for statistics. |
4. If something doesn't work
| Code | What it means | What to do |
|---|---|---|
EXT_1000 |
A parameter is not valid (for example, the date format) | Correct the parameter indicated in the message |
EXT_1002, EXT_1003
|
Temporary error retrieving data | Try again later; if it persists, contact support |
EXT_1004 |
Problem processing the language | Try again later; if it persists, contact support |
EXT_1001 |
Token expired or invalid | Request a new token |
If the problem persists, contact support and provide the API call you made, the date and time, and the full error message. We can assist you with testing, first in the test environment and then in production.