Skip to main content
GET
The Markets directory

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

product
string[] | null

Repeatable. Rows whose appetite names one of these products (ids of /records/products) with an acceptable or will-consider stance, read at each appetite row's declared grain. An id outside the org's list is refused.

product_type
string[] | null

Repeatable. Rows whose appetite names one of these product types (type ids of /records/products?level=type). One question with product: a row answers either.

state
string[] | null

Repeatable. Rows confirmed in one of these states (two letters each). Ask every state of a question in one call: each row's state_evidence answers every asked state (listed, excluded or not_on_file, with the line codes), and view=brief serves that answer for every row without cutting the page. A state question reads with has_appetite left out: many carriers that write every asked state have no class appetite on file.

state_evidence
enum<string>

listed keeps only the rows whose products list the asked line in at least one asked state: the markets that write in some of the states, each with state_evidence for every asked state. Use it with state for a several-state question, with hide.answer none, so a market with no class appetite on file still answers. Applied before the counts and the page; with no state asked it keeps every row.

Available options:
listed
line
string

A line code question, a code of GET /records/products?view=lines (for example workers_comp); the directory answers one. Any other value is a 400 (invalid_line).

class_naics
string

A NAICS class the appetite must name.

ask
string

A plain-language question resolved to a class, line and state.

Words that start the row's names or its written papers' names.

view
enum<string>

full (the default): each row as the Markets screen draws it, with every written paper, the AMS identity, the paper standing (appointment) and the provenance. brief: each row's answer to the question only: market_ref, entity_key, name, market_type, am_best_rating, office_appointment (the seat's office appointment, the row's one appointment fact), match_status, match_unknown_reasons, class_appetite, state_evidence, class_detail, appetite_grade, line_codes, appetite_class_count, appetite_context, book_placed, book_lines, written_paper_count, product_matches and asked_product_count, each as full serves it. states: the brief row for a several-state question, about 0.5 KB a row: market_ref, entity_key, name, market_type, am_best_rating, office_appointment, match_status, match_unknown_reasons, class_appetite, state_evidence, appetite_grade, line_codes, appetite_class_count and written_paper_count, plus firm_appointments under appointment=any_office. Filters, counts, order and page are the same in every view.

Available options:
full,
brief,
states
sort
enum<string>

With none asked, the default: verdict when a naics is asked, else premium_placed for a seat with an office list and most_complete otherwise (the envelope's sort names the applied order). most_complete, name, office (the seat's office's appointed rows first), premium_placed or policies_placed (the most premium or policies the scope placed with the market first, the business book_placed counts; with premium_placed each row carries premium_placed, unless premium_withheld is true, when policies_placed applies instead), policies_in_force (the former name of policies_placed, the same order), rating (A.M. Best rating, best first, unrated last), or verdict (with the carrier appetite model on, the rows carrying appetite_grade first, by grade: Excellent, Good, Fair, Weak, then Not enough on file, the rows the question excludes after them, with the order below breaking ties; then the asked class's class_appetite.eligibility: acceptable, then will_consider, then no class answer, then not_a_market with every row the question excludes, which only this sort lists; inside each, first the rows whose class answer states the asked class itself, then those whose class_appetite.match_grain is class, then by channel: the seat's office's appointed direct carriers, then intermediaries it is appointed with or wrote through, then other direct carriers, then the preferred wholesalers, then every other wholesaler or MGA; with no naics asked, that channel order alone). Ties fall to the default order.

Available options:
most_complete,
name,
office,
premium_placed,
policies_placed,
policies_in_force,
rating,
verdict
scope
enum<string>

Whose business each row's book_placed and the placed sorts count: firm (the default), the whole firm; office, the seat's office (the office parameter's, else its own); book, the policies the seat's own producer codes hold. Each counts the same business: commercial-lines policies placed in the last five years with a NAICS sector, and their customers. The envelope's scope names the scope answered and the ones this seat can ask for; asking for one it cannot is a 400 (scope_unavailable).

Available options:
firm,
office,
book
page
string
page_size
string

Rows per page, 1 to 1000.

closing_hour
string

With a class asked: the hour the risk closes, on the business-day clock: 21 (9 PM) to 28 (4 AM), or 48 (open around the clock); all (or empty) states none. A row leaves the list only when every source it folds that answers the class states a limit refusing it; a row whose sources state no closing-hour limit stays, and each listed row's class_detail says which. Left out, none applies: a saved view never holds it, and a line, state or plain question ignores it. The view block lists each value with the rows it keeps.

annual_sales
string

With a class asked: the risk's annual sales in dollars, one of the values the view block lists (250000 to 50000000); all (or empty) states none. A row leaves the list only when every source it folds that answers the class states a limit refusing it; a row whose sources state no sales limit stays, and each listed row's class_detail says which. Left out, none applies: a saved view never holds it, and a line, state or plain question ignores it.

hide.answer
string

unknown leaves out the rows whose answer to a line, class or state question is not on file; none (or empty) shows them. Left out, the person's saved view or the default applies: hidden for a line or class question, shown for a state question. A read with no such question ignores it. The view block lists the value with its count.

include_terminated
enum<string>

true lists terminated appointments. Left out, the person's saved view or the default (false) applies.

Available options:
true,
false
include_empty
enum<string>

true lists rows with no profile on file. Left out, the person's saved view or the default (false) applies.

Available options:
true,
false
has_appetite
enum<string>

true keeps only rows with appetite on file (for the asked class, when one is asked), and drops every row whose appetite is not on file, even one confirmed in every asked state. Leave it out for a state or line question. Left out, the person's saved view or the default (false) applies.

Available options:
true,
false
has_rating
enum<string>

true keeps only rows with a usable AM Best rating. Left out, the person's saved view or the default (false) applies.

Available options:
true,
false
appointment
enum<string>

Only rows of one appointment relationship with the carrier: at_office (the seat's office is appointed or wrote through it: appointed and written_here together), appointed (the acting seat's office holds an appointment, at market or office level), written_here (the seat's office holds none, but its carrier market sold with the carrier in the trailing 12 months), or any_office (the seat's office is appointed, or another office of the firm holds an appointment code row with the carrier; each row's firm_appointments then names the offices to place through, the seat's own first, and another office's appointment is never the seat's office's). Absent keeps every row. Applied before the counts and the page. appointed, written_here and any_office list carriers with an empty profile too; at_office keeps include_empty's rule; a seat with no resolved office answers no rows for appointed, written_here or at_office. any_office answers 503 firm_appointments_unavailable when the firm's appointments cannot be read.

Available options:
appointed,
written_here,
at_office,
any_office
office
string

An office agency code to read as: one of the seat's own offices, or for a seat with Markets edit (the carrier team, an administrator) any office of the org. Absent, the seat's own office.

Maximum string length: 40
entity_key
string

Only this catalog head's row (its entity key), with group_companies: the companies of its group that keep their own card. The carrier page's one-row read: the list view's toggles (include_empty, include_terminated, hide.answer, has_appetite, has_rating) never hide it. A head folded under another head has no row of its own and answers none.

Maximum string length: 200
datasource_id
string

With company_id: only this AMS source row.

company_id
string
connection_id
string

The catalog connection; absent, the org's single active one.

source_connection_id
string

The Markets directory source connection; absent, the org's bound one.

facets
string

Comma separated: product, product_type. Counted by the platform over the rows that answer every filter but the product question, under the seat's directory scope; only values a row's appetite names appear.

Narrows the product facet to values whose name or mapped carrier wording contains this text.

Response

OK

appetite_markets_on_file
integer<int64>
required
confirmed_count
integer<int64>
required
has_prohibited_class_data
boolean
required
hidden_empty_count
integer<int64>
required
inputs
object[] | null
required
items
object[] | null
required
page
integer<int64>
required
page_size
integer<int64>
required
premium_withheld
boolean
required

True when this read withholds placed premium, whatever its sort: no row carries premium_placed and no order uses it. Premium shows only with scope=book, or scope=office for the seat's own offices. It is withheld for the whole firm, for another office a Markets editor names, and for the platform offices a platform leader places through. Withheld is never 0.

product_filter_active
boolean
required
product_less_markets
integer<int64> | null
required
rated_markets_on_file
integer<int64>
required
scope
object
required
serving
object
required
sort
enum<string>
required

The order the read applied: the asked sort, or with none asked the default, verdict when a naics is asked, else premium_placed (most business first) for a seat with an office list and most_complete otherwise. When premium_withheld is true, policies_placed replaces premium_placed, asked or default.

Available options:
most_complete,
name,
office,
premium_placed,
policies_placed,
policies_in_force,
rating,
verdict
state_counts
object
required
terminated_count
integer<int64>
required
total_corpus
integer<int64>
required
total_directory
integer<int64>
required
total_matched
integer<int64>
required
total_matched_before_appetite
integer<int64>
required
unknown_count
integer<int64>
required
written_papers_total
integer<int64>
required
answering_count
integer<int64>

Under a NAICS question only: how many of the listed markets answer it, their stated appetite for the class acceptable or will consider. Markets with no class answer on file and markets the question excludes stay listed (total_matched, which sizes the pages) and are not counted here.

facets
object
firm_appointments_unavailable
boolean
firm_appointments_unplaced
object

When the firm's appointments were read: the code table's carrier labels placed on no row, ambiguous or unmatched. A row without firm_appointments offices is then not proof that no office holds one.

office_appointments
object
office_appointments_unavailable
object
question
object
view
object