API Reference

Basic Usage

Overview of all Cntrl API endpoints.

Cntrl exposes a simple RESTful API. All endpoints are prefixed with /api.

Base URL

By default, the API is available at: http://<YOUR_PC_IP>:9990

Custom Ports

9990 is the default port. If you changed the port during installation or in the config.yaml file, make sure to use your custom port here.

Quick Reference

Endpoint Summary

MethodEndpointDescriptionStatus
GET/api/statusHealth check✅ Stable
GET/api/systemStatic system info✅ Stable
GET/api/usageDynamic usage data✅ Stable
POST/api/pw/*Power commands✅ Stable
GET/api/media/statusNow playing info🧪 Experimental
POST/api/media/controlMedia controls🧪 Experimental
GET/api/processesTop processes🧪 Experimental
GET/api/statsCombined stats⚠️ Deprecated

Deprecated Endpoint

/api/stats is deprecated and will be removed in v0.1. Use /api/system and /api/usage instead.

On this page