Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
description
string
required

Required. Product description or HTS code to classify.

Example:

"men's cotton t-shirt"

destination_country
string
required

Required. Target country for classification. Supported values: us, ca, eu, gb, global (case-insensitive)

Example:

"us"

mode
enum<string>

Classification mode.

  • mini: fastest mode
  • pro: default balanced mode
  • max: highest-accuracy mode
Available options:
mini,
pro,
max
Example:

"pro"

title
string | null

Optional. Product title or listing name. Helps the AI understand the product when the description is abbreviated or vague.

Example:

"Nike Sportswear Club Tee"

brand
string | null

Optional. Product brand. Helps infer the product category (e.g. a "mystery box" from a clothing brand is classified as clothing, not as a box).

Example:

"Nike"

sku
string | null

Optional. Product SKU or part number.

Example:

"AR4997-013"

type
string | null

Optional. Product type or category. Directly tells the classifier what kind of product this is.

Example:

"Apparel"

country_of_origin
string | null

Optional. 2-letter country code (ISO 3166-1 alpha-2) where the product was manufactured.

Pattern: ^[A-Za-z]{2}$
Example:

"CN"

price
number | null

Optional. Product price. Can help disambiguate between commodity and premium goods.

Example:

29.99

currency
string | null

Optional. 3-letter currency code (ISO 4217) for the price field.

Pattern: ^[A-Za-z]{3}$
Example:

"USD"

hs_code
string | null

Optional. An HS or HTS code to use as a classification hint. Accepts 2–10 digit codes with optional dots (e.g. "95", "9503", "9503.00.00.73").

Example:

"9503"

Response

Successful classification

success
boolean
Example:

true

request_id
string<uuid>

Unique request ID for audit logging

Example:

"c6f398bb-1dad-40e8-a991-a22a180ad842"

original_description
string

The original product description submitted

Example:

"men's cotton t-shirt"

customs_description
string

AI-normalized customs description

Example:

"men's cotton t-shirt, knitted"

Whether web search was used to enhance classification

Example:

false

unclassifiable
boolean

Present and true when the product description could not be identified as a physical product. Only returned on 422 responses.

reason
string

Human-readable explanation of why classification failed. Only present when unclassifiable is true.

Example:

"Unable to identify a physical product from this description even after web search."

fromCache
boolean

Whether the result was served from cache

Example:

false

top_result
object | null

The highest-ranked classification result

results
object[]

Top classification candidates ranked by score

country
string

Country used for classification

Example:

"us"

mode
enum<string>

Effective mode used for classification

Available options:
mini,
pro,
max
Example:

"pro"