Skip to main content
Read one person's AutoPhish history

Authorizations

Authorization
string
header
required

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

Scopes

phishing:admin

AutoPhish activity and settings

Path Parameters

userId
string<uuid>
required

The person to read. A userId comes from GET /v1/autophish/activity or GET /v1/autophish/sends/ambiguous

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

window
enum<string>

A period ending now: 7d, 30d, 90d or 12m. Defaults to 30d. Omit it to give from and to instead

Available options:
7d,
30d,
90d,
12m
from
string<date>

A custom period's first day, UTC. Give it with to, in place of window

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

A custom period's last day, UTC, included. Today or later reads to now

Pattern: ^\d{4}-\d{2}-\d{2}$

Response

What was asked for.

enrollment
object
required
person
object
required
program
object
required
sends
null | object[]
required

The period's delivered simulations, newest first

totals
object
required
window
object
required

The period as resolved, which is the past 30 days when none was given