Skip to main content

Native API reference

A static operation reference generated from the verified, pinned OpenAPI artifact. It makes no live API calls and requires no credentials.

Contract 1.0.1 · OpenAPI 3.1.0 · 183 operations across 159 paths. Source melodee-project/melodee-api at commit 0267c458207082337d9baf1130deeb65f43c9d4a. Artifact SHA-256 9241a9ab0606c30518d4d904d4dae1d1ea968414daf2d313c9eb9aaedf8d5281.

Melodee native API. Remediation candidate 1.0.1: the independent-review remediation of the 1.0.0 release baseline, still not published or production-qualified. URL major remains /api/v1. 1.0.0 was never published or supported; downstream consumers of the 1.0.0 candidate must adopt the documented cursor and playback-authorization changes. Development-era 1.x revisions through 1.8.0 were internal pre-release engineering revisions.

Security schemes

NameTypeSchemeDescription
bearerAuthhttpbearer (opaque session or scoped automation token)
cookieAuthapiKeyHttpOnly interactive session cookie. Mutations using this cookie require the X-CSRF-Token header matching the melodee_csrf cookie.

Operations

183 of 183 operations

admin 76

GET/api/v1/admin/accounts

listAdminAccounts

List accounts

Keyset-paginated account lifecycle metadata. Requires the admin_accounts capability.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
qquerynostring
limitquerynointeger
cursorquerynostring (uuid)
Responses
StatusDescriptionContent types
200Account pageapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/admin/accounts/{account_id}

getAdminAccount

Account lifecycle detail

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
account_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Accountapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown accountapplication/json
DELETE/api/v1/admin/accounts/{account_id}/capabilities/{capability}

revokeAdminAccountCapability

Revoke an administrative capability

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
account_idpathyesstring (uuid)
capabilitypathyesAccountCapability
Responses
StatusDescriptionContent types
204Revokednone
400Unknown capabilitynone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404No such grantapplication/json
409Last account administratorapplication/json
PUT/api/v1/admin/accounts/{account_id}/capabilities/{capability}

grantAdminAccountCapability

Grant an administrative capability

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
account_idpathyesstring (uuid)
capabilitypathyesAccountCapability
Responses
StatusDescriptionContent types
204Granted (idempotent)none
400Unknown capabilitynone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown accountapplication/json
DELETE/api/v1/admin/accounts/{account_id}/sessions

revokeAdminAccountSessions

Revoke every session family of an account

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
account_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Revocation countapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
PUT/api/v1/admin/accounts/{account_id}/status

setAdminAccountStatus

Enable or disable an account

Disabling an account revokes every session family and immediately rejects its automation credentials. Administrators cannot change their own status.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
account_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: AccountStatusUpdate

Responses
StatusDescriptionContent types
200Updated accountapplication/json
400Invalid statusnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown accountapplication/json
409Self status change refusedapplication/json
POST/api/v1/admin/artists/{artist_id}/aliases

adminCreateArtistAlias

adminCreateArtistAlias

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
artist_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: AliasRequest

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/artists/{artist_id}/locks

adminArtistLocks

adminArtistLocks

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
artist_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
DELETE/api/v1/admin/artists/{artist_id}/locks/{field}

adminReleaseArtistLock

adminReleaseArtistLock

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
artist_idpathyesstring (uuid)
fieldpathyesstring
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/artists/{artist_id}/locks/{field}

adminSetArtistLock

adminSetArtistLock

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
artist_idpathyesstring (uuid)
fieldpathyesstring
Request body (required)

Content types: application/json

Schema: LockRequest

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/artworks/{owner_kind}/{owner_id}

adminUploadArtwork

adminUploadArtwork

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
owner_kindpathyesstring
owner_idpathyesstring (uuid)
Request body (required)

Raw JPEG or PNG body, 1 byte..10 MiB. Decoded dimensions must be <=12000 and <=80,000,000 pixels.

Content types: image/jpegimage/png

Schema: string string

Responses
StatusDescriptionContent types
200Successnone
201Artwork revision createdapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
413Body exceeds the 10 MiB limitnone
503No writable storage volumenone
POST/api/v1/admin/artworks/{owner_kind}/{owner_id}/fetch

adminFetchProviderArtwork

adminFetchProviderArtwork

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
owner_kindpathyesstring
owner_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: ArtworkFetchRequest

Responses
StatusDescriptionContent types
200Successnone
201Artwork revision createdapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/artworks/prune

adminPruneArtwork

adminPruneArtwork

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/artworks/prune-cache

adminPruneArtworkCache

adminPruneArtworkCache

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/corrections/export

adminExportCorrections

adminExportCorrections

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Correction exportapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/corrections/import

adminImportCorrections

adminImportCorrections

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: CorrectionDocument

Responses
StatusDescriptionContent types
200Import reportapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/job-controls

adminListJobControls

adminListJobControls

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Controlsapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/job-controls/{kind}

adminUpdateJobControl

adminUpdateJobControl

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
kindpathyesstring
Request body (required)

Content types: application/json

Schema: JobControlUpdate

Responses
StatusDescriptionContent types
200Revisionapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/job-schedules

adminListJobSchedules

adminListJobSchedules

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Schedulesapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/job-schedules

adminCreateJobSchedule

adminCreateJobSchedule

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: ScheduleCreate

Responses
StatusDescriptionContent types
200Successnone
201Scheduleapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
DELETE/api/v1/admin/job-schedules/{schedule_id}

adminDeleteJobSchedule

adminDeleteJobSchedule

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
schedule_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Unknown scheduleapplication/json
PUT/api/v1/admin/job-schedules/{schedule_id}

adminUpdateJobSchedule

adminUpdateJobSchedule

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
schedule_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: ScheduleUpdate

Responses
StatusDescriptionContent types
200Revisionapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/job-schedules/run-due

adminRunDueJobSchedules

adminRunDueJobSchedules

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/jobs

adminListJobs

adminListJobs

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
cursorquerynostring (uuid)
statequerynostring
kindquerynostring
fromMillisquerynointeger (int64)
toMillisquerynointeger (int64)
schedulequerynostring (uuid)
volumequerynostring (uuid)
activequerynoboolean
Responses
StatusDescriptionContent types
200OKapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/jobs/{job_id}

adminGetJob

adminGetJob

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
job_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Jobapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/jobs/{job_id}/cancel

adminCancelJob

adminCancelJob

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
job_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: JobReason

Responses
StatusDescriptionContent types
200Jobapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/jobs/{job_id}/events

adminJobEvents

adminJobEvents

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
job_idpathyesstring (uuid)
oncequerynobooleanEmit one event and close the stream
Responses
StatusDescriptionContent types
200Server-sent job progress/state eventstext/event-stream
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/jobs/{job_id}/progress

adminUpdateJobProgress

adminUpdateJobProgress

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
job_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: JobProgress

Responses
StatusDescriptionContent types
200Successnone
204Updatednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/jobs/{job_id}/retry

adminRetryJob

adminRetryJob

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
job_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: JobReason

Responses
StatusDescriptionContent types
200Jobapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/jobs/ingest

enqueueIngest

Queue an inbound Release ingestion

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: IngestJobRequest

Responses
StatusDescriptionContent types
202Queuedapplication/json
400Invalid argumentnone
401Authentication requirednone
403Capability/scope requirednone
POST/api/v1/admin/jobs/normalize

enqueueNormalize

Queue staged audio normalization

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: NormalizeJobRequest

Responses
StatusDescriptionContent types
202Queuedapplication/json
400Invalid argumentnone
401Authentication requirednone
403Capability/scope requirednone
POST/api/v1/admin/legacy/preview

adminLegacyPreview

adminLegacyPreview

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: LegacyExport

Responses
StatusDescriptionContent types
200Reportapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/legacy/reconcile

adminLegacyReconcile

adminLegacyReconcile

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: LegacyExport

Responses
StatusDescriptionContent types
200Reportapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/legacy/track-fields

adminLegacyTrackFields

adminLegacyTrackFields

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Inventoryapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/match-decisions

adminRecordMatchDecision

adminRecordMatchDecision

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: MatchDecisionRequest

Responses
StatusDescriptionContent types
200Successnone
201Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/merges/{merge_id}/split

adminSplitMerge

adminSplitMerge

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
merge_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: SplitRequest

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/metrics

getMetrics

Bounded Prometheus metrics

Process/build/readiness gauges only (melodee_up, melodee_build_info, melodee_db_ready, melodee_storage_writable). Requires an operations.read automation credential or the admin_jobs capability. No catalog, account or listener data is exposed.

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Prometheus text expositiontext/plain
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/admin/notifications

adminListNotifications

adminListNotifications

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
Responses
StatusDescriptionContent types
200Notificationsapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
POST/api/v1/admin/notifications/test

adminTestNotification

adminTestNotification

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
202Queuedapplication/json
401Authentication/authorization errornone
403Forbiddennone
GET/api/v1/admin/providers/circuits

adminListProviderCircuits

List provider circuit state

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Circuitsapplication/json
401Authentication errorapplication/json
403Authentication errorapplication/json
DELETE/api/v1/admin/providers/circuits/{host}

adminResetProviderCircuit

Reset a provider circuit

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
hostpathyesstring
Responses
StatusDescriptionContent types
204Resetnone
401Authentication errorapplication/json
403Authentication errorapplication/json
404Authentication errorapplication/json
GET/api/v1/admin/quality/calibration

adminQualityCalibration

adminQualityCalibration

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/quality/reassess

adminReassessQuality

adminReassessQuality

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/releases/{release_id}/classification

adminSetReleaseClassification

adminSetReleaseClassification

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
release_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: ClassificationRequest

Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/releases/{release_id}/locks

adminReleaseLocks

adminReleaseLocks

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
release_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
DELETE/api/v1/admin/releases/{release_id}/locks/{field}

adminReleaseReleaseLock

adminReleaseReleaseLock

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
release_idpathyesstring (uuid)
fieldpathyesstring
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/releases/{release_id}/locks/{field}

adminSetReleaseLock

adminSetReleaseLock

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
release_idpathyesstring (uuid)
fieldpathyesstring
Request body (required)

Content types: application/json

Schema: LockRequest

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reports/catalog

adminReportCatalog

adminReportCatalog

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
formatquerynostring
Responses
StatusDescriptionContent types
200ReportCatalogapplication/jsontext/csv
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reports/ingestion

adminReportIngestion

adminReportIngestion

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
formatquerynostring
fromMillisquerynointegerInclusive range start epoch milliseconds; defaults to now minus 30 days.
toMillisquerynointegerInclusive range end epoch milliseconds; defaults to now.
timezonequerynostringIANA reporting timezone used to map instants to local calendar days; defaults to UTC.
Responses
StatusDescriptionContent types
200ReportIngestionapplication/jsontext/csv
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
422Invalid timezone or report inputapplication/json
GET/api/v1/admin/reports/jobs

adminReportJobs

adminReportJobs

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
formatquerynostring
Responses
StatusDescriptionContent types
200ReportJobsapplication/jsontext/csv
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reports/providers

adminReportProviders

adminReportProviders

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
formatquerynostring
Responses
StatusDescriptionContent types
200ReportProvidersapplication/jsontext/csv
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reports/quality

adminReportQuality

adminReportQuality

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
formatquerynostring
Responses
StatusDescriptionContent types
200ReportQualityapplication/jsontext/csv
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reports/snapshots

adminListReportSnapshots

adminListReportSnapshots

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Snapshotsapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/reports/snapshots

adminCaptureReportSnapshot

adminCaptureReportSnapshot

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: SnapshotRequest

Responses
StatusDescriptionContent types
200Successnone
201Createdapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reports/snapshots/{snapshot_id}

adminGetReportSnapshot

adminGetReportSnapshot

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
snapshot_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Snapshot payloadapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reports/storage

adminReportStorage

adminReportStorage

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
formatquerynostring
Responses
StatusDescriptionContent types
200ReportStorageapplication/jsontext/csv
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reviews

adminListReviews

adminListReviews

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/reviews/{review_id}

adminGetReview

adminGetReview

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
review_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200OKapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/reviews/{review_id}/resolve

adminResolveReview

adminResolveReview

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
review_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: ReviewResolveRequest

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/admin/storage/assets

adminListStorageAssets

adminListStorageAssets

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
cursorquerynostring (uuid)
volumequerynostring (uuid)
formatquerynostring
availabilityquerynostring
integrityquerynostring
preferredquerynoboolean
quarantinedquerynoboolean
lockedquerynoboolean
trackquerynostring (uuid)
fromMillisquerynointeger (int64)
toMillisquerynointeger (int64)
Responses
StatusDescriptionContent types
200OKapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/storage/assets/{asset_id}/move

adminMoveAsset

adminMoveAsset

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
asset_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: StorageMove

Responses
StatusDescriptionContent types
200Movedapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/storage/assets/{asset_id}/move-jobs

adminEnqueueStorageMove

Queue a verified cross-volume asset move

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
asset_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: StorageMoveJob

Responses
StatusDescriptionContent types
202Queuedapplication/json
400Invalid requestnone
401Authentication errornone
403Forbiddennone
404Not foundnone
409Volume unavailablenone
POST/api/v1/admin/storage/assets/{asset_id}/quarantine

adminQuarantineAsset

Quarantine a media asset

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
asset_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Updatednone
400Invalid statenone
401Authentication errorapplication/json
403Authentication errorapplication/json
404Authentication errorapplication/json
POST/api/v1/admin/storage/assets/{asset_id}/release-quarantine

adminReleaseAssetQuarantine

Release a quarantined media asset

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
asset_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Updatednone
400Invalid statenone
401Authentication errorapplication/json
403Authentication errorapplication/json
404Authentication errorapplication/json
GET/api/v1/admin/storage/inbound

adminBrowseInbound

adminBrowseInbound

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
volumequeryyesstring (uuid)
pathquerynostring
limitquerynointeger
Responses
StatusDescriptionContent types
200Directory entriesapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
GET/api/v1/admin/storage/volumes

adminListStorageVolumes

adminListStorageVolumes

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Volumesapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/storage/volumes/{volume_id}

adminUpdateStorageVolume

adminUpdateStorageVolume

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
volume_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: VolumeControl

Responses
StatusDescriptionContent types
200Volumeapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
DELETE/api/v1/admin/tracks/{track_id}/asset-lock

adminReleaseTrackAsset

adminReleaseTrackAsset

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/tracks/{track_id}/asset-lock

adminLockTrackAsset

adminLockTrackAsset

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: AssetLockRequest

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/tracks/{track_id}/genres

setTrackGenres

Replace a Track's canonical genres

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: TrackGenresUpdate

Responses
StatusDescriptionContent types
200Assigned canonical genresapplication/json
400Unknown canonical genreapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown trackapplication/json
GET/api/v1/admin/tracks/{track_id}/locks

adminTrackLocks

adminTrackLocks

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
DELETE/api/v1/admin/tracks/{track_id}/locks/{field}

adminReleaseTrackLock

adminReleaseTrackLock

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
fieldpathyesstring
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/admin/tracks/{track_id}/locks/{field}

adminSetTrackLock

adminSetTrackLock

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
fieldpathyesstring
Request body (required)

Content types: application/json

Schema: LockRequest

Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/tracks/{track_id}/merge

adminMergeTrack

adminMergeTrack

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: MergeRequest

Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/admin/tracks/{track_id}/preferred

adminSetPreferredAsset

Explicitly accept a preferred media asset

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: PreferredAssetRequest

Responses
StatusDescriptionContent types
204Preferred asset setnone
400Invalid requestnone
401Authentication errornone
403Forbiddennone
404Not foundnone
409Asset unavailablenone
GET/api/v1/admin/tracks/{track_id}/quality

adminTrackQuality

adminTrackQuality

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Responseapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone

artwork 1

GET/api/v1/artworks/{artwork_id}/{revision}/{size}

getArtworkVariant

getArtworkVariant

Parameters
NameInRequiredTypeDescription
artwork_idpathyesstring (uuid)
revisionpathyesinteger
sizepathyesinteger
Responses
StatusDescriptionContent types
200Immutable JPEG variantimage/jpeg
400Invalid requestnone
403Forbiddennone
404Not foundnone

auth 49

GET/api/v1/auth/automation-tokens

listAutomationTokens

List automation credentials

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Tokensapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/auth/automation-tokens

issueAutomationToken

Issue a scoped automation credential

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: AutomationTokenRequest

Responses
StatusDescriptionContent types
201Issuedapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
422Unknown or invalid scopeapplication/json
DELETE/api/v1/auth/automation-tokens/{token_id}

revokeAutomationToken

Revoke an automation credential

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
token_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Revokednone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Stable error envelopeapplication/json
DELETE/api/v1/auth/automation-tokens/self

selfRevokeAutomationToken

Revoke the presenting automation credential

Security: bearerAuth

Responses
StatusDescriptionContent types
204Revokednone
401Authentication errornone
403Session credential cannot self-revokenone
404Not foundnone
POST/api/v1/auth/bootstrap

completeInstallationBootstrap

Complete the one-time installation bootstrap

Consumes the console-issued bootstrap challenge exactly once and returns one ordinary session. Returns 409 after the installation is complete.

Request body (required)

Content types: application/json

Schema: BootstrapRequest

Responses
StatusDescriptionContent types
200Browser or native sessionapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
409Installation already completeapplication/json
503Authentication/authorization errorapplication/json
GET/api/v1/auth/capabilities

getAuthCapabilities

Public authentication capability discovery

Reports which sign-in methods are configured, the WebAuthn relying-party configuration and whether protected credential storage is writable, so a separately deployed Auth UI can avoid offering unavailable methods.

Responses
StatusDescriptionContent types
200Authentication capabilitiesapplication/json
503Authentication/authorization errorapplication/json
GET/api/v1/auth/compatibility-credentials

listCompatibilityCredentials

List per-device compatibility credentials

Interactive sessions only. The secret is never returned after creation.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
protocolquerynostring
Responses
StatusDescriptionContent types
200Credentialsapplication/json
400Invalid protocolnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/auth/compatibility-credentials

createCompatibilityCredential

Create a revocable compatibility credential

Creates a 256-bit secret for the OpenSubsonic or Jellyfin adapter, returned once and stored only as a SHA-256 digest. Revocation is immediate and account disablement blocks use.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: CompatibilityCredentialCreate

Responses
StatusDescriptionContent types
201Created credentialapplication/json
400Invalid protocol/label/budgetapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
DELETE/api/v1/auth/compatibility-credentials/{credential_id}

revokeCompatibilityCredential

Revoke a compatibility credential immediately

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
credential_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Revokednone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or unowned credentialnone
GET/api/v1/auth/contacts

listContacts

listContacts

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/auth/contacts

enrollContact

enrollContact

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/auth/contacts/verify

verifyContact

verifyContact

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
403Forbiddennone
404Not foundnone
GET/api/v1/auth/device/approval

describeDeviceAuthorization

Describe a pending device grant before consent

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
userCodequeryyesstring
Responses
StatusDescriptionContent types
200Approval detailsapplication/json
401Session requirednone
403Interactive session requirednone
404Unknown/expired codenone
POST/api/v1/auth/device/approve

approveDeviceAuthorization

Approve a device code from a recent session

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Approved scopesapplication/json
401Session requirednone
403Authentication/authorization errorapplication/json
429Attempt budget exhaustednone
POST/api/v1/auth/device/code

startDeviceAuthorization

Start headless device authorization

Request body (required)

Content types: application/json

Schema: DeviceCodeRequest

Responses
StatusDescriptionContent types
200Codesapplication/json
400Invalid clientnone
POST/api/v1/auth/device/deny

denyDeviceAuthorization

Deny a pending device code from a recent session

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
204Deniednone
400Invalid codenone
401Session requirednone
403Authentication/authorization errorapplication/json
429Attempt budget exhaustednone
POST/api/v1/auth/device/token

pollDeviceToken

Poll for a device credential

Request body (required)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Scoped credentialapplication/json
400Pending/slow/denied/expirednone
POST/api/v1/auth/google/link

linkGoogleIdentity

linkGoogleIdentity

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/auth/google/nonce

createGoogleNonce

createGoogleNonce

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
201Creatednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
GET/api/v1/auth/google/sign-in/callback

finishGoogleSignIn

finishGoogleSignIn

Responses
StatusDescriptionContent types
200Browser session cookie or native bearer (no return URL configured)application/json
303Browser redirect to the configured Auth UI return URL with session cookiesnone
400Invalid callbacknone
401Authentication/authorization errorapplication/json
POST/api/v1/auth/google/sign-in/nonce

createGoogleSignInNonce

Create a one-time native Google sign-in nonce

Native Google sign-in requires an installation-level one-time nonce. The nonce budget is bounded so the public endpoint cannot grow storage without limit.

Responses
StatusDescriptionContent types
200Nonceapplication/json
503Authentication/authorization errorapplication/json
GET/api/v1/auth/google/sign-in/start

startGoogleSignIn

startGoogleSignIn

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
403Forbiddennone
404Not foundnone
POST/api/v1/auth/google/sign-in/token

exchangeGoogleSignInToken

Exchange a verified Google ID token for a Melodee session

Verifies signature, issuer, audience, expiry and one-time nonce. The identity must already be linked; an unlinked identity never creates an account.

Request body (required)

Content types: application/json

Schema: GoogleSignInToken

Responses
StatusDescriptionContent types
200Browser cookie or native bearer sessionapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
503Authentication/authorization errorapplication/json
GET/api/v1/auth/identities

listIdentities

listIdentities

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
DELETE/api/v1/auth/identities/{identity_id}

unlinkIdentity

unlinkIdentity

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
identity_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/auth/logout

logoutSession

Revoke the current interactive session and clear browser cookies

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
204Session revokednone
401Session requirednone
403Interactive session requirednone
GET/api/v1/auth/notification-subscriptions

getNotificationSubscriptions

Read notification channel subscriptions

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Subscriptionsapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
PUT/api/v1/auth/notification-subscriptions

setNotificationSubscriptions

Replace notification channel subscriptions

In-app and email deliver per account; telegram uses the single configured operational chat. Email requires a verified contact and a configured SMTP relay, otherwise the delivery row records an explicit failure class.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: NotificationSubscriptionBody

Responses
StatusDescriptionContent types
200Stored subscriptionsapplication/json
400Invalid channel/severity/event kindapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/auth/passkeys

listPasskeys

List registered passkeys

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Registered passkeysapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
503Authentication/authorization errorapplication/json
DELETE/api/v1/auth/passkeys/{passkey_id}

revokePasskey

revokePasskey

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
passkey_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
PUT/api/v1/auth/passkeys/{passkey_id}

updatePasskey

Set or clear a passkey label

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
passkey_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: PasskeyLabelUpdate

Responses
StatusDescriptionContent types
204Label updatednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown passkeyapplication/json
503Authentication/authorization errorapplication/json
POST/api/v1/auth/passkeys/authenticate/finish

finishPasskeyAssertion

finishPasskeyAssertion

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: PasskeyAuthenticationResponse

Responses
StatusDescriptionContent types
200Verified assertionapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
422Assertion verification failedapplication/json
POST/api/v1/auth/passkeys/authenticate/start

startPasskeyAssertion

startPasskeyAssertion

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Authentication challengeapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
409No registered passkeyapplication/json
POST/api/v1/auth/passkeys/register/finish

finishPasskeyRegistration

finishPasskeyRegistration

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: PasskeyRegistrationResponse

Responses
StatusDescriptionContent types
200Registered credential metadataapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
422Attestation verification failedapplication/json
503Authentication/authorization errorapplication/json
POST/api/v1/auth/passkeys/register/start

startPasskeyRegistration

startPasskeyRegistration

Security: bearerAuth, cookieAuth

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Registration challengeapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
POST/api/v1/auth/passkeys/sign-in/finish

finishPasskeySignIn

Finish discoverable passkey sign-in

Request body (required)

Content types: application/json

Schema: PasskeyAuthenticationResponse

Responses
StatusDescriptionContent types
200Browser session cookie or native bearerapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
409Ceremony missing or consumedapplication/json
422Assertion verification failedapplication/json
503Authentication/authorization errorapplication/json
GET/api/v1/auth/passkeys/sign-in/start

startPasskeySignIn

Start discoverable passkey sign-in

Responses
StatusDescriptionContent types
200Browser challenge and flow cookieapplication/json
POST/api/v1/auth/passkeys/step-up/finish

finishPasskeyStepUp

Finish passkey recent-authentication step-up

Verifies the assertion and refreshes the current session's step-up window. The ceremony is one-time.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: PasskeyAuthenticationResponse

Responses
StatusDescriptionContent types
200Refreshed step-up freshnessapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
409Ceremony missing or consumedapplication/json
422Assertion verification failedapplication/json
503Authentication/authorization errorapplication/json
POST/api/v1/auth/passkeys/step-up/start

startPasskeyStepUp

Start passkey recent-authentication step-up

Requires an interactive session but not a recent one; the authenticator assertion is the proof. Returns 409 no_passkeys when none is registered.

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Authentication challengeapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
409No registered passkeyapplication/json
503Authentication/authorization errorapplication/json
POST/api/v1/auth/recovery

requestRecovery

requestRecovery

Request body (optional)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
403Forbiddennone
404Not foundnone
POST/api/v1/auth/recovery/confirm

confirmRecovery

confirmRecovery

Request body (required)

Content types: application/json

Schema: object

Responses
StatusDescriptionContent types
200Account recovery: browser cookie or native bearerapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
409Token consumedapplication/json
POST/api/v1/auth/refresh

refreshSession

refreshSession

Request body (optional)

Content types: application/json

Schema: RefreshRequest

Responses
StatusDescriptionContent types
200Rotated cookie session or native access credentialapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Cookie refresh from an unexpected originapplication/json
DELETE/api/v1/auth/sessions

revokeOtherSessions

revokeOtherSessions

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
GET/api/v1/auth/sessions

listSessions

listSessions

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Successnone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone
DELETE/api/v1/auth/sessions/{session_id}

revokeSession

revokeSession

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
session_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Deletednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Forbiddennone
404Not foundnone

catalog 6

GET/api/v1/artists

listArtists

List Artists

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynostring
cursorquerynostring (uuid)
Responses
StatusDescriptionContent types
200Pageapplication/json
400Stable error envelopeapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/releases

listReleases

List Releases

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynostring
cursorquerynostring (uuid)
Responses
StatusDescriptionContent types
200Pageapplication/json
400Stable error envelopeapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/releases/{release_id}

getRelease

Release detail

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
release_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Releaseapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Stable error envelopeapplication/json
GET/api/v1/tracks

listTracks

List Tracks

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynostring
cursorquerynostring (uuid)
Responses
StatusDescriptionContent types
200Pageapplication/json
400Stable error envelopeapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/tracks/{track_id}

getTrack

Track detail

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Trackapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Stable error envelopeapplication/json

favorites 37

GET/api/v1/auth/preferences

getListenerPreferences

Read listener preferences and genre exclusions

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Preferencesapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
PUT/api/v1/auth/preferences

setListenerPreferences

Replace listener preferences and genre exclusions

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: ListenerPreference

Responses
StatusDescriptionContent types
200Stored preferencesapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown genreapplication/json
GET/api/v1/favorites

listFavorites

List favorites

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynostring
cursorquerynostring (uuid)
Responses
StatusDescriptionContent types
200Tracksapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/genres

listGenres

Canonical genre registry

Closed, versioned registry: 128-entry ID3 baseline plus the Melodee Christmas extension.

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Registryapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/notifications

listInboxNotifications

List the caller's in-app notifications

Sanitized operational events only. Deduplicated events aggregate into one row with an occurrence count; reading a row and receiving it again clears the read state.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
unreadOnlyquerynoboolean
Responses
StatusDescriptionContent types
200Inbox pageapplication/json
400Invalid limitnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
PUT/api/v1/notifications/{notification_id}/read

markNotificationRead

Mark one in-app notification read

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
notification_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Marked readnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or already-read notificationnone
PUT/api/v1/notifications/read-all

markAllNotificationsRead

Mark every in-app notification read

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Updated countapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/playlists

listPlaylists

List own and public playlists

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
cursorquerynostring (uuid)
Responses
StatusDescriptionContent types
200Pageapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/playlists

createPlaylist

Create a static, dynamic or concert playlist

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: PlaylistCreate

Responses
StatusDescriptionContent types
201Createdapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
DELETE/api/v1/playlists/{playlist_id}

retirePlaylist

Retire a playlist under a revision check

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
revisionqueryyesinteger (int64)
Responses
StatusDescriptionContent types
204Retirednone
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
GET/api/v1/playlists/{playlist_id}

getPlaylist

Playlist detail with entries or dynamic evaluation

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
limitquerynointegerDynamic evaluation page size
cursorquerynostringDynamic evaluation cursor
Responses
StatusDescriptionContent types
200Detailapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessibleapplication/json
PUT/api/v1/playlists/{playlist_id}

updatePlaylist

Update playlist metadata under a revision check

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: PlaylistUpdate

Responses
StatusDescriptionContent types
200Updatedapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
POST/api/v1/playlists/{playlist_id}/entries

addPlaylistEntry

Append or insert one entry occurrence

The same canonical Track may occur multiple times; each occurrence receives its own entry id.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: PlaylistEntryCreate

Responses
StatusDescriptionContent types
201Created occurrenceapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
DELETE/api/v1/playlists/{playlist_id}/entries/{entry_id}

removePlaylistEntry

Remove one occurrence and close the position gap

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
entry_idpathyesstring (uuid)
revisionqueryyesinteger (int64)
Responses
StatusDescriptionContent types
200New revisionapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
PUT/api/v1/playlists/{playlist_id}/entries/{entry_id}

movePlaylistEntry

Move and optionally relabel one occurrence

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
entry_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: PlaylistEntryMove

Responses
StatusDescriptionContent types
200New revisionapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
GET/api/v1/playlists/{playlist_id}/export

exportPlaylist

Export a revision-bound playlist snapshot

The document is a point-in-time snapshot suitable for import; snapshots are not persisted as separate rows.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
revisionquerynointeger (int64)
Responses
StatusDescriptionContent types
200Exportapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
PUT/api/v1/playlists/{playlist_id}/order

reorderPlaylist

Reorder every occurrence by entry id

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
playlist_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: PlaylistReorder

Responses
StatusDescriptionContent types
200New revisionapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
POST/api/v1/playlists/import

importPlaylist

Create, append or replace playlist entries idempotently

Idempotency is keyed by account and idempotencyKey; an identical retry returns the original revision with replayed=true, and a different document under the same key is rejected. create/append/replace are explicit modes.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: PlaylistImport

Responses
StatusDescriptionContent types
200Idempotent replayapplication/json
201Appliedapplication/json
400Invalid requestapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible playlistapplication/json
409Revision conflict or state conflictapplication/json
GET/api/v1/shares

listShares

List the caller's public shares

Inventory only; a recipient token is never returned or stored in cleartext.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
Responses
StatusDescriptionContent types
200Sharesapplication/json
400Invalid limitnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/shares

createShare

Create an explicit expiring share

Shares exactly one playlist (static/concert only), Release or Track. The token is 256-bit entropy returned once and stored only as a digest.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: ShareCreate

Responses
StatusDescriptionContent types
201Created share with one-time tokenapplication/json
400Invalid target/expiry/budgetapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown targetnone
DELETE/api/v1/shares/{share_id}

revokeShare

Revoke an owned share immediately

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
share_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Revokednone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or unowned sharenone
DELETE/api/v1/tracks/{track_id}/dislike

clearTrackDislike

Clear a Track dislike

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Dislike cleared (idempotent)none
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown trackapplication/json
PUT/api/v1/tracks/{track_id}/dislike

setTrackDislike

Mark a canonical Track as disliked

A dislike is independent of the rating and the favorite flag. It excludes the Track from automatic playback selection only.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Dislike stored (idempotent)none
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown trackapplication/json
DELETE/api/v1/tracks/{track_id}/favorite

removeFavorite

Remove favorite

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Stateapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/tracks/{track_id}/favorite

getFavorite

Favorite state

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Stateapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Stable error envelopeapplication/json
PUT/api/v1/tracks/{track_id}/favorite

setFavorite

Set favorite

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Stateapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/tracks/{track_id}/listener-state

getTrackListenerState

Per-Track listener facts

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
200Stateapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown trackapplication/json
DELETE/api/v1/tracks/{track_id}/rating

clearTrackRating

Clear a canonical Track rating

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
204Rating cleared (idempotent)none
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown trackapplication/json
PUT/api/v1/tracks/{track_id}/rating

setTrackRating

Set a canonical Track rating

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: RatingUpdate

Responses
StatusDescriptionContent types
204Rating storednone
400Rating outside 1-5application/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown trackapplication/json
GET/api/v1/user-state/export

exportUserState

Export portable listener state

Favorites, ratings, dislikes, dated events, historical summaries, playlists and preferences in the melodee-user-state/1 schema with a SHA-256 content digest. The instance identity is an opaque installation hash.

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Portable documentapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/user-state/import/preview

previewUserStateImport

Build a digest-bound user-state import plan

Validates schema/version/bounds and records a decision per item. Conflicts (newer local facts, existing summaries/playlists/preferences) and unresolved legacy references are reported without writing state. An idempotency key replays the same plan; a different document under the same key is rejected.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: ImportPreviewRequest

Responses
StatusDescriptionContent types
200Idempotent replayapplication/json
201New planapplication/json
400Invalid document/schema/keyapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/user-state/imports

listUserStateImports

List user-state import plans

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
Responses
StatusDescriptionContent types
200Plansapplication/json
400Invalid limitnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/user-state/imports/{plan_id}

getUserStateImport

Import plan detail with a bounded item page

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
plan_idpathyesstring (uuid)
limitquerynointeger
cursorquerynostringOpaque cursor from the previous page's nextCursor. Rejected with 400 when malformed or from another shared scope; a rejected cursor does not consume a metadata use.
Responses
StatusDescriptionContent types
200Plan detailapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown or inaccessible plannone
POST/api/v1/user-state/imports/{plan_id}/apply

applyUserStateImport

Apply a bounded, resumable batch of an import plan

Requires the current plan revision. Repeating the call with the returned revision resumes; local newer facts are never overwritten silently.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
plan_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: ImportApplyRequest

Responses
StatusDescriptionContent types
200Batch resultapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown plannone
409Stale plan revisionapplication/json
POST/api/v1/user-state/imports/{plan_id}/apply-job

enqueueUserStateImportJob

Queue the durable ImportState job for a plan

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
plan_idpathyesstring (uuid)
Responses
StatusDescriptionContent types
202Queuedapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown plannone
409Plan already appliedapplication/json
GET/api/v1/user-state/unresolved

listUnresolvedReferences

List unresolved legacy Track references

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
includeResolvedquerynoboolean
Responses
StatusDescriptionContent types
200Referencesapplication/json
400Invalid limitnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/user-state/unresolved/{unresolved_id}/resolve

resolveUnresolvedReference

Resolve a legacy reference to a canonical Track

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
unresolved_idpathyesstring (uuid)
Request body (required)

Content types: application/json

Schema: ResolveReferenceRequest

Responses
StatusDescriptionContent types
204Resolvednone
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Unknown reference or Tracknone

playback 8

GET/api/v1/history

listListeningHistory

Personal qualified listening history

Newest first with an opaque keyset cursor. Only qualified plays appear; duplicate delivery is one event and a prefetch is never a play. The window defaults to 30 days and is bounded to 366 days.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
fromMillisquerynointeger (int64)
toMillisquerynointeger (int64)
limitquerynointeger
cursorquerynostring
Responses
StatusDescriptionContent types
200History pageapplication/json
400Invalid range, limit or cursorapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/history/recent

listRecentlyPlayed

Distinct recently played Tracks

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
Responses
StatusDescriptionContent types
200Recent Tracksapplication/json
400Invalid limitnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/playback/autoplay

autoplayCandidates

Bounded automatic playback candidates

Deterministic seed-ordered selection excluding disliked Tracks, Tracks with an excluded genre and Tracks without a playable preferred asset. Never used by search, detail or explicit playback.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
limitquerynointeger
seedquerynostring
Responses
StatusDescriptionContent types
200Candidatesapplication/json
400Invalid requestnone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/plays

recordPlay

Record a qualified playback event

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: PlayRequest

Responses
StatusDescriptionContent types
201Recordedapplication/json
400Stable error envelopeapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
409Stable error envelopeapplication/json
GET/api/v1/public/shares/{token}

getSharedView

Recipient view of a shared scope

Public, token-authenticated. Exposes only the shared playlist/Release/Track entries; never the owner's Catalog, favorites, ratings, history or preferences. Expired, revoked, exhausted and unknown tokens are indistinguishable (404). Each metadata open consumes the optional use budget and starts or renews a bounded playback-authorization window; the response reports its end as playbackExpiresAtMillis.

Parameters
NameInRequiredTypeDescription
tokenpathyesstring
limitquerynointeger
cursorquerynointeger
Responses
StatusDescriptionContent types
200Shared scopeapplication/json
400Invalid limitnone
404Token is not usableapplication/json
GET/api/v1/public/shares/{token}/tracks/{track_id}/stream

streamSharedTrack

Range-stream a Track inside a shared scope

Public, token-authenticated. Only Tracks inside the explicitly shared scope are served while a metadata open's bounded playback window is valid; byte ranges, ETag, 206 and 416 behave exactly like authenticated streaming. Ranges do not consume metadata uses; revoking or expiring the share ends authorization immediately.

Parameters
NameInRequiredTypeDescription
tokenpathyesstring
track_idpathyesstring (uuid)
Rangeheadernostring
Responses
StatusDescriptionContent types
200Full objectnone
206Byte rangenone
404Token or Track is not usableapplication/json
409Track is not currently playablenone
416Range not satisfiablenone
GET/api/v1/stats/listening

listeningStatistics

Listening totals, local-day buckets and charts

Timezone-aware local-day buckets, bounded charts and range. A play counts once per Track, once per credited primary Artist and once per containing Release; multi-artist or multi-release Tracks can therefore contribute to more than one row.

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
fromMillisquerynointeger (int64)
toMillisquerynointeger (int64)
timezonequerynostring
limitquerynointeger
Responses
StatusDescriptionContent types
200Statisticsapplication/json
400Invalid range, timezone or limitapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/tracks/{track_id}/stream

streamTrack

Stream immutable preferred asset

Security: bearerAuth, cookieAuth

Parameters
NameInRequiredTypeDescription
track_idpathyesstring (uuid)
Rangeheadernostring
If-None-Matchheadernostring
Responses
StatusDescriptionContent types
200Audio bytesaudio/mpeg
206Partial contentaudio/mpeg
304Not modifiednone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
404Stable error envelopeapplication/json
416Stable error envelopeapplication/json

search 3

POST/api/v1/mql/execute

executeMql

Execute MQL against canonical Tracks

Compiles the validated query to parameterized PostgreSQL. The account is injected by the server; preference and history fields only observe the caller's own state. Ordering is deterministic by title key and internal identity, with an opaque keyset cursor.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: MqlExecuteRequest

Responses
StatusDescriptionContent types
200Matching Tracksapplication/json
400Invalid MQL, cursor or limit; error fields carry byte positionsapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/mql/fields

listMqlFields

Published MQL field registry

Versioned typed field registry for CLI and Admin UI integration. There is no client-side MQL evaluator; clients submit MQL text to the server.

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Registryapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
POST/api/v1/mql/validate

validateMql

Validate MQL without executing it

Returns stable machine codes with UTF-8 byte source ranges. Validation never touches the database.

Security: bearerAuth, cookieAuth

Request body (required)

Content types: application/json

Schema: MqlValidateRequest

Responses
StatusDescriptionContent types
200Validation result (invalid queries are not an HTTP error)application/json
400Malformed request bodynone
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json

system 3

GET/api/v1/capabilities

getCapabilities

Native API capabilities

Security: bearerAuth, cookieAuth

Responses
StatusDescriptionContent types
200Capabilitiesapplication/json
401Authentication/authorization errorapplication/json
403Authentication/authorization errorapplication/json
GET/api/v1/openapi.json

getOpenApi

Published OpenAPI contract

Responses
StatusDescriptionContent types
200OpenAPI documentapplication/json
GET/healthz

healthz

Liveness

Responses
StatusDescriptionContent types
200Liveapplication/json

This reference reflects the imported artifact only. It is not a statement that the API or any client is published, supported or production-qualified.