Skip to main content
The PopLock API is a single-file, zero-dependency Node.js HTTP server built on Node’s built-in modules. It exposes a REST interface for reading server state and issuing management commands. The service runs as a systemd unit and survives reboots. Default port: 6767

Base URL

Endpoint tiers

The API splits its routes into two tiers:
  • Public read endpoints — all GET routes. No authentication required. Safe to call from any client.
  • Secured write endpoints — all POST routes. Require an X-API-Key header carrying your configured secret key.
See Authentication for details on how to pass the key.

Endpoint map

Read endpoints (public)

Write endpoints (secured — require X-API-Key)

For full request and response details, see Read endpoints and Write endpoints.

Get started

Installation

Copy the files, generate an API key, and start the systemd service.

Authentication

Learn how to pass your API key and handle auth errors.