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

The product description that was classified

Example:

"men's cotton t-shirt"

predicted_hs_code
string
required

The HS code returned by the classification

Example:

"6109.10.0012"

correct_hs_code
string
required

The correct HS code. Same as predicted_hs_code for positive feedback.

Example:

"6109.90.1007"

feedback_type
enum<string>
default:negative

Whether the classification was correct (positive) or incorrect (negative)

Available options:
positive,
negative
reason_type
enum<string>

Category of why the classification was incorrect:

  • wrong_code — Wrong HS code
  • wrong_chapter — Wrong chapter entirely
  • close_but_wrong — Close but wrong subheading
  • material_mismatch — Wrong material classification
  • missing_context — Needs more context to classify
  • other — Other (provide details in reason field)
Available options:
wrong_code,
wrong_chapter,
close_but_wrong,
material_mismatch,
missing_context,
other
reason
string

Freetext explanation (used when reason_type is "other")

Example:

"Product is actually a blend, not 100% cotton"

mode
enum<string>

The classification mode that produced the original result

Available options:
mini,
pro,
max

Response

Feedback submitted successfully

success
boolean
Example:

true

feedback_id
string<uuid>

Unique ID of the feedback record

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

feedback_type
enum<string>
Available options:
positive,
negative
Example:

"negative"

created_at
string<date-time>
Example:

"2026-04-02T10:00:00.000Z"