Skip to main content
POST
List the policies in the subject's book (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
account_id
string

view=basic and view=renewal. The policies of one account (its instance key).

account_id[in]
string[] | null

view=basic. The policies of these accounts: the parameter repeated once per account id or comma-separated ids, at most 200, read as one statement per page. An id the subject cannot read adds no row. Not with account_id or account_scope. Each row serves its identity half without the premium (number, line, carrier, dates, owners, in force) unless include=term.

Maximum array length: 200
account_scope
enum<string>

view=basic with account_id. all (default): every term on the account, the policies read. register: the account's policies as the account detail serves them (the seat's register scope, with the account executive, representative and revenue columns), in one page; it takes no date, line, instance or cursor.

Available options:
all,
register
active_on
string

view=basic. In force on date.

am_best_rating
enum<string>

view=full. The AM Best rating of each policy's writing company, from the agency's company list. not_rated: AM Best's own NR, the carriers a signed non-AM Best placement acknowledgement covers. not_on_file: the writing company has no AM Best rating on file (often an intermediary in the writing company field), so its rating is unknown. Each row then carries am_best_company, the writing company whose rating matched. The live AMS 360 read refuses it (FILTER_NOT_IN_SOURCE).

Available options:
not_rated,
not_on_file
cancellation_effective_date[gte]
string

view=cancellations, required. The first cancellation effective date (YYYY-MM-DD).

cancellation_effective_date[lte]
string

view=cancellations, required. The last cancellation effective date (YYYY-MM-DD), at most 366 days after the first.

carrier_attribution
string

view=full. The carrier, as the register names it.

certificates
enum<string>

view=renewal. issued keeps renewals with an issued certificate; contractor_board_due keeps those due a contractor board reminder this week. omit requires steps=omit and no facets, rollups or work view; certificates is then unreachable with reason not_requested. contractor_board_due fills renewal.contractor_board_reminder_on and reaches the 90-day reminder with days_to_expiration[lte] of 97 or more.

Available options:
issued,
contractor_board_due,
omit
closed
enum<string>

view=renewal. only returns closed lines; absent excludes them from rows and facets.

Available options:
only
cursor
string

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

days_to_expiration[gte]
string

view=renewal. Inclusive lower day bound, -30 to the window less one. It sits inside the days_to_expiration[lte] window. A sent value always applies, to the rows, the filtered total and the facets alike: 0 is from today and leaves out the renewals already past their expiration, a negative reaches that many days behind it (the register keeps renewals up to 30 days past expiration). Absent, there is no lower bound, unless days_to_expiration[lt] is sent: 1 or more bands the page only, from 0; 0 or below bands from -30 in the rows, total and facets.

Pattern: ^-?[0-9]{1,3}$
days_to_expiration[lt]
string

view=renewal. Exclusive upper day bound, -29 to the window (default the window). At 0 or below with days_to_expiration[gte] absent, the band starts 30 days back (the lookback), so lt=0 is the renewals past their date; at 0 or below it narrows the filtered total and the facets too.

Pattern: ^-?[0-9]{1,3}$
days_to_expiration[lte]
string

Terms expiring within this many days: renewal and full 1 to 400 (default the seat's horizon); basic 1 to 365; certificates_due default 30. Days are counted from the read date; the seat's horizon is its renewal_horizon_days. basic: 1 to 365 with no default; the window always ends that many days after the read date, and policy_expiration_date[gte] moves only its start (policy_expiration_date[lte], when sent, is the end in place of it). full: the window of status=expiring (1 to 400, default is the seat renewal_horizon_days). renewal: 1 to 400, default is the seat renewal_horizon_days. certificates_due: 1 to 400, default 30. view=cancellations does not take it.

Pattern: ^[0-9]{1,3}$
desk_assigned_to
string

view=renewal. The renewal desk's assignee code.

facets
enum<string>[] | null

Facets to count over the filtered policies, on view=full, renewal and cancellations. Each owner, org, carrier and product facet is counted without its own filter, and so is renewal_open (view=renewal: the open, true, and finished, false, renewals under the serving derivation, so a page filtered to renewal_open=true still counts the finished ones). view=full counts producer, client_manager, office, market, carrier_attribution, product (each product name the policies carry, once per name, parent its type; an id outside the org's list is kept with no parent, the org's unknown member labeled No product and any other labeled by its id) and product_type (each type, summed over its products), status and world (each counted without its own filter, the counts the view block shows), and a view=full request at limit=1, with no offset, cursor, include_total or rollups, 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 producer, client_manager, carrier_attribution, product, product_type, status or world, 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; view=renewal counts every one but office_covered (a view=renewal request at limit=1, with no offset, cursor or rollups, whose only facets are office and market is the office list: it reads the summary alone and serves no rows); view=cancellations counts office (every office the scope reaches, with its cancellations) and office_covered (the offices the rows were read from). The stage facet counts the stage on record, not the stage the renewal page shows.

Available options:
producer,
client_manager,
office,
market,
carrier_attribution,
product,
product_type,
policy_line_of_business,
status,
world,
renewal_nature,
risk,
stage,
renewal_state,
renewal_open,
office_covered
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. The register statement keeps no page row. Not with rows_only, cursor or offset (400 FIGURES_ONLY_WITH_ROWS).

focus
enum<string>

view=renewal. only keeps renewals whose account and renewal period meet the retention focus rule. The rule is revenue plus fees of $10,000 or more for the period under one department line, so a seat whose field classes withhold carrier compensation is refused it with 403 FIELD_DENIED.

Available options:
only
full_term_premium_effective[gte]
string

view=full. Premium floor in whole dollars.

Pattern: ^[0-9]{1,12}$
grain
enum<string>

view=renewal. policy (default): one row per renewal; account: each account's nearest renewal.

Available options:
policy,
account
hide.product
string[] | null

view=full and view=renewal. Repeatable: products to hide, each a product id or name (GET /records/products) or a value facets=product returns, its No product value (the org's unknown member) included; none hides nothing. A policy is hidden when its product is one of them; a policy with no product row stays. Not with product or product_type. Default none; a saved view does not carry it. Refused as product is: an id outside the org's list is a 400 (UNKNOWN_PRODUCT), an unreadable list a 503 (PRODUCT_LIST_UNAVAILABLE), a live AMS 360 read a 424 (FILTER_NOT_IN_SOURCE). The product facet counts without it, and on view=full the view block's hidden.by_filter[hide.product] counts the policies it hides.

hide.product_type
string[] | null

view=full and view=renewal. Repeatable: product types to hide (type:<name>, from GET /records/products), each standing for every product of the type; with hide.product, a policy is hidden when either names its product. Not with product or product_type. A type outside the org's list is a 400 (UNKNOWN_PRODUCT_TYPE); otherwise refused as hide.product is.

hide.status
string

view=full. Statuses to hide, comma-separated: in_force, ended (expired or not yet in force), cancelled, or none. Default cancelled,ended, which keeps in-force terms. 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, 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
string[] | null

view=basic. Up to 100 policy ids.

include
enum<string>

view=basic with account_id[in]: term adds each row's term half (the premium with its quality and basis) and product.

Available options:
term
include_total
boolean

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

instance
string

view=basic. The source instance (datasource) the policies were read from.

limit
integer<int64>

Page size. Defaults to 25. For view=cancellations, larger values are coerced to 5000. view=basic accepts up to 10000; view=full, view=renewal and view=certificates_due accept up to 100. Values above each view's ceiling are reduced with a LIMIT_COERCED warning. AMS 360 bound-seat policy-number lookup accepts up to 200.

Required range: x >= 1
market
string

view=full. A reporting market; all is no filter.

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. view=renewal: an office (agency) code.

office_name
string[] | null

view=cancellations, repeatable, at most 20. An office by name or agency code as the reader wrote it. Each resolves only against the offices the acting seat's scope reaches; one that reaches none is echoed as an OFFICE_NOT_VISIBLE warning and adds no rows.

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 and view=renewal. 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 policy, 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
policy_expiration_date[gte]
string

view=basic. Terms expiring on or after this date (YYYY-MM-DD or RFC 3339).

policy_expiration_date[lte]
string

view=basic. Terms expiring on or before this date (YYYY-MM-DD or RFC 3339).

policy_id
string

view=renewal. Exact Records policy identity.

policy_line_of_business
string

Keeps policies whose line of business equals this text. view=basic matches it exactly; view=full, view=renewal and view=cancellations ignore case. view=certificates_due and account_scope=register do not take it.

policy_number
string

basic: exact number. Matching ignores case, spaces and punctuation. AMS 360 bound seats: this filter plus subject and pagination only, up to 200 rows per page.

product
string[] | null

view=full and view=renewal. Repeatable: products to keep (ids or names, GET /records/products). OR within product and product_type, AND with other filters. An id outside the org's list is a 400 (UNKNOWN_PRODUCT); an unreadable list is a 503 (PRODUCT_LIST_UNAVAILABLE); a live AMS 360 read, which carries no product, is a 424 (FILTER_NOT_IN_SOURCE). The product facet's No product value (the org's unknown member, the source's own no-product row) selects the policies recorded with no product. Not with hide.product or hide.product_type.

product_type
string[] | null

view=full and view=renewal. Repeatable: product types to keep (type:<name>, from GET /records/products). OR'd with product. A type outside the org's list is a 400 (UNKNOWN_PRODUCT_TYPE); otherwise refused as product is.

q
string

view=full. A prefix of the policy number or of the account's name.

reinstated
enum<string>

view=cancellations. Whether policies AMS 360 reinstated after their cancellation are kept. exclude (default) drops them; include keeps each with its reinstated_on; only keeps just those.

Available options:
exclude,
include,
only
renewal_nature
enum<string>

view=renewal. Keeps renewals of one renewal nature. Sending it computes nature, risk and facets in SQL.

Available options:
renews,
one_time,
multi_year,
bond_continuous,
bond_term,
non_renewed
renewal_open
enum<string>

view=renewal. true: open work, the upcoming renewals the Renewals page lists; false: finished. Finished is renewed, lost and the like. It narrows the rows, the filtered total and the facets; with days_to_expiration[lt]=0, true is the open renewals past their date.

Available options:
true,
false
renewal_state
enum<string>[] | null

view=renewal, repeatable. Keeps renewals in any of these states. It applies to the rows, the filtered total and the facets, and narrows the renewal_state, producer, client_manager, office, market, policy_line_of_business and carrier_attribution facets; the renewal_state facet does not leave out its own filter, so it counts only the states asked for.

Available options:
open,
information,
remarketing,
quoted,
proposal_out,
bind_requested,
offer_in,
renewed,
overdue,
renewed_then_cancelled,
rewritten,
lost,
cancelled,
non_renewed,
confirm
risk
enum<string>

view=renewal. Keeps renewals at one risk level. The read derives the level for each renewal (from its workflow stage and days to expiration, among other things); it is not a stored field.

Available options:
at_risk,
watch,
steady
rollups
enum<string>[] | null

view=basic with account_id: renewal_workspace answers the selected term workspace; the page is the account's register terms, under either account_scope. view=full: register answers its side figures in rollups.register. view=renewal: renewals answers its counts and figures in rollups.renewals. Each uses the page's own read.

Available options:
register,
renewals,
renewal_step,
renewal_workspace
rows_only
boolean

view=full. true reads the page's rows and page.next alone, and the answer says so with rows_only: true. total, facets, view and rollups are absent, never 0: the read does not count them. Not with include_total, facets or rollups (400 ROWS_ONLY_WITH_FIGURES). A cursor does not carry it: send it on every page of a rows-only list.

sort
enum<string>

Sort key (default policy_expiration_date; view=basic: only it). view=cancellations sorts by cancelled_on (its default, ascending), account_name, office or cancel_type, a leading - reversing the key; every other view refuses those three keys, and view=cancellations refuses the other keys. raw_producer_name sorts view=full only. contractor_board_reminder_on sorts view=renewal with certificates=contractor_board_due only, by the day each reminder is due.

Available options:
policy_expiration_date,
-policy_expiration_date,
policy_number,
-policy_number,
account_name,
-account_name,
carrier_attribution,
-carrier_attribution,
full_term_premium_effective,
-full_term_premium_effective,
account_executive_name,
-account_executive_name,
account_representative_name,
-account_representative_name,
raw_producer_name,
-raw_producer_name,
contractor_board_reminder_on,
-contractor_board_reminder_on,
cancelled_on,
-cancelled_on,
office,
-office,
cancel_type,
-cancel_type
stage
enum<string>

view=renewal. Keeps renewals at one workflow stage. not_recorded keeps those with no stage recorded; not_started keeps those too, beside the renewals recorded as not started. It matches the stage on record, not the stage the renewal page shows, so a row it keeps can show another stage.

Available options:
not_recorded,
not_started,
reviewing,
hold,
remarketing,
renewing_as_is,
quoted,
proposal_out,
bind_requested,
bound,
non_renewed,
lost,
closed
status
enum<string>

view=full: absent, hide.status applies; expiring: in force and within days_to_expiration[lte]. view=basic takes in_force (terms in force on the read date; an active_on you send wins) and all (no filter, the basic default); expiring is a 400 there.

Available options:
in_force,
expiring,
all
steps
enum<string>

view=renewal. omit serves each row's standing without its renewal steps, and the step statement does not run. steps, next_step_key, next_step_label, next_status_key, next_step_due, next_step_args, available_decisions and hold_path are then unreachable with reason not_requested.

Available options:
omit
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.

view
enum<string>

basic (default): policy terms; full: policy register; renewal: renewal register; certificates_due: renewals with certificates; cancellations: cancelled terms. basic: the policy term rows in expiration order; its limit goes up to 10000, for a walk of the whole relation. full: the register's rows with its filters, sorts and facets. renewal: the renewal register's rows (each term in force at the read pin expiring inside the window, with its renewal block). certificates_due: renewal rows whose policy carries a live certificate, soonest first, reading the subject, days_to_expiration[lte] (default 30), limit, offset and include_total. cancellations: the terms AMS 360 recorded a cancellation on inside cancellation_effective_date[gte] to [lte], oldest first, reading the subject, its own filters, world, policy_line_of_business, limit, offset, include_total and facets=office,office_covered.

Available options:
basic,
full,
renewal,
certificates_due,
cancellations
work_view
enum<string>

A named work window with its own date bounds, order and row cap. Omit date/order/page-size parameters with this selector.

Available options:
today,
market_insight,
certificates,
retention_review
workspace_policy_id
string

The admitted account policy whose renewal workspace is requested. Requires account_id and rollups=renewal_workspace. Absent selects the soonest-expiring admitted term.

world
enum<string>

view=full and view=renewal. One book; all is every book. With no book named, view=renewal leaves out benefits and life renewals (a renewal list is a property and casualty desk's); view=full reads every book; view=cancellations reads every book unless one is named.

Available options:
commercial,
personal,
benefits,
life,
other,
all

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.

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.

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 alone. total, facets, view and rollups are absent because they were not read, not because they are 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 policies it returns under every other filter), its default and the value this read applied, and how many policies they hide. A read with hide.product also counts the policies it hides in hidden.by_filter[hide.product] and in hidden.total. Absent on other views and on a live read.

work_window
object