Skip to main content
POST
List the accounts in the subject's book, filterable by class (industry) (parameters in the body)

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.

Body

application/json
class_id
string[] | null

view=full. A class id of GET /records/classes. It is a 2022 NAICS code or prefix (an industry); repeat it for more than one class. Keeps the accounts with evidence of the class: the account's NAICS falls under it; or, for an account with no NAICS, its AMS 360 SIC is one the class's concordances carry or one of its in-force policies carries a general liability class code that fits the class (the class's own codes of GET /records/classes/{id}/rating-codes, read by at least 3 of its customers). An account whose NAICS lies outside the class is not kept. Each row names its class_basis; facets=class_basis and rollups=class_coverage say how the count rests. class_id=none, alone, keeps the accounts rollups=class_mix places in no sector, its unclassified row; with rollups=class_mix the mix still counts every account the other filters keep. class_id=no_naics, alone, keeps the accounts with no NAICS code on file (the client's, or failing it its policies'), whatever their SIC or GL class codes say: the accounts rollups=class_coverage counts outside with_naics.

Maximum array length: 10
client_name[contains]
string

view=full. Words in the client name, DBA or a named insured.

client_name[in]
string[] | null

view=basic. Client names to resolve, the parameter repeated once per name, at most 200 names of at most 200 characters. Each is matched by its entity-name key (name_key) against the account's client name, and answered in names as matched (one account), ambiguous (the candidate accounts) or unmatched; the data rows are those accounts. One page that holds every candidate, whatever the limit: no cursor, client_name[prefix] or facets. An account the subject cannot read is never a candidate.

Maximum array length: 200
client_name[prefix]
string

view=basic. Words in the client name, its DBA or a named insured, spacing and punctuation ignored. Every prefix of a name matches.

client_state
string

view=basic. Two-letter state of the account's address.

cursor
string

The opaque page.next of the previous page. Filters, sort and subject are frozen inside it.

facets
enum<string>[] | null

Facets to count; each view takes its own. view=full: facets to count over the subject's filtered accounts (each owner and org facet is counted without its own filter; a view=full request at limit=1, with no offset, cursor, include_total, rollups, id[in] or class_id, whose only facets are office and market is the office list: it reads the org facet alone and serves no rows, total or view block; the same request naming exactly one of status, world, producer or client_manager, with no rows_only or figures_only, counts that facet alone, the full read's count for the same filters, and serves no rows, total or view block); class_basis (with class_id) counts them by why they are in the class: naics, sic or gl_code. view=basic: office and market only, counted over the seat's whole boundary, so they take no subject and no filter; each is a bounded list of the connection's offices (label, parent market) or markets with their account counts.

Available options:
status,
world,
producer,
client_manager,
office,
market,
class_basis
figures_only
boolean

view=full. true reads the figures alone, with no rows. total (with include_total), facets, view and rollups each match the full read's for the same filters; data is empty, page.next is absent and the answer says figures_only: true. No page statement runs. Not with rows_only, cursor, offset or id[in] (400 FIGURES_ONLY_WITH_ROWS).

hide.status
string

view=full. Statuses to hide, comma-separated: active, cancelled, ended, or none. Default cancelled,ended, which keeps active accounts. Not with status. Left out with status, world and the other hide filter, the person's saved view or the default applies. The view block counts each status under every other filter.

hide.world
string

view=full. Worlds to hide, comma-separated: commercial, personal, mixed (both), benefits, life, other, or none. Default none. Not with world. Left out with status, world and the other hide filter, the person's saved view or the default applies.

id[in]
string[] | null

view=basic and view=full. Only these accounts: comma-separated account ids, at most 200 (in the search form's body, a JSON array or one comma-joined string). An id the subject cannot read is absent from the answer.

Maximum array length: 200
include_total
boolean

true adds total, the row count of the whole relation.

limit
integer<int64>

Page size. Defaults to 25. The maximum is 200 for basic and 100 for full. Larger values are coerced to the view maximum with a LIMIT_COERCED warning.

Required range: x >= 1
market
string

view=full. A reporting market by its name, a state or a group of states; facets=market lists the markets the seat reaches. A region that groups several markets is platform. all is no filter.

no_active_owner
enum<string>[] | null

view=full. Repeatable: producer, client_manager. Keeps the accounts whose current owners on that axis include no active person: every AMS 360 code the account's in-force policies name on the axis (or, with none in force, its recent policies) is inactive in AMS 360, belongs to a person Dayforce shows terminated or retired, or is a house or agency code no person holds, or the policies name no one. Both axes keep the accounts with neither an active producer nor an active client manager. Each row still names the owner its policies carry, so a departed producer reads by name.

Maximum array length: 2
Available options:
producer,
client_manager
office
string

view=full. An office by name or agency code. A name resolves only against the offices the acting seat's scope reaches and narrows to every office it names, echoed as an OFFICE_RESOLVED warning with each office's label and code; a name that reaches none reads no rows and is echoed as OFFICE_NOT_VISIBLE.

offset
integer<int64>

Rows to skip, register views only: at most 1000000, not with cursor. A later page continues with page.next.

Required range: x >= 0
owner_q
string

view=full. Words that each start a word of an owner's name, or equal an owner's AMS 360 code, in any order, at most 64 characters. It narrows the producer and client_manager facets' lists (search a list the facet cap cut) and selects no account, moves no count and reads under the same admission. With facets=producer or facets=client_manager at limit=1 it is the one-facet read.

Maximum string length: 64
part
enum<string>

view=basic with client_name[prefix], first page. in_book answers only the acting seat's own accounts whose name matches, each admitted, ranked and cut to limit. They are read live from the source. The answer is always incomplete (incomplete: true, no total, no cursor): it is the fast part, and the rest of the search is the same request without part. include_total is ignored. A cursor, a name list, a key list, a state or tenant filter, or facets is a 400 (FILTER_NOT_IN_VIEW). A seat or scope the platform cannot read by its own book (a leader, a whole-book seat, a linked seat) answers no rows, still incomplete. Absent, the search answers as before.

Available options:
in_book
platform
string

view=full. A platform, a region that groups several markets, as SOUTH. A state or a market name goes in market.

premium[gte]
string

view=full. Premium floor in whole dollars, over premium: under a producer or client manager subject, that person's own policies on the account.

Pattern: ^[0-9]{1,12}$
q
string

view=finder. Name to search. Absent lists the seat accounts by name.

rollups
enum<string>[] | null

view=full. register: the register side figures, in rollups.register. Each rollup is read by the page's own statement. class_coverage (with class_id) answers in rollups.class_coverage how far class evidence reaches in the same scope and filters without the class: commercial accounts, those with a NAICS, and those with any class evidence. class_mix (no class_id but class_id=none or class_id=no_naics, no typed name or cursor) answers in rollups.class_mix the industry mix of the filtered accounts: each account in one NAICS sector, with accounts and in-force premium per sector and an unclassified row. With class_id=no_naics the mix counts only the accounts with no NAICS, each placed by its SIC or GL class code.

Available options:
register,
class_coverage,
class_mix
rows_only
boolean

view=full. true reads the page's rows and page.next alone, and the answer says so with rows_only: true. facets and view are absent, never 0: the read does not count them. Not with facets unless with include_total (400 ROWS_ONLY_WITH_FIGURES). With include_total, and rollups=register and facets beside it, a first page also asks for total and rollups.register's accounts and slice from the rows' own statement: a warehouse page counts them in that one statement, and a page whose source counts none answers them in unreachable (no_aggregate), which figures_only then reads. A first page whose own read decided the seat's whole book, under a list row that reads its figures from the same source, also serves total, the named facets, view and all of rollups.register (accounts, attention, slice, book, definition) from that same decision, as figures_only serves them, with no second request; own_book stays figures_only's. That takes no cursor, offset, id[in], class_id or other rollup, and rollups needs include_total (400 ROWS_ONLY_WITH_FIGURES). Without include_total, total and rollups are absent. A cursor does not carry it: send it on every page of a rows-only list.

sort
enum<string>

The sort key; each view has its own keys and default. view=full: x_date (default), -completeness, -premium, client_name, producer_name, client_manager_name. Each field sorts one way. -commission_ttm is retired and reads the x_date order: the register reads no commission. It leaves this list once no client sends it.

Available options:
x_date,
-completeness,
-premium,
-commission_ttm,
client_name,
producer_name,
client_manager_name
status
enum<string>

view=full. Keeps accounts of one register status. Absent means hide.status applies.

Available options:
active,
cancelled,
ended
subject
string[] | null

The book to read, as tokens, repeatable: own (the acting seat's own codes), book:<code>, producer:<me|code>, client_manager:<me|code> (the two axes AND; repeats within one OR), member:<member id> (read as another member). Absent: the seat's can-open boundary. Frozen in the cursor.

tenant_id
string

view=basic. Keeps accounts read from this AMS 360 instance (tenant_id).

view
enum<string>

basic (default): the client record; full: plus its policy figures. basic: the client record, the roster read. full: the client record plus what the account's policies derive (status, world, premium, x-date, owners), the register read. finder: the account finder, a name search over the client name, its DBA and its named insureds (q), ordered by name, with name_key and name_exact on each row; it reads q, subject, limit (at most 100), cursor and include_total.

Available options:
basic,
full,
finder
world
enum<string>

view=full. Keeps one world; commercial and personal each include mixed accounts.

Available options:
commercial,
personal,
benefits,
life,
other,
mixed
x_days[lte]
string

view=full. Accounts whose next x-date is within this many days (at most 3650). The register's attention window is 150.

Pattern: ^[0-9]{1,4}$

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=.

figures_only
boolean

true when the request sent figures_only: the answer holds the figures alone. data is empty because no row was read, not because the register is empty.

incomplete
boolean

The page holds part of the answer: either the finder stopped before all candidates were decided (rows have provisional rank and no exact total), or more accounts matched than the page holds (its first rows by rank, with the exact total). Search Accounts for the complete result.

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.

names
object[] | null

view=basic with client_name[in]: each name sent, in the order sent, with what it resolved to.

own_book
object[] | null

view=full with figures_only, served from the Data API whole-book fold: the seat's own book as a compact name list, every account the fold admitted for the seat and no other. A browser matches typed text against name_key with no further read. Absent on any other read, on a warehouse-served read, on a read with a world filter or x_days[lte] (its fold keeps only the filtered accounts) and on a seat whose book the fold does not read whole.

rollups
object

Present only for the rollups the request named in rollups=, each computed by the same read as the page.

rows_only
boolean

true when the request sent rows_only: the answer holds the page's rows and page.next, and total and rollups.register's accounts and slice only when the request sent include_total and the rows' own statement counted them; with the named facets, view and all of rollups.register when that read decided the whole book (never own_book). Anything absent was not read, not 0 or empty.

total
object

Present only when the request sent include_total=true.

view
object

view=full: the register's view filters, hide.status and hide.world, each with its options (every value, its label and the accounts it returns under every other filter), its default and the value this read applied, and how many accounts they hide. Absent on a live read.