Quickstart
Create an API key, send one request and get the answer.
Get an API key
- Sign in with Google at the top right
- Click on your profile
- Open Settings
- Go to API keys
Note: Each key can make 200 requests a day.
Shown once. Copy it now.
Send one request
Use MCP if you work with an AI agent. Use REST if you write your own code.
curl -X POST https://undelabs.dev/api/v1/cases/predict \ Label A: -H "X-API-Key: op_..." \ -H "Content-Type: application/json" \ Label B: -d '{"facts": "A heat gun assembled in Thailand from a motor and control board made in China."}'
- Your API key.
- Describe the product and where each part is made.
Read the answer
You get back a case. These four fields are all you need to start.
{ "prediction": { Label 1: "origin_country": "China", Label 2: "calibrated_confidence": 0.96, Label 3: "cited_rulings": ["N328954"] }, Label 4: "disclaimer": "Not a ruling. …" }
- The likely origin.
- How sure, from 0 to 1. Use this, not
confidence. - Past official decisions the answer is based on.
- Always show this to your users.
Call from your server or a terminal, not from a web page: browsers block calls to our API from other sites. Local examples only. The answer is a likely result, not an official ruling.