Skip to navigation

List completions

A paginated list of the customer’s training completions. Each request covers at most one year of completions: filter[completedFrom] defaults to 12 months before filter[completedTo] (or today, UTC), and meta.window reports the window applied.

Authentication

AuthorizationBearer

Customer API key (ghk_…). Your organization’s System Admins create keys on the PHQ Integrations page; a key is shown once. Send it as Authorization: Bearer ghk_….

Query parameters

page[number]integerOptional>=1Defaults to 1

1-based page number.

page[size]integerOptional1-200Defaults to 50

Page size (max 200).

filter[completedFrom]dateOptional

Only completions on/after this date (YYYY-MM-DD, UTC). Defaults to 12 months before completedTo (or today, UTC) when omitted. completedFrom and completedTo can be at most 1 year apart, and completedFrom must be on or before completedTo (otherwise 400 invalid_parameter); request older history one year at a time (e.g. completedFrom=2018-01-01&completedTo=2018-12-31).

filter[completedTo]dateOptional

Only completions on/before this date (YYYY-MM-DD, UTC). When omitted there is no upper bound and the 1-year limit is measured from today (UTC), with one extra day allowed so a client west of UTC can send its local date.

filter[trainingType]stringOptional

online, ilt, other; comma-separated list.

filter[training]stringOptional

trainingId; comma-separated list.

filter[group]stringOptional

Group id or name (use -1 for employees in no group).

filter[assignmentType]enumOptionalDefaults to all

assigned, self_assigned, or all (default: all).

Allowed values:
filter[compliance]enumOptional

Filter by on-time vs late completion.

Allowed values:

Response

A page of completions.
datalist of objects
metaobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
503
Service Unavailable Error