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
| Endpoint | What it returns | Status |
|---|---|---|
GET /v1/stations | List stations, status and active model version | Beta |
GET /v1/parts?station=&from=&verdict= | Query inspected parts with filters | Beta |
GET /v1/parts/{serial} | One part: verdict, defects, scores, model version | Beta |
GET /v1/parts/{serial}/image | Original image (WebP) and defect overlay | Beta |
POST /v1/parts/{serial}/review | Record a QC decision: confirm or overrule, with a reason | In development |
POST /v1/webhooks | Subscribe to part.rejected, station.alarm and more | Beta |
POST /v1/models/{name}/releases | Release a model version to stations | Planned |
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.
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
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 "", 204Station 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 (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.