DEVELOPER DOCS · BETA

Classify API

Map a free-text business description to Stats SA SIC 7 (an open standard). SICura provides the search and the integration — not a proprietary industry list. The API is in beta; the response shape may change as we stabilise the contract.

Auth

Send a Bearer API key on every request. Keys are issued per customer and kept isolated (see Data handling).

Authorization: Bearer sicura_live_…

POST /api/v1/classify

Request body (JSON):

{
  "description": "Panel beating and spray painting workshop",
  "top_k": 5
}
  • description — activity text only (required)
  • top_k — max candidates to consider (optional, default ~8)

Example response

Example fields include the SIC 7 code and title, rollup path, score, follow-up questions when the text is ambiguous, and optional crosswalks (ISIC / NACE / NAICS / UK SIC) from Harmonise.

{
  "description": "Panel beating and spray painting workshop",
  "code": "45200",
  "title": "Maintenance and repair of motor vehicles",
  "score": 0.81,
  "confidence": 81,
  "confidence_band": "high",
  "rollup": [
    { "level": "section", "code": "G", "title": "Wholesale and retail trade…" },
    { "level": "division", "code": "45", "title": "Wholesale and retail trade…" },
    { "level": "group", "code": "452", "title": "Maintenance and repair…" },
    { "level": "class", "code": "4520", "title": "Maintenance and repair…" },
    { "level": "subclass", "code": "45200", "title": "Maintenance and repair…" }
  ],
  "sicura_detail": "G45200001",
  "follow_up": [
    { "label": "Motor body repair", "query": "panel beating spray painting motor body" },
    { "label": "General mechanical workshop", "query": "motor vehicle mechanical repair workshop" }
  ],
  "crosswalk": {
    "isic4": [{ "code": "4520", "title": "Maintenance and repair of motor vehicles" }],
    "nace2": [{ "code": "45.20", "title": "Maintenance and repair of motor vehicles" }],
    "naics2022": [{ "code": "811111", "title": "General Automotive Repair" }],
    "uksic2007": [{ "code": "45.20", "title": "Maintenance and repair of motor vehicles" }]
  }
}

Errors

  • 400 — missing or invalid description
  • 401 — missing or invalid API key
  • 429 — rate limited (per plan)
  • 500 — classification_failed

Rate limits

Limits are per plan. LLM-assisted steps may fall back to hybrid retrieval when quota is exhausted so classify still returns a result.

CURL

curl -s https://YOUR_HOST/api/v1/classify \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"description":"Panel beating and spray painting workshop","top_k":5}'

Machine-readable OpenAPI: /api/v1/openapi.json. For underwriting teams, see For insurers.