yoink

API Reference

Explore yoink's REST API via the built-in OpenAPI documentation.

yoink auto-generates OpenAPI documentation from its route definitions using utoipa.

Accessing the API Docs

When yoink is running, the interactive API explorer (Scalar) is available at:

http://localhost:3000/docs

The raw OpenAPI JSON spec can be fetched from:

http://localhost:3000/docs/openapi.json

API Groups

GroupDescription
AlbumList, create, update, monitor, merge, and download albums
ArtistList, create, update, monitor, sync, and link artist providers
AuthenticationLogin, logout, status check, and credential management
DashboardOverview data for the dashboard page
ImagesProxy cover art from external providers
ImportScan, preview, and confirm library imports
JobTrack download job status
LibraryBrowse the local filesystem and trigger scans
Match SuggestionView and manage provider match suggestions
ProviderList enabled providers
SearchUnified search across all metadata providers
TrackList, create, monitor, and set quality for tracks
WantedView unacquired / wanted tracks and albums

Server-Sent Events

GET /api/events provides a real-time SSE stream for UI updates. Events:

  • connected: sent on initial connection
  • update: sent when library state changes (downloads complete, imports finish, etc.)

Frontend Type Generation

TypeScript types are generated from the OpenAPI spec to keep the frontend in sync:

mise run gen-frontend-types

This fetches the spec from the running backend (port 3000) and writes types to frontend/src/lib/api/types.gen.ts.

On this page