a proto self-hosted API for IoT devices