HTTP API
The daemon serves a JSON API over the Unix socket. It is local-only by
construction: the socket has 0600 permissions, so only your user can talk to
it and nothing is exposed to the network.
All examples use curl with --unix-socket:
Endpoints
Health
GET/api/health Liveness check for the daemon.
List history
GET/api/v1/history Returns recent entries, newest first. Accepts a limit query parameter.
Get an entry
GET/api/v1/history/{id} Delete an entry
DELETE/api/v1/history/{id} Clear history
DELETE/api/v1/history Deletes all entries.
Warning
This clears the entire history in one call. There is no confirmation step at
the API level.
Create an entry
POST/api/v1/entries Adds an entry directly, without going through the system clipboard.
Search
GET/api/v1/search Full-text search with the q query parameter.
Statistics
GET/api/v1/stats