Skip to main content
POST
Find AM Best classes (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
connection_id
string

The catalog connection to read. Absent: the org's single active connection.

cursor
string

The opaque page.next of the previous page. The filters are frozen inside it.

facets
string

With view=index, corpus counts the corpus: records (its records) and classes (the index's rows before any filter).

hide.sector
string

view=search: Census sector keys to leave out, comma separated (23, 48-49; unpublished for classes with no sector); none hides nothing.

include_total
string

true adds total, the row count of the filtered collection.

industry_group
string

view=search: only classes under this 4-digit NAICS industry group.

limit
string

Page size. Defaults to 25; the collection's maximum is 100 (1000 for the summary view), and a larger value is coerced with a LIMIT_COERCED warning.

naics
string

A NAICS code or prefix. resolve prefers exact-code records by the reviewed class rule; with no exact match it chooses the newest prefix candidate. index serves the classes whose code starts with it.

q
string

view=search: a producer's words or a NAICS or SIC code. Empty: the whole register in name order. At most 4000 characters.

A search over the class title. Not with view=index.

sort
enum<string>

view=search: the hits' order; rank (the default) is the ranker's.

Available options:
rank,
name,
-name,
industry_group,
-industry_group
view
enum<string>

list (default) browses the corpus, one row per record; resolve chooses one record for a NAICS code or prefix and serves its class name and stand-in basis; index serves one row per covered NAICS code (ClassIndexRowJSON): the record the code's choice reads, named as its playbook names it, ordered by name, at most 200 per page; include_total counts its rows and facets=corpus counts the corpus's records and classes. The register views serve one row each, read from the whole corpus: search ranks the class register against q (ClassSearchJSON), taxonomy serves the NAICS 2022 title table and the register's sector tree (ClassTaxonomyJSON). An account's evidence is ranked by POST /records/class-knowledge/candidates.

Available options:
list,
resolve,
index,
search,
taxonomy

Response

OK

data
object[] | null
required

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

view=list and view=resolve: a class knowledge record (ClassKnowledgeItemJSON). view=index: ClassIndexRowJSON. view=search: ClassSearchJSON. view=taxonomy: ClassTaxonomyJSON.

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.