Relativity6Platform Docs
POST/classification

Multi classification

Classifies a business into multiple code systems in one request. Toggle NAICS, SIC, MCC, and GL independently with include flags. For a single code system per call, use POST /marvin2 instead.

Base URLhttps://classification.relativity6.com

Authentication

Send your API key in the x-api-key header. Send your API key in this header on every request. Modern keys use the format r6-<keyId>.<secret>.

Request body

FieldTypeRequiredDescription
namestringRequiredCompany name to classify.
statestringOptionalUS state or region. Improves match accuracy when provided.
addressstringOptionalStreet address.
citystringOptionalCity.
zipstringOptionalPostal or ZIP code.
countrystringOptionalCountry.
predictionTypeenumOptionalNAICS code set when includeNAICS is true.Default: USA_NAICS_2017USA_NAICS_2017 · USA_NAICS_2022
searchIntelligenceenumOptionalResearch depth. Defaults to low when omitted.low · medium · high
includeNAICSbooleanOptionalReturn hierarchical NAICS predictions under codes.naics.Default: true
includeSICbooleanOptionalReturn SIC predictions under codes.sic.Default: false
includeMCCbooleanOptionalReturn MCC predictions under codes.mcc.Default: false
includeGLbooleanOptionalReturn ISO CGL general liability predictions under codes.gl.Default: false
NAICSOptionsobjectOptionalOptions when includeNAICS is true.
numberOfPredictionsnumberOptionalNumber of ranked NAICS predictions to return.Default: 2
predictionLevelsnumber[]OptionalNAICS digit levels to include for each prediction (for example 2, 4, and 6).Default: [6]
SICOptionsobjectOptionalOptions when includeSIC is true.
numberOfPredictionsnumberOptionalNumber of ranked SIC predictions to return.Default: 2
MCCOptionsobjectOptionalOptions when includeMCC is true.
numberOfPredictionsnumberOptionalNumber of ranked MCC predictions to return.Default: 2
GLOptionsobjectOptionalOptions when includeGL is true.
numberOfPredictions1 | 2OptionalNumber of ranked GL predictions to return.Default: 2

Response

FieldTypeRequiredDescription
codesobjectRequiredPredictions grouped by code system. Arrays are empty when the matching include flag is false.
naicsNAICSPrediction[]RequiredHierarchical NAICS predictions when includeNAICS is true.
predictionNumbernumberRequiredRank of this prediction (1 = primary).
codesobject[]RequiredCodes at each requested NAICS level.
codestringRequiredIndustry code value.
titlestringRequiredOfficial title for the code.
confidencenumberRequiredConfidence for this code level (0.10–0.95).
levelnumberRequiredNAICS digit level (2, 4, or 6).
sicSICPrediction[]RequiredSIC predictions when includeSIC is true.
mccMCCPrediction[]RequiredMCC predictions when includeMCC is true.
glGLPrediction[]Required5-digit ISO CGL predictions when includeGL is true.
keywordsstring[]RequiredActivity keywords derived from research (uppercase).
companyInfoobjectRequiredCompany existence and website signals from research.
websitestringRequiredInferred primary domain.
websiteConfidencenumberRequiredConfidence in the inferred website.
existsbooleanRequiredWhether supporting evidence was found.
evidencesstring[]RequiredSource URLs used during research.
requestobjectRequiredEcho of the parsed request body.
responseIdstringRequiredUnique identifier for this response.
timestampstring (ISO 8601)RequiredWhen the response was generated.
executionTimenumberRequiredHandler execution time in milliseconds.
requestIdstringOptionalRequest identifier for correlation when provided by the client.

Response headers

  • X-Marvin2-Cache

    Cache status for this request: HIT (served from cache) or MISS (computed fresh).

Errors

StatusDescription
400Invalid JSON, validation error, or no code types requested (set at least one of includeNAICS, includeSIC, includeMCC, or includeGL).
401Missing or invalid API key.
403Quota exceeded or not authorized.
429Rate limit exceeded.
500Server error or request timeout.

Example request

Example response

Example request (NAICS + GL)

Example response (NAICS + GL)