Qaurvex Labs Request a pilot

Developers

Developer preview

A REST API and signed webhooks for parts, verdicts and images. The API is a preview: endpoints may change before version 1 is frozen.

REST API

EndpointWhat it returnsStatus
GET /v1/stationsList stations, status and active model versionBeta
GET /v1/parts?station=&from=&verdict=Query inspected parts with filtersBeta
GET /v1/parts/{serial}One part: verdict, defects, scores, model versionBeta
GET /v1/parts/{serial}/imageOriginal image (WebP) and defect overlayBeta
POST /v1/parts/{serial}/reviewRecord a QC decision: confirm or overrule, with a reasonIn development
POST /v1/webhooksSubscribe to part.rejected, station.alarm and moreBeta
POST /v1/models/{name}/releasesRelease a model version to stationsPlanned

Authentication uses per-station API keys sent as Authorization: Bearer. Keys are issued during a pilot.

Signed webhooks

Each event is signed with HMAC-SHA256 over the timestamp and body. Reject events older than five minutes.

Webhook example
POST /your/endpoint HTTP/1.1
Content-Type: application/json
X-Qaurvex-Timestamp: 1764000000
X-Qaurvex-Signature: sha256=6f1c2e...   # HMAC-SHA256(secret, timestamp + "." + body)

{
  "event": "part.rejected",
  "id": "evt_01JD8Q4X2M7K",
  "station": "line2-flange-top",
  "part": { "serial": "FLG-2047", "inspected_at": "2026-11-24T09:41:07.312+05:30" },
  "verdict": "REJECT",
  "defects": [
    { "class": "scratch", "score": 0.94, "length_mm": 6.1,
      "bbox": [412, 188, 96, 40] }
  ],
  "model": { "name": "flange-anomaly", "version": "1.4.1" },
  "image_url": "https://station.local/images/FLG-2047.webp",
  "latency_ms": 98
}

Verify a webhook in Python

Python example
import hmac, hashlib, os
from flask import Flask, request, abort

SECRET = os.environ["QAURVEX_WEBHOOK_SECRET"].encode()
app = Flask(__name__)

@app.post("/qaurvex/webhook")
def webhook():
    ts = request.headers["X-Qaurvex-Timestamp"]
    sent = request.headers["X-Qaurvex-Signature"].removeprefix("sha256=")
    body = request.get_data()
    want = hmac.new(SECRET, ts.encode() + b"." + body, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(sent, want):
        abort(401)
    event = request.get_json()
    if event["event"] == "part.rejected":
        print(event["part"]["serial"], [d["class"] for d in event["defects"]])
    return "", 204

Station configuration

A station is described by one YAML file stored next to the model version, so any verdict can be replayed with the exact settings that produced it.

Station YAML
# station.yaml  (one file per station, versioned with the model)
station: line2-flange-top
camera:
  interface: gigevision
  serial: "24A1187"
  exposure_us: 180
  gain_db: 0
  trigger: { source: line1, edge: rising, delay_us: 2500 }
light: { type: ring-darkfield, strobe: true, pulse_us: 150 }
pipeline:
  roi: [0, 0, 1920, 1200]
  models:
    - { name: flange-anomaly, version: 1.4.1, engine: fp16 }
    - { name: flange-detector, version: 0.9.0, engine: int8 }
rules:
  reject_if:
    - anomaly_score > 0.82
    - class in [missing_hole, crack]
    - class == scratch and length_mm > 3.0
io:
  reject: { type: digital_out, pin: 1, pulse_ms: 80 }
  modbus: { host: 192.168.10.20, coil: 120 }
storage: { keep_images: all, retain_days: 90 }

Get API keys for a pilot

Keys are issued per station once a pilot starts.