API basics
SmartTrackerCloud exposes authenticated HTTP endpoints for inventory, device, and process workflows. The current backend mounts the shared API under /v3. Its OpenAPI UI is available at /v3/api-docs on a running backend. Use the base URL supplied for your installation; the existing public example is https://api.diamondtracker.org.
Create an API key in your profile and send x-api-key: YOUR_API_KEY with each server-side request. The v3 routes also accept a bearer JWT for signed-in applications. Keep API keys private and rotate or revoke them when no longer needed.
curl "$BASE_URL/v3/devices" -H "x-api-key: $SMARTTRACKER_API_KEY"
The API models inventory separately from a device's most recent observation. A device action can be accepted before its scan has finished. Use its returned history identifier to fetch the completed scan result. For interactive client Socket.IO connections, the backend implements specific scan and admin-terminal bridges. It does not mirror arbitrary Socket.IO events between clients and devices.
See inventory and device examples and the endpoint catalog.