Download OpenAPI specification:Download
The Infosec IQ REST API Version 1 is deprecated and will be removed in early 2021. You should migrate to using Infosec IQ REST API Version 2
Before you begin, you will need an API Token. To get one, first have your account manager enable this functionality for your account. Once API functionality is enabled you will be able to access your API token through your account settings page.
Security Scheme Type | API Key |
---|---|
Header parameter name: | Authorization |
This endpoint enrolls a learner into a campaign.
campaign_id required | string (campaign_id) ID of campaign to enroll learner |
The request body
learner_id | string Unique identifier for the learner |
{- "learner_id": "string"
}
{- "id": "string",
- "learner": {
- "id": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string"
}, - "campaign": {
- "id": "string",
- "name": "string",
- "type": "string",
- "running": true
}
}
This endpoint retrieves a list of campaign runs.
id required | string (id) The id of the campaign |
page | integer (page) >= 1 Default: 1 Which page of results to return |
limit | integer (limit) [ 1 .. 100 ] Default: 20 Number of results to return |
{- "meta": {
- "page": 0,
- "current": 0,
- "count": 0,
- "start": 0,
- "end": 0,
- "pageCount": 0,
- "limit": 0
}, - "data": {
- "id": "string",
- "campaign_id": "string",
- "start": "string",
- "end": "string",
- "start_reminder_sent": "string",
- "finish_reminder_sent": "string",
- "run_number": 0
}
}
This endpoint retrieves a specific campaign run.
campaign_id required | string (campaign_id) The id of the campaign |
run_id required | string (run_id) The id of the campaign run |
[- {
- "id": "string",
- "campaign_id": "string",
- "start": "string",
- "end": "string",
- "start_reminder_sent": "string",
- "finish_reminder_sent": "string",
- "run_number": 0
}
]
This endpoint retrieves various statistics about a campaign run.
campaign_id required | string (campaign_id) The id of the campaign |
run_id required | string (run_id) The id of the campaign run |
[- {
- "id": "string",
- "campaign_id": "string",
- "run_number": 0,
- "learners": {
- "started": 0,
- "completed": 0,
- "passed": 0,
- "failed": 0,
- "time_trained": 0
}
}
]
This endpoint retrieves the status of each learner enrolled in an campaign.
campaign_id required | string (campaign_id) The id of the campaign |
run_id required | string (run_id) The id of the campaign run |
page | integer (page) >= 1 Default: 1 Which page of results to return |
limit | integer (limit) [ 1 .. 100 ] Default: 20 Number of results to return |
{- "meta": {
- "page": 0,
- "current": 0,
- "count": 0,
- "start": 0,
- "end": 0,
- "pageCount": 0,
- "limit": 0
}, - "data": {
- "id": "string",
- "completed_on": "string",
- "status": "not_started"
}
}
This endpoint retrieves a page of campaigns, optionally filtered by by a name parameter.
name | string (name) Search campaigns by name |
page | integer (page) >= 1 Default: 1 Which page of results to return |
limit | integer (limit) [ 1 .. 100 ] Default: 20 Number of results to return |
{- "meta": {
- "page": 0,
- "current": 0,
- "count": 0,
- "start": 0,
- "end": 0,
- "pageCount": 0,
- "limit": 0
}, - "data": {
- "id": "string",
- "name": "string",
- "type": "string",
- "running": true
}
}
This endpoint retrieves a page of timeline events associated with the given Learner ID.
learner_id required | string Learner id |
page | integer (page) >= 1 Default: 1 Which page of results to return |
limit | integer (limit) [ 1 .. 100 ] Default: 20 Number of results to return |
{- "meta": {
- "page": 0,
- "current": 0,
- "count": 0,
- "start": 0,
- "end": 0,
- "pageCount": 0,
- "limit": 0
}, - "data": {
- "id": "string",
- "type": "added-to-group",
- "timestamp": "string",
- "learner_id": "string",
- "campaign": { },
- "quarantined_email": { },
- "browser": { },
- "module": { },
- "campaign_run": { },
- "template": { },
- "learner_group": { },
- "assessment": { }
}
}
This endpoint retrieves a page of learners, optionally filtered by an email, first name, or last name parameter.
string (email) Search learners by email | |
first_name | string (first_name) Search learners by first name |
last_name | string (last_name) Search learners by last name |
page | integer (page) >= 1 Default: 1 Which page of results to return |
limit | integer (limit) [ 1 .. 100 ] Default: 20 Number of results to return |
{- "meta": {
- "page": 0,
- "current": 0,
- "count": 0,
- "start": 0,
- "end": 0,
- "pageCount": 0,
- "limit": 0
}, - "data": {
- "id": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string"
}
}
This endpoint creates a new learner.
string | |
first_name | string |
last_name | string |
title | string |
department | string |
phone | string |
address1 | string |
address2 | string |
city | string |
state | string |
zip | string |
country | string |
custom | string |
manager_name | string |
manager_email | string |
group_name | string |
{- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "title": "string",
- "department": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string",
- "custom": "string",
- "manager_name": "string",
- "manager_email": "string",
- "group_name": "string"
}
{- "id": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "learner_profile": {
- "title": "string",
- "department": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string",
- "custom": "string",
- "manager_name": "string",
- "manager_email": "string"
}, - "groups": {
- "data": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "modified": "string"
}
]
}
}
This endpoint retrieves a learner by ID.
id required | string The ID of the requested learner |
{- "id": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "learner_profile": {
- "title": "string",
- "department": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string",
- "custom": "string",
- "manager_name": "string",
- "manager_email": "string"
}, - "groups": {
- "data": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "modified": "string"
}
]
}
}
This endpoint edits the personal information of a specific learner.
id required | string The ID of the learner to modify |
The request body
string | |
first_name | string |
last_name | string |
title | string |
department | string |
phone | string |
address1 | string |
address2 | string |
city | string |
state | string |
zip | string |
country | string |
custom | string |
manager_name | string |
manager_email | string |
group_name | string |
{- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "title": "string",
- "department": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string",
- "custom": "string",
- "manager_name": "string",
- "manager_email": "string",
- "group_name": "string"
}
{- "id": "string",
- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "learner_profile": {
- "title": "string",
- "department": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string",
- "custom": "string",
- "manager_name": "string",
- "manager_email": "string"
}, - "groups": {
- "data": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "modified": "string"
}
]
}
}
This endpoint retrieves a page of PhishHunter messages.
page | integer (page) >= 1 Default: 1 Which page of results to return |
limit | integer (limit) [ 1 .. 100 ] Default: 20 Number of results to return |
{- "meta": {
- "page": 0,
- "current": 0,
- "count": 0,
- "start": 0,
- "end": 0,
- "pageCount": 0,
- "limit": 0
}, - "data": {
- "id": "string",
- "received": "string",
- "original_file_url": "string",
- "reported": "string",
- "reporter": "string",
- "risk_score": 0,
- "sender": "string",
- "subject": "string",
- "tags": [
- "string"
], - "components": [
- {
- "type": "string",
- "is_malicious": true,
- "data": { }
}
]
}
}
This endpoint retrieves a message and all of its components.
id required | string The ID of the requested message |
{- "id": "string",
- "received": "string",
- "original_file_url": "string",
- "reported": "string",
- "reporter": "string",
- "risk_score": 0,
- "sender": "string",
- "subject": "string",
- "tags": [
- "string"
], - "components": [
- {
- "type": "string",
- "is_malicious": true,
- "data": { }
}
]
}
type | string (TimelineEventType) Enum: "added-to-group" "removed-from-group" "created-learner" "scheduled-in-phish-campaign" "scheduled-in-phish-campaign-run" "sent-phish-email" "phished-learner" "entered-data" "opened-attachment" "opened-phish" "started-phish-training" "completed-phish-training" "detected-outdated-browser" "submitted-phishsim-email" "submitted-phishing-email" "scheduled-in-aware-campaign" "scheduled-in-aware-campaign-run" "started-aware-course" "started-aware-module" "completed-aware-module" "stopped-aware-course" "completed-aware-course" "started-aware-assessment" "completed-aware-assessment" "passed-aware-assessment" "failed-aware-assessment" "stopped-aware-assessment" "stopped-aware-module" "started-aware-reminder" "finished-aware-reminder" "enabled-macro" "fast-clicked" "accepted-policy" "changed-learner-status" "changed-defender-status" "replied" "matched-pattern" "core-behavior-score-changed" "adaptive-assessment-completed" "recommendation-completed" "recommendation-started" Search TimelineEvents by type |
start | string (start) Earliest date (YYYY-MM-DD) TimelineEvent could have occurred (inclusive). |
end | string (end) Latest date (YYYY-MM-DD) TimelineEvent could have occurred (exclusive). |
page | integer (page) >= 1 Default: 1 Which page of results to return |
limit | integer (limit) [ 1 .. 100 ] Default: 20 Number of results to return |
{- "meta": {
- "page": 0,
- "current": 0,
- "count": 0,
- "start": 0,
- "end": 0,
- "pageCount": 0,
- "limit": 0
}, - "data": {
- "id": "string",
- "type": "added-to-group",
- "timestamp": "string",
- "learner_id": "string",
- "campaign": { },
- "quarantined_email": { },
- "browser": { },
- "module": { },
- "campaign_run": { },
- "template": { },
- "learner_group": { },
- "assessment": { }
}
}