Skip to content

Quickstart

Create an API key, send one request and get the answer.

Get an API key

  1. Sign in with Google at the top right
  2. Click on your profile
  3. Open Settings
  4. 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.

Request · cURL
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."}'

  1. Your API key.
  2. 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.

Response · example
{ "prediction": {
Label 1:    "origin_country": "China",
Label 2:    "calibrated_confidence": 0.96,
Label 3:    "cited_rulings": ["N328954"] },
Label 4:  "disclaimer": "Not a ruling. …" }

  1. The likely origin.
  2. How sure, from 0 to 1. Use this, not confidence.
  3. Past official decisions the answer is based on.
  4. 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.