Core API reference
Inspect the installed contract
Core exposes its generated OpenAPI document at:
http://POD_IP:3000/api/openapi.jsonThe REST API is under /api/*, and tRPC procedures are under /api/trpc. The generated document describes the version actually running on your Pod; use it for exact payloads and validation rules.
There is no authentication. The API trusts the LAN and the Pod’s firewall. Do not port-forward or publicly reverse-proxy these endpoints.
Read device status
curl --fail http://POD_IP:3000/api/device/statusChange a target
The following changes real hardware. Replace the host and choose the intended side:
curl --fail http://POD_IP:3000/api/device/temperature -H 'Content-Type: application/json' -d '{"side":"left","temperature":75}'Temperatures at this API boundary are Fahrenheit. Clients presenting Celsius convert at the boundary.
Device routes
| Method | Path (after /api) | Purpose |
|---|---|---|
| GET | /device/status | Current device status |
| GET | /device/temperature/control | Temperature control state |
| POST | /device/temperature | Request a target temperature |
| POST | /device/power | Set power state |
| POST | /device/alarm | Trigger an alarm |
| POST | /device/alarm/clear | Clear an alarm |
| POST | /device/alarm/snooze | Snooze an alarm |
| POST | /device/prime | Start priming |
This is a navigation guide to the contract, not a frozen schema. Query the installed OpenAPI document before calling operations that affect hardware.
Streaming and integration
Sensor WebSocket traffic uses port 3001. The stream normalizes hardware frames and also carries device state updates. For a higher-level integration with Home Assistant, prefer the MQTT bridge. For LLM hosts such as Claude Desktop or Cursor, Core’s MCP server wraps the same procedures as intent-shaped tools.
The iOS repository includes a committed OpenAPI snapshot and a script to refresh it from a running Pod. Its contract tests catch mismatches between Swift models and Core responses.
Source reference: OpenAPI generator and trust model · Device routes · Spec sync