The main endpoints
For your own code. Send HTTP requests with your API key. The full list is in the OpenAPI spec.
Cases
Plans and drafts
Products
Decisions and tax
Rules checks
Account
31 endpoints match. Showing POST /v1/cases/predict.
/predict
POST/v1/cases/predict
Check a product. You get the likely origin back, and the product is saved as a case.
Body (JSON)
FieldWhat it means
dateOnly decisions from before this date are used. YYYY-MM-DD. Default: today.
factsWhat the product is, each part, where each part is made, and where it is put together. 20 to 12,000 characters.
jurisdictionThe market the goods enter. Default: us.
What the status code means
201It worked. The case is made.
400Something in the request is wrong. Read message: it names the field.
401Your key is wrong or turned off. Copy the whole key again.
404Not found, or it belongs to someone else.
429Too many requests. Wait the seconds in Retry-After, then try again.
503Busy or at today’s limit. Try again later.
Every error has the same shape: { code, message, details }. Limits and all error codes ↗
curl -X POST "https://undelabs.dev/api/v1/cases/predict" \ Label 1: -H "X-API-Key: op_..." \ -H "Content-Type: application/json" \ -d '{"date":"2026-06-01","facts":"A heat gun is assembled in Thailand from a motor and control board made in China.","jurisdiction":"us"}'
{ "id": "case_0123456789ab", "prediction": { "origin_country": "China", "confidence": 0.96, "calibrated_confidence": 0.96, "cited_rulings": [ "N328954" ] }, "disclaimer": "Not a ruling. Confirm with a licensed customs broker or a CBP binding ruling." }
- Your API key. REST takes it only in the
X-API-Keyheader.