Skip to main content
GET
Read the agency's employees

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Act-As
string

The member the read is made for (a WorkOS user id). Unset keeps the org-wide posture the key alone grants.

Nexio-Act-As-Email
string

The acting member's verified email, lowercased. Ignored without Nexio-Act-As.

Nexio-Consumer
string

The calling application (workbench).

Nexio-Consumer-Build
string

The calling application's build.

Nexio-Consumer-Vocabulary
string

The access vocabulary hash the calling build was generated against.

Nexio-Request-Id
string

A caller-chosen request id, echoed in the Nexio-Request-Id response header.

Nexio-Timeout
string

The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.

Query Parameters

limit
integer<int64>

Page size, 1 to 50. Defaults to 20; a larger value is coerced to 50 with a LIMIT_COERCED warning.

Required range: x >= 1
cursor
string

The opaque page.next of the previous page. The search is frozen inside it.

include_total
boolean

true adds total (directory views).

subject
string[] | null

The book to read (directory views): own, book:<code> or member:<member id>.

view
enum<string>

Reads the employee directory live from the system of record, for a seat bound to it, list (the agency employees), all, directory, full, by-type, one employee by code, short name or last-name prefix, or search (the basic-information search). A seat the warehouse serves answers a view's absence.

Available options:
list,
all,
by-code,
by-last-name,
by-short-name,
by-type,
directory,
full,
search
employee_code
string

An employee code (by-code, required; search narrows to it).

ams360_datasource
string

Narrow by-code on a warehouse seat to one AMS 360 datasource: a connected one, or the one a policy's employee codes came from (its personnel_datasource) when an in-force policy carries the code from it. A seat denied employee names reads no row of an unconnected one.

short_name
string

An employee short name (by-short-name, required; search narrows to it).

last_name_prefix
string

A last-name prefix (by-last-name, required).

include_executive
string

true to include executives (by-type).

include_other
string

true to include other employees (by-type).

include_representative
string

true to include representatives (by-type; the source needs at least one include flag).

include_sales_center_representative
string

true to include sales center representatives (by-type).

employee_type
string

Narrow to an employee type (search).

first_name
string

Narrow to a first name (search).

last_name
string

Narrow to a last name (search).

status
string

Narrow to a status (search).

Response

OK

data
object[] | null
required

One page of the collection, in the requested sort order.

page
object
required
request_id
string
required

The request id, as echoed in the Nexio-Request-Id response header.

source
object
required
unreachable
object[] | null
required

Parts of the answer no source could fill, each with its reason. Empty when every part was filled.

warnings
object[] | null
required

Adjustments the platform made to the request (a coerced limit, a dropped facet).

facets
object

Present only for the facets the request named in facets=.

missing_count
integer<int64>

For a hierarchy read, source records missing the requested level after source filters, before name/ID filters and pagination. Present even when zero or the page is empty.

total
object

Present only when the request sent include_total=true.