Skip to content

Endpoint Reference

This is the canonical list of every public endpoint. Filter parameters are documented once in the Filter Reference.

All endpoints are served from the base URL http://<host>:<port> (default http://localhost:8519).

These return raw image bytes.

MethodPathResponseSuccessNotes
GET/api/wallpapers/random/imageimage200Accepts filters. 404 if none match
GET/api/wallpapers/random/thumbnailimage/jpeg200Accepts filters. 404 if none match
GET/api/wallpapers/{id}/imageimage200404 if the ID is unknown
GET/api/wallpapers/{id}/thumbnailimage/jpeg200404 if the ID is unknown

Image responses set Content-Type to the image type, Content-Disposition: inline, and Cache-Control: public, max-age=3600.

These return JSON.

MethodPathResponseSuccessNotes
GET/api/wallpaperslist + pagination200Accepts filters, page, limit
GET/api/wallpapers/randomwallpaper200Accepts filters. 404 if none match
GET/api/wallpapers/{id}wallpaper200404 if the ID is unknown
MethodPathRequestResponseSuccessNotes
POST/api/uploadmultipart (file)wallpaper201400 on missing field or unsupported extension
DELETE/api/wallpapers/{id}empty204Deletes the original file from disk. 404 if unknown
POST/api/refresh{"status":"success"}200Rescans all folders
GET/api/settingsconfig JSON200Returns the current configuration
PUT/api/settingsconfig JSONconfig JSON200Updates host, port, uploads dir and folders
GET/api/infoJSON200Describes endpoints, filters and examples
MethodPathPurpose
GET/The browser gallery
GET/settingsThe browser settings page
GET/fragments/galleryGallery HTML fragment (used by the UI)
GET/static/…Bundled UI assets
GET/wallpapers/…Cached image and thumbnail files