Skip to content
ClazClaz

Developer API

Integrate classification into your stack

Classify from your ERP, e-commerce or scripts with a single call. API keys and cited, traceable results.

NameToken
Productionclz_live_a1b2…
ERP · SAPclz_live_9f8e…
Stagingclz_test_4c5d…
Classify with a single call
curl https://api.claz.ai/v1/classify \
  -H "x-api-key: $CLAZ_KEY" \
  -d '{"description": "Auriculares Bluetooth", "country": "AR"}'

Simple to implement in any language

One REST call to create the classification and another to read the result. No SDK required — use it from the language you already work in.

const base = "https://api.claz.ai/v1";
const key = process.env.CLAZ_KEY!;

const { id } = await fetch(`${base}/classifications`, {
  method: "POST",
  headers: { "x-api-key": key, "content-type": "application/json" },
  body: JSON.stringify({ description: "Auriculares Bluetooth", country: "AR" }),
}).then((r) => r.json());

// Poll the status until the run is done, with a timeout.
for (let i = 0; i < 30; i++) {
  const run = await fetch(`${base}/classifications/${id}`, {
    headers: { "x-api-key": key },
  }).then((r) => r.json());
  if (run.status === "completed") return run.candidates[0];
  if (run.status === "failed") throw new Error("classification failed");
  await new Promise((r) => setTimeout(r, 2000));
}
throw new Error("timed out");

Structured response, ready for your system

You get the code, confidence, reasoning and citations as JSON — easy to store or show in your ERP or e-commerce.

200 OK · application/json
{
  "id": "run_9f8e7d",
  "status": "completed",
  "confidence": 94,
  "candidates": [
    {
      "rank": 1,
      "code": "8518.30.00",
      "description": "Auriculares, incluso combinados con micrófono",
      "confidence": 94
    }
  ],
  "reasoning": "Se clasifica por su función principal … (RGI 1).",
  "citations": ["Nota 3 del Capítulo 85", "Nota explicativa 85.18"]
}

Async polling with a timeout

Create the classification, check its status, and receive the result. Poll the status with a bounded number of attempts and a timeout.

1
POST/v1/classifications

Returns the run id.

2
GET/v1/classifications/{id}

Poll status until completed, with a timeout.

3
200completed

Code, confidence, reasoning and citations.

Pricing

Simple, transparent pricing

Start free. Scale when your operation needs it.

Free

Free
  • 500 credits per month
  • 2 classifications in parallel
  • All supported customs authorities
  • Cited, traceable results
Start free
Most popular

Standard

$4.99/mo
  • 5,000 credits per month
  • 20 classifications in parallel
  • All supported customs authorities
  • Cited, traceable results
  • AI semantic search
  • Buy extra credit top-ups
Choose Standard

Pro

$19.99/mo
  • 20,000 credits per month
  • 100 classifications in parallel
  • All supported customs authorities
  • Cited, traceable results
  • AI semantic search
  • Buy extra credit top-ups
Choose Pro

Prices in USD. Billed in your local currency equivalent.

A classification uses roughly 100 credits.

Classify with confidence, today

Start free in minutes. No credit card required.