openapi: 3.0.0 info: contact: name: AltMount url: https://github.com/kipsilabs/altmount/issues description: REST API for AltMount — Usenet WebDAV server with NZB queue, health monitoring, ARR integration, FUSE/rclone mounting, and Stremio addon. license: name: MIT termsOfService: http://altmount.kipsilabs.top title: AltMount API version: "1.0" paths: "/files/duplicate-lookup": post: description: Uses the sample-sha256-v1 protocol. Returns raw NZB XML on a match, or 204 on a miss. Requires X-API-Key even when interactive login is disabled. summary: Find a reusable NZB by original filename, size and sampled content hash tags: - Files parameters: - name: X-API-Key in: header required: true description: API key schema: type: string requestBody: required: true description: File fingerprint content: application/json: schema: "$ref": "#/components/schemas/duplicatelookup.Request" responses: '200': description: OK content: application/x-nzb: schema: type: string format: binary '204': description: No Content '400': description: Bad Request content: application/json: schema: "$ref": "#/components/schemas/api.APIResponse" '401': description: Unauthorized content: application/json: schema: "$ref": "#/components/schemas/api.APIResponse" '503': description: Service Unavailable content: application/json: schema: "$ref": "#/components/schemas/api.APIResponse" /arrs/download-client/register: post: description: Automatically registers AltMount as a download client (SABnzbd-compatible) in all configured ARR instances. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Register ARR download clients tags: - ARRs /arrs/download-client/test: post: description: Tests whether AltMount is reachable as a download client from all configured ARR instances. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Test ARR download clients tags: - ARRs /arrs/health: get: description: Returns health check results from all configured ARR instances. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get ARR health tags: - ARRs /arrs/instances: get: description: Returns all configured ARR instances. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: List ARR instances tags: - ARRs "/arrs/instances/{type}/{name}": get: description: Returns a specific ARR instance by type and name. parameters: - description: Instance type (sonarr, radarr, lidarr, readarr, whisparr, or sportarr) in: path name: type required: true schema: type: string - description: Instance name in: path name: name required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get ARR instance tags: - ARRs /arrs/instances/test: post: description: Tests connectivity to an ARR instance with given credentials. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.TestConnectionRequest" description: Instance connection details required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Test ARR connection tags: - ARRs /arrs/stats: get: description: Returns sync statistics for all configured ARR instances. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get ARR statistics tags: - ARRs /arrs/webhook: post: description: Receives file-import webhook events from ARR instances and triggers health checks. Authenticated via API key query parameter. parameters: - description: AltMount API key in: query name: apikey required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ArrsWebhookRequest" description: Webhook payload required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - ApiKeyAuth: [] summary: ARR webhook receiver tags: - ARRs /arrs/webhook/register: post: description: Automatically registers AltMount as a webhook connection in all configured ARR instances. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Register ARR webhooks tags: - ARRs /auth/config: get: description: Returns authentication configuration (login required flag, available providers). Public endpoint. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Get auth config tags: - Auth /auth/login: post: description: Authenticates with username and password and returns a JWT access token. Rate-limited to 10/min per IP. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.LoginRequest" description: Login credentials required: true responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.AuthResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "429": description: Too Many Requests content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Login tags: - Auth /auth/register: post: description: Creates the first admin user account. Only allowed when no users exist yet. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.RegisterRequest" description: Registration details required: true responses: "201": description: Created content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.AuthResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Register tags: - Auth /auth/registration-status: get: description: Returns whether registration is currently open (i.e. no users exist yet). responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Check registration status tags: - Auth /auth/reset-admin-password: post: description: Resets the password for a direct-auth user. Only available when login is disabled. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ResetAdminPasswordRequest" description: Reset credentials required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "403": description: Forbidden content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Reset admin password tags: - Auth /config: get: description: Returns the current AltMount configuration with sensitive values masked. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ConfigAPIResponse" type: object "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get configuration tags: - Config put: description: Replaces the entire AltMount configuration. Triggers restart if required. requestBody: content: application/json: schema: type: object description: Complete configuration object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Update configuration tags: - Config "/config/{section}": patch: description: Updates a specific named section of the configuration (e.g. import, sabnzbd, rclone). parameters: - description: Config section name in: path name: section required: true schema: type: string requestBody: content: application/json: schema: type: object description: Section configuration required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Patch configuration section tags: - Config "/config/providers/{id}/speedtest": post: description: Runs a speed test against the specified NNTP provider and saves the result to config. parameters: - description: Provider ID in: path name: id required: true schema: type: string responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ProviderSpeedTestResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Test provider download speed tags: - Providers "/config/providers/{id}/tune-pipeline": post: description: Sweeps inflight depths against the provider and returns the recommended inflight_requests value. parameters: - description: Provider ID in: path name: id required: true schema: type: string responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.PipelineTuneResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Auto-tune provider pipeline depth tags: - Providers /config/reload: post: description: Reloads the AltMount configuration from disk without restarting. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Reload configuration tags: - Config /config/validate: post: description: Validates a configuration object without saving it. requestBody: content: application/json: schema: type: object description: Configuration to validate required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Validate configuration tags: - Config /files/active-streams: get: description: Returns all currently active NZB file streams. Optionally filter by type=file. parameters: - description: Filter by source type (e.g. file) in: query name: type schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: List active streams tags: - Files "/files/active-streams/{id}": delete: description: Terminates an active NZB file stream by ID. parameters: - description: Stream ID in: path name: id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Kill active stream tags: - Files /files/export-batch: post: description: Exports multiple mounted files as NZBs packed in a single ZIP archive. requestBody: content: application/json: schema: properties: paths: items: type: string type: array type: object description: Virtual paths to export required: true responses: "200": description: OK "400": description: Bad Request content: application/zip: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/zip: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Batch export files as NZBs tags: - Files /files/export-nzb: get: description: Exports the metadata of a mounted file back to a downloadable NZB file. parameters: - description: Virtual path to the file in: query name: path required: true schema: type: string responses: "200": description: OK "400": description: Bad Request content: application/x-nzb: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/x-nzb: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Export file metadata as NZB tags: - Files /files/info: get: description: Returns metadata for a mounted NZB file including segment info, encryption, and status. parameters: - description: Virtual path to the file in: query name: path required: true schema: type: string responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.FileMetadataResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get file metadata tags: - Files /files/streams/history: get: description: Returns a history of recently completed NZB file streams. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get stream history tags: - Files /fuse/force-stop: post: description: Force-unmounts the FUSE filesystem using platform-specific commands (fusermount/umount). responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Force stop FUSE mount tags: - FUSE /fuse/start: post: description: Mounts the NZB filesystem at the given path using FUSE. requestBody: content: application/json: schema: properties: path: type: string type: object description: Mount path required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Start FUSE mount tags: - FUSE /fuse/status: get: description: Returns the current status of the FUSE mount (stopped, starting, running, error). responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get FUSE status tags: - FUSE /fuse/stop: post: description: Gracefully unmounts the FUSE filesystem. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Stop FUSE mount tags: - FUSE /health: get: description: Returns a paginated list of file health records with optional status/search filters. parameters: - description: Filter by status in: query name: status schema: type: string enum: - pending - checking - corrupted - repair_triggered - healthy - description: Search by file path in: query name: search schema: type: string - description: Sort field in: query name: sort_by schema: type: string enum: - file_path - created_at - status - priority - last_checked - scheduled_check_at - description: Sort direction in: query name: sort_order schema: type: string enum: - asc - desc - description: ISO8601 timestamp filter in: query name: since schema: type: string - description: Page size (default 50) in: query name: limit schema: type: integer - description: Page offset in: query name: offset schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: items: $ref: "#/components/schemas/api.HealthItemResponse" type: array meta: $ref: "#/components/schemas/api.APIMeta" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: List health records tags: - Health "/health/{id}": delete: description: Deletes a health record and optionally the associated physical file. parameters: - description: Health record ID in: path name: id required: true schema: type: integer - description: Also delete the physical file in: query name: delete_file schema: type: boolean responses: "204": description: No Content "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Delete health record tags: - Health get: description: Returns a single health record by ID. parameters: - description: Health record ID in: path name: id required: true schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get health record tags: - Health "/health/{id}/cancel": post: description: Cancels an in-progress health check for a file. parameters: - description: Health record ID in: path name: id required: true schema: type: integer responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Cancel health check tags: - Health "/health/{id}/check-now": post: description: Triggers an immediate health check for a file, bypassing the queue. parameters: - description: Health record ID in: path name: id required: true schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Trigger immediate health check tags: - Health "/health/{id}/priority": post: description: Sets the checking priority for a health record. parameters: - description: Health record ID in: path name: id required: true schema: type: integer requestBody: content: application/json: schema: properties: priority: type: string type: object description: "Priority: normal or high" required: true responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Set health check priority tags: - Health "/health/{id}/repair": post: description: Triggers a repair attempt for a corrupted file. parameters: - description: Health record ID in: path name: id required: true schema: type: integer requestBody: content: application/json: schema: $ref: "#/components/schemas/api.HealthRepairRequest" description: Repair options responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Trigger health repair tags: - Health "/health/{id}/unmask": post: description: Clears the streaming-failure mask on a health record so it can be checked again. parameters: - description: Health record ID in: path name: id required: true schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Unmask health record tags: - Health /health/bulk/delete: post: description: Deletes multiple health records by ID. requestBody: $ref: "#/components/requestBodies/Body" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Bulk delete health records tags: - Health /health/bulk/repair: post: description: Triggers repair attempts for multiple corrupted files. requestBody: $ref: "#/components/requestBodies/Body" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Bulk trigger health repair tags: - Health /health/bulk/restart: post: description: Resets multiple health records to pending status for re-checking. requestBody: $ref: "#/components/requestBodies/Body" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Bulk restart health checks tags: - Health /health/check: post: description: Adds a file to the health monitoring queue for checking. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.HealthCheckRequest" description: File to check required: true responses: "201": description: Created content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Add file for health check tags: - Health /health/cleanup: delete: description: Removes old health records based on age, status, or both. Optionally deletes physical files. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.HealthCleanupRequest" description: Cleanup filter criteria responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Cleanup health records tags: - Health /health/corrupted: get: description: Returns a paginated list of health records with corrupted status. parameters: - description: Page size (default 50) in: query name: limit schema: type: integer - description: Page offset in: query name: offset schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: items: $ref: "#/components/schemas/api.HealthItemResponse" type: array meta: $ref: "#/components/schemas/api.APIMeta" type: object "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: List corrupted files tags: - Health /health/library-sync/cancel: post: description: Cancels an in-progress library sync operation. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Cancel library sync tags: - Health /health/library-sync/dry-run: post: description: Simulates a library sync and returns what would be changed without applying it. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.DryRunSyncResult" type: object "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Dry-run library sync tags: - Health /health/library-sync/needed: get: description: Returns whether a library sync is needed based on current configuration state. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Check if library sync is needed tags: - Health /health/library-sync/start: post: description: Triggers a library sync operation to reconcile the file system with the database. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Start library sync tags: - Health /health/library-sync/status: get: description: Returns the current status of the library sync worker. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get library sync status tags: - Health /health/reset-all: post: description: Resets all health records to pending status for a full re-check cycle. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Reset all health checks tags: - Health /health/stats: get: description: Returns counts of health records grouped by status. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthStatsResponse" type: object "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get health statistics tags: - Health /health/worker/status: get: description: Returns the current status and statistics of the background health check worker. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.HealthWorkerStatusResponse" type: object security: - BearerAuth: [] summary: Get health worker status tags: - Health /import/file: post: description: Adds an NZB file at a given filesystem path to the import queue. Public endpoint (API key in query). requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ManualImportRequest" description: File path to import required: true responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ManualImportResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - ApiKeyAuth: [] summary: Manually import a file tags: - Import /import/history: delete: description: Removes all completed import history records. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Clear import history tags: - Import get: description: Returns a paginated list of completed import records. parameters: - description: Page size (default 50) in: query name: limit schema: type: integer - description: Page offset in: query name: offset schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: items: $ref: "#/components/schemas/api.ImportHistoryResponse" type: array meta: $ref: "#/components/schemas/api.APIMeta" type: object "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get import history tags: - Import /import/nzbdav: delete: description: Cancels the currently running NZBDav import operation. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Cancel NZBDav import tags: - Import post: description: Starts an import from a WebDAV/NZBDav source, fetching NZBs from the remote. requestBody: content: application/json: schema: type: object description: Import configuration (uses server config if omitted) responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Import from NZBDav source tags: - Import /import/nzbdav/migrate-symlinks: post: description: Walks a library directory and rewrites symlinks that target the nzbdav mount to point at the altmount path instead. requestBody: content: application/json: schema: type: object description: library_path, source_mount_path, dry_run required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Migrate NZBDav library symlinks tags: - Import /import/nzbdav/migrations: delete: description: Deletes every import_migrations row for source='nzbdav' regardless of status. Use to force a full re-import after the imported files have been deleted from AltMount. This will cause the scanner to re-process every blob on the next import. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Clear ALL NZBDav migration rows tags: - Import /import/nzbdav/pending-migrations: delete: description: Deletes all import_migrations rows with status='pending' for source='nzbdav'. Keeps imported/symlinks_migrated rows untouched. Use to remove orphaned rows from a cancelled/failed import before re-importing. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Clear pending NZBDav migration rows tags: - Import /import/nzbdav/reset: post: description: Resets the NZBDav import state so a new import can be started. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Reset NZBDav import status tags: - Import /import/nzbdav/status: get: description: Returns the current status of the NZBDav import operation. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get NZBDav import status tags: - Import /import/scan: delete: description: Cancels the currently running manual directory scan. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Cancel directory scan tags: - Import post: description: Scans a directory for NZB files and adds them to the import queue. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ManualScanRequest" description: Directory path to scan required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Start manual directory scan tags: - Import /import/scan/status: get: description: Returns the current status of the manual directory scan operation. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ScanStatusResponse" type: object security: - BearerAuth: [] summary: Get scan status tags: - Import /metadata/corrupted: delete: description: Removes every corrupted metadata safety copy and releases the segment stores they hold. responses: "204": description: No Content "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Purge corrupted metadata tags: - Metadata get: description: Returns how many corrupted metadata safety copies are retained and how much disk they occupy. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.CorruptedMetadataStatsResponse" type: object "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get corrupted metadata stats tags: - Metadata /metadata/migration/cancel: post: description: Stops an in-flight migration after the current file. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Cancel the metadata migration tags: - Metadata /metadata/migration/dry-run: post: description: Converts against an isolated temporary root and reports measured savings without touching the library. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Dry-run the metadata migration tags: - Metadata /metadata/migration/start: post: description: Rewrites legacy .meta files to the v3 store-backed format in place. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Start the metadata migration tags: - Metadata /metadata/migration/status: get: description: Returns the status of the legacy metadata → v3 migration worker. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get metadata migration status tags: - Metadata /nzb/streams: post: description: "Accepts an NZB file (upload or URL), queues it with high priority, and returns Stremio-compatible stream URLs as soon as the file is accessible via VFS. Auth: download_key form field (SHA256 of API key) or X-Api-Key header (raw API key). Returns _cached=true when served from an already-completed item." parameters: - description: Raw API key (alternative to download_key form field) in: header name: X-Api-Key schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: file: description: NZB file to process (mutually exclusive with nzb_url) type: string format: binary nzb_url: description: URL to download the NZB from (mutually exclusive with file) type: string download_key: description: "SHA256 hash of the user's API key (alternative: X-Api-Key header)" type: string category: description: "Queue category (default: stremio)" type: string timeout: description: "Processing timeout in seconds (default: 300)" type: integer season: description: Season number for selecting one episode from a season pack type: integer episode: description: Episode number for selecting one episode from a season pack type: integer id: description: Stremio content id (e.g. tt1234567:1:5) as an alternative to season/episode type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.StremioStreamsResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Get Stremio streams for NZB file tags: - Stremio /providers: post: description: Adds a new NNTP provider to the configuration. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ProviderCreateRequest" description: Provider details required: true responses: "201": description: Created content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ProviderAPIResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Create NNTP provider tags: - Providers "/providers/{id}": delete: description: Removes an NNTP provider by ID from the configuration. parameters: - description: Provider ID in: path name: id required: true schema: type: string responses: "204": description: No Content "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Delete NNTP provider tags: - Providers put: description: Updates an existing NNTP provider by ID. parameters: - description: Provider ID in: path name: id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ProviderUpdateRequest" description: Fields to update required: true responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ProviderAPIResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Update NNTP provider tags: - Providers "/providers/{id}/reset-quota": post: description: Resets the download quota counter for the specified provider, allowing it to download again. parameters: - description: Provider ID in: path name: id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Reset provider download quota tags: - Providers /providers/backbones: get: description: Returns a cached mapping of usenet hostnames to their upstream backbone (storage group) responses: "200": description: OK content: application/json: schema: additionalProperties: true type: object "503": description: Service Unavailable content: application/json: schema: additionalProperties: true type: object summary: Get provider backbone map tags: - providers /providers/reorder: put: description: Sets the priority order of NNTP providers. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ProviderReorderRequest" description: Ordered list of provider IDs required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Reorder NNTP providers tags: - Providers /providers/test: post: description: Tests NNTP provider connectivity with given credentials, returning RTT on success. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.ProviderTestRequest" description: Provider credentials to test required: true responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.TestProviderResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Test NNTP provider tags: - Providers /prowlarr/indexers: post: description: Returns the usenet indexers configured in Prowlarr for the Stremio addon. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.prowlarrIndexersRequest" description: Optional Prowlarr connection overrides responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: List Prowlarr indexers tags: - Config /queue: get: description: Returns a paginated list of NZB download queue items with optional filters. parameters: - description: Filter by status in: query name: status schema: type: string enum: - pending - processing - waiting_repair - completed - failed - fallback - description: Search by filename in: query name: search schema: type: string - description: Sort field in: query name: sort_by schema: type: string enum: - created_at - updated_at - status - nzb_path - description: Sort direction in: query name: sort_order schema: type: string enum: - asc - desc - description: ISO8601 timestamp filter in: query name: since schema: type: string - description: Page size (default 50) in: query name: limit schema: type: integer - description: Page offset in: query name: offset schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: items: $ref: "#/components/schemas/api.QueueItemResponse" type: array meta: $ref: "#/components/schemas/api.APIMeta" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: List queue items tags: - Queue "/queue/{id}": delete: description: Deletes a queue item by ID. Cannot delete items currently being processed. parameters: - description: Queue item ID in: path name: id required: true schema: type: integer responses: "204": description: No Content "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Delete queue item tags: - Queue get: description: Returns a single queue item by ID. parameters: - description: Queue item ID in: path name: id required: true schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.QueueItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get queue item tags: - Queue "/queue/{id}/cancel": post: description: Requests cancellation of a queue item that is currently being processed. parameters: - description: Queue item ID in: path name: id required: true schema: type: integer responses: "202": description: Accepted content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Cancel queue item tags: - Queue "/queue/{id}/download": get: description: Downloads the original NZB file associated with a queue item. parameters: - description: Queue item ID in: path name: id required: true schema: type: integer responses: "200": description: OK "400": description: Bad Request content: application/x-nzb: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/x-nzb: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Download NZB file tags: - Queue "/queue/{id}/priority": patch: description: Changes the priority of a pending or failed queue item. parameters: - description: Queue item ID in: path name: id required: true schema: type: integer requestBody: content: application/json: schema: properties: priority: type: integer type: object description: "Priority: 1=high, 2=normal, 3=low" required: true responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.QueueItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Update queue item priority tags: - Queue "/queue/{id}/retry": post: description: Resets a failed, pending, or completed queue item to pending so it is picked up by the worker pool. parameters: - description: Queue item ID in: path name: id required: true schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.QueueItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Retry queue item tags: - Queue /queue/bulk: delete: description: Deletes multiple queue items by ID. Cannot delete items currently being processed. requestBody: $ref: "#/components/requestBodies/Body2" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Bulk delete queue items tags: - Queue /queue/bulk/cancel: post: description: Requests cancellation of multiple currently-processing queue items. requestBody: $ref: "#/components/requestBodies/Body2" responses: "202": description: Accepted content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Bulk cancel queue items tags: - Queue /queue/bulk/priority: patch: description: Updates the priority for multiple queue items at once. Items currently being processed are skipped. requestBody: content: application/json: schema: properties: ids: items: format: int64 type: integer type: array priority: type: integer type: object description: "IDs and priority: 1=high, 2=normal, 3=low" required: true responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: properties: message: type: string skipped_count: type: integer updated_count: type: integer type: object type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Bulk update queue item priorities tags: - Queue /queue/bulk/restart: post: description: Resets multiple queue items to pending status for reprocessing. requestBody: $ref: "#/components/requestBodies/Body2" responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "409": description: Conflict content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Bulk restart queue items tags: - Queue /queue/completed: delete: description: Removes all completed items from the queue. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Clear completed queue items tags: - Queue /queue/failed: delete: description: Removes all failed items from the queue. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Clear failed queue items tags: - Queue /queue/pending: delete: description: Removes all pending items from the queue. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Clear pending queue items tags: - Queue /queue/stats: get: description: Returns current queue statistics (counts by status, average processing time). responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.QueueStatsResponse" type: object "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get queue statistics tags: - Queue /queue/stats/history: get: description: Returns historical import statistics over a rolling window (last 24h, 7d, 30d, 365d). parameters: - description: Number of days of history (default 1, max 365) in: query name: days schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.QueueHistoricalStatsResponse" type: object "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get historical queue statistics tags: - Queue /queue/test: post: description: Downloads a test NZB from sabnzbd.org and adds it to the queue for connectivity testing. requestBody: content: application/json: schema: properties: size: type: string type: object description: "Size: 100MB, 1GB, or 10GB" required: true responses: "201": description: Created content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.QueueItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "502": description: Bad Gateway content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Add test download to queue tags: - Queue /queue/upload: post: description: Uploads an NZB file and adds it to the download queue. requestBody: content: multipart/form-data: schema: type: object properties: file: description: NZB file to upload (max 100MB) type: string format: binary category: description: Optional category type: string relative_path: description: Optional relative path under CompleteDir type: string priority: description: "Priority: 1=high, 2=normal, 3=low" type: integer required: - file required: true responses: "201": description: Created content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.QueueItemResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Upload NZB file to queue tags: - Queue /queue/upload-by-name: post: description: Searches for an NZB by name via the configured indexer and adds the result to the queue. requestBody: content: application/json: schema: properties: category: type: string name: type: string password: type: string priority: type: integer relative_path: type: string type: object description: Search request required: true responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "404": description: Not Found content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Search NZB by name and add to queue tags: - Queue /queue/upload-nzblnk: post: description: Resolves one or more nzblnk:// links and adds the resulting NZBs to the queue. requestBody: content: application/json: schema: properties: category: type: string links: items: type: string type: array priority: type: integer relative_path: type: string type: object description: NZBLNK request (max 20 links) required: true responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Add NZBLnk links to queue tags: - Queue "/stremio/{key}/manifest.json": get: description: Returns the Stremio addon manifest JSON for installation. The key authenticates the addon. parameters: - description: Download key (SHA256 of API key) in: path name: key required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.stremioManifest" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Stremio addon manifest tags: - Stremio "/stremio/{key}/play": get: description: Downloads the NZB from Prowlarr by URL, queues it with high priority, waits for download completion, then redirects (302) to the first media stream URL. parameters: - description: Download key (SHA256 of API key) in: path name: key required: true schema: type: string - description: Prowlarr NZB download URL in: query name: url required: true schema: type: string - description: Safe filename title for the NZB in: query name: title schema: type: string - description: Season number for selecting one episode from a season pack in: query name: season schema: type: integer - description: Episode number for selecting one episode from a season pack in: query name: episode schema: type: integer responses: "302": description: Redirects to media stream URL content: application/json: schema: type: string "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Play Stremio NZB stream tags: - Stremio "/stremio/{key}/stream/{type}/{id}.json": get: description: Searches Prowlarr for matching NZBs and returns Stremio-compatible stream URL options. parameters: - description: Download key in: path name: key required: true schema: type: string - description: Content type (movie or series) in: path name: type required: true schema: type: string - description: Stremio content ID (e.g. tt1234567) in: path name: id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" summary: Stremio stream handler tags: - Stremio /system/browse: get: description: Lists filesystem entries at a given path for directory/file picker UIs. parameters: - description: Directory path to browse (defaults to root) in: query name: path schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Browse filesystem tags: - System /system/cleanup: post: description: Removes old queue items and health records based on age. Supports dry-run mode. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.SystemCleanupRequest" description: Cleanup criteria responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.SystemCleanupResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: System cleanup tags: - System /system/health: get: description: Returns health status of all system components (database, workers, etc.). responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.SystemHealthResponse" type: object security: - BearerAuth: [] summary: Get system health tags: - System /system/pool/metrics: get: description: Returns download/upload metrics, speed, and per-provider connection statistics. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.PoolMetricsResponse" type: object security: - BearerAuth: [] summary: Get NNTP pool metrics tags: - System /system/provider-speed-history: get: description: Returns speed test history per provider over the given number of days. parameters: - description: "Number of days to fetch data for (default: 30)" in: query name: days schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ProviderSpeedTestHistoryResponse" type: object security: - BearerAuth: [] summary: Get provider speed test history tags: - System /system/provider-stats: get: description: Returns aggregated data usage per provider over the given number of days. parameters: - description: "Number of days to fetch data for (default: 30)" in: query name: days schema: type: integer - description: Aggregation interval (daily, weekly, monthly, yearly) in: query name: interval schema: type: string responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.ProviderHistoricalStatsResponse" type: object security: - BearerAuth: [] summary: Get provider historical data usage stats tags: - System /system/restart: post: description: Schedules a graceful system restart. Use force=true to skip safety checks. requestBody: content: application/json: schema: $ref: "#/components/schemas/api.SystemRestartRequest" description: Restart options responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.SystemRestartResponse" type: object security: - BearerAuth: [] summary: Restart system tags: - System /system/stats: get: description: Returns combined queue, health, and system information statistics. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.SystemStatsResponse" type: object "500": description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get system statistics tags: - System /system/stats/reset: post: description: Resets accumulated system statistics counters (pool metrics, download counters). responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Reset system statistics tags: - System /system/update/apply: post: description: Pulls the latest Docker image and restarts the container to apply the update. requestBody: content: application/json: schema: properties: channel: type: string type: object description: Update channel (latest or dev) responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "503": description: Service Unavailable content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Apply update tags: - System /system/update/status: get: description: Checks Docker Hub for the latest available version and returns whether an update is available. parameters: - description: Release channel in: query name: channel schema: type: string enum: - latest - dev responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.UpdateStatusResponse" type: object "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get update status tags: - System /user: get: description: Returns information about the currently authenticated user. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.UserResponse" type: object "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Get current user tags: - User /user/api-key/regenerate: post: description: Generates a new API key for the authenticated user, invalidating the old one. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.UserResponse" type: object "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Regenerate API key tags: - User /user/logout: post: description: Invalidates the current session and JWT token. responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Logout tags: - User /user/password: put: description: Changes the password for the currently authenticated user. requestBody: content: application/json: schema: properties: current_password: type: string new_password: type: string type: object description: Password change request required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "400": description: Bad Request content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Change password tags: - User /user/refresh: post: description: Issues a new JWT access token using the current valid token. responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/api.APIResponse" - properties: data: $ref: "#/components/schemas/api.AuthResponse" type: object "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/api.APIResponse" security: - BearerAuth: [] summary: Refresh token tags: - User tags: - description: NZB download queue management name: Queue - description: File health monitoring and repair name: Health - description: File metadata, streams, and NZB export name: Files - description: Manual file imports and directory scanning name: Import - description: NNTP provider management name: Providers - description: Sonarr/Radarr integration name: ARRs - description: Configuration management name: Config - description: System stats, health, and maintenance name: System - description: FUSE mount management name: FUSE - description: Stremio addon and NZB stream endpoints name: Stremio - description: Authentication and registration name: Auth - description: Current user management name: User servers: - url: //localhost:8080/api components: requestBodies: Body: content: application/json: schema: properties: ids: items: type: integer type: array type: object description: List of health record IDs required: true Body2: content: application/json: schema: properties: ids: items: type: integer type: array type: object description: List of queue item IDs required: true securitySchemes: ApiKeyAuth: in: query name: apikey type: apiKey schemas: duplicatelookup.Request: type: object properties: algorithm: type: string hash: type: string name: type: string size: type: integer api.APIError: properties: code: type: string details: type: string message: type: string type: object api.APIMeta: properties: count: type: integer limit: type: integer offset: type: integer total: type: integer type: object api.APIResponse: properties: data: {} error: $ref: "#/components/schemas/api.APIError" meta: $ref: "#/components/schemas/api.APIMeta" success: type: boolean type: object api.ArrsAPIResponse: properties: enabled: type: boolean lidarr_instances: items: $ref: "#/components/schemas/api.ArrsInstanceAPIResponse" type: array max_workers: type: integer queue_cleanup_enabled: type: boolean queue_cleanup_grace_period_minutes: type: integer queue_cleanup_interval_seconds: type: integer queue_cleanup_max_failures: type: integer queue_cleanup_rules: items: $ref: "#/components/schemas/config.StuckCleanupRule" type: array radarr_instances: items: $ref: "#/components/schemas/api.ArrsInstanceAPIResponse" type: array readarr_instances: items: $ref: "#/components/schemas/api.ArrsInstanceAPIResponse" type: array sonarr_instances: items: $ref: "#/components/schemas/api.ArrsInstanceAPIResponse" type: array sportarr_instances: items: $ref: "#/components/schemas/api.ArrsInstanceAPIResponse" type: array webhook_base_url: type: string whisparr_instances: items: $ref: "#/components/schemas/api.ArrsInstanceAPIResponse" type: array type: object api.ArrsDeletedFile: properties: path: type: string type: object api.ArrsInstanceAPIResponse: properties: api_key: type: string api_key_set: type: boolean category: type: string enabled: type: boolean name: type: string sync_interval_hours: type: integer url: type: string type: object api.ArrsWebhookRequest: properties: album: properties: id: type: integer title: type: string type: object artist: properties: id: type: integer path: type: string type: object author: properties: id: type: integer path: type: string type: object book: properties: id: type: integer title: type: string type: object bookFile: properties: id: type: integer type: object deletedFiles: items: $ref: "#/components/schemas/api.ArrsDeletedFile" type: array downloadId: type: string episodeFile: properties: id: type: integer path: type: string sceneName: type: string type: object episodes: items: properties: episodeNumber: type: integer id: type: integer seasonNumber: type: integer title: type: string type: object type: array eventType: type: string filePath: type: string instanceName: type: string movie: description: For upgrades/renames, the file path might be in other fields or need to be inferred properties: folderPath: type: string id: type: integer tmdbId: type: integer type: object movieFile: properties: id: type: integer path: type: string sceneName: type: string type: object release: properties: indexer: type: string releaseTitle: type: string type: object series: properties: id: type: integer path: type: string tvdbId: type: integer type: object trackFile: properties: id: type: integer type: object type: object api.AuthResponse: properties: message: type: string redirect_url: type: string user: $ref: "#/components/schemas/api.UserResponse" type: object api.ComponentHealth: properties: details: type: string message: type: string status: description: '"healthy", "degraded", "unhealthy"' type: string type: object api.ConfigAPIResponse: properties: api: $ref: "#/components/schemas/config.APIConfig" api_key: description: User's API key for authentication type: string arrs: $ref: "#/components/schemas/api.ArrsAPIResponse" auth: $ref: "#/components/schemas/config.AuthConfig" database: $ref: "#/components/schemas/config.DatabaseConfig" download_key: description: SHA256 of the API key, used for download/stream URLs type: string fuse: $ref: "#/components/schemas/config.FuseConfig" health: $ref: "#/components/schemas/config.HealthConfig" import: $ref: "#/components/schemas/api.ImportAPIResponse" log: $ref: "#/components/schemas/config.LogConfig" memory_limit_mb: description: >- MemoryLimitMB is the Go soft memory limit. Unset or 0 derives it from the budgets that allocate (see SoftMemoryLimit); a positive value pins it; a negative value leaves the runtime default. GOMEMLIMIT in the environment always takes precedence. type: integer metadata: $ref: "#/components/schemas/config.MetadataConfig" mount_path: type: string mount_type: $ref: "#/components/schemas/config.MountType" network: $ref: "#/components/schemas/config.NetworkConfig" par2_repair: $ref: "#/components/schemas/config.Par2RepairConfig" profiler_enabled: type: boolean providers: items: $ref: "#/components/schemas/api.ProviderAPIResponse" type: array rclone: $ref: "#/components/schemas/api.RCloneAPIResponse" sabnzbd: $ref: "#/components/schemas/api.SABnzbdAPIResponse" segment_cache: $ref: "#/components/schemas/config.SegmentCacheConfig" streaming: $ref: "#/components/schemas/config.StreamingConfig" stremio: $ref: "#/components/schemas/api.StremioAPIResponse" user_agent: description: >- UserAgent is the HTTP User-Agent sent on every outbound HTTP request that identifies AltMount (indexer NZB downloads, metadata lookups, nzblnk:// resolution, GitHub release checks). Defaults to a browser-like string because some public indexers reject non-browser agents. Leave empty to use the default. type: string webdav: $ref: "#/components/schemas/api.WebDAVAPIResponse" type: object api.CorruptedMetadataStatsResponse: properties: file_count: type: integer total_bytes: type: integer type: object api.DailyStat: properties: completed: type: integer day: type: string failed: type: integer type: object api.DryRunSyncResult: properties: database_records_to_clean: description: Number of database records to clean type: integer orphaned_library_files: description: Number of orphaned library files (symlinks/STRM) type: integer orphaned_metadata_count: description: Number of orphaned metadata files type: integer would_cleanup: description: Whether cleanup would occur based on config type: boolean type: object api.FileMetadataResponse: properties: available_segments: type: integer created_at: type: string encryption: type: string file_size: type: integer modified_at: type: string nested_sources: items: $ref: "#/components/schemas/api.NestedSourceResponse" type: array password_protected: type: boolean segment_count: type: integer segments: items: $ref: "#/components/schemas/api.SegmentInfoResponse" type: array source_nzb_path: type: string status: type: string type: object api.HealthCheckRequest: properties: file_path: type: string library_path: type: string max_retries: type: integer priority: $ref: "#/components/schemas/database.HealthPriority" source_nzb_path: type: string type: object api.HealthCleanupRequest: properties: delete_files: description: Whether to also delete the physical files type: boolean older_than: type: string status: $ref: "#/components/schemas/database.HealthStatus" type: object api.HealthItemResponse: properties: created_at: type: string error_details: type: string file_path: type: string id: type: integer indexer: description: Added indexer type: string is_masked: type: boolean last_checked: type: string last_error: type: string library_path: type: string max_repair_retries: type: integer max_retries: type: integer metadata: type: string priority: $ref: "#/components/schemas/database.HealthPriority" repair_retry_count: type: integer retry_count: type: integer scheduled_check_at: type: string source_nzb_path: type: string status: $ref: "#/components/schemas/database.HealthStatus" streaming_failure_count: description: Failure masking fields type: integer updated_at: type: string type: object api.HealthRepairRequest: properties: reset_repair_retry_count: type: boolean type: object api.HealthStatsResponse: properties: checking: type: integer corrupted: type: integer degraded: type: integer healthy: type: integer pending: type: integer repair_triggered: type: integer total: type: integer type: object api.HealthWorkerStatusResponse: properties: current_run_files_checked: type: integer current_run_start_time: type: string error_count: type: integer last_error: type: string last_run_time: type: string next_run_time: type: string status: type: string total_files_checked: type: integer total_files_corrupted: type: integer total_files_healthy: type: integer total_runs_completed: type: integer type: object api.ImportAPIResponse: properties: allow_nested_rar_extraction: type: boolean allowed_file_extensions: items: type: string type: array filter_sample_files: type: boolean import_dir: type: string import_strategy: $ref: "#/components/schemas/config.ImportStrategy" max_download_prefetch: type: integer max_processor_workers: type: integer queue_processing_interval_seconds: description: Interval in seconds type: integer read_timeout_seconds: type: integer rename_to_nzb_name: type: boolean segment_sample_percentage: description: Percentage of segments to check (1-100) type: integer stream_headroom_connections: description: >- StreamHeadroomConnections is nil when the reservation derives from pool size, and an explicit 0 when the operator has disabled it entirely. type: integer watch_dir: type: string watch_interval_seconds: type: integer type: object api.ImportHistoryResponse: properties: category: type: string completed_at: type: string file_name: type: string file_size: type: integer id: type: integer indexer: description: Added indexer type: string library_path: type: string metadata: type: string nzb_id: type: integer nzb_name: type: string virtual_path: type: string type: object api.LoginRequest: properties: password: type: string username: type: string type: object api.ManualImportRequest: properties: file_path: type: string relative_path: type: string skip_arr_notification: type: boolean type: object api.ManualImportResponse: properties: message: type: string queue_id: type: integer type: object api.ManualScanRequest: properties: path: type: string type: object api.NestedSegmentResponse: properties: end_offset: type: integer message_id: type: string segment_size: type: integer start_offset: type: integer type: object api.NestedSourceResponse: properties: encrypted: type: boolean inner_length: type: integer inner_volume_size: type: integer segment_count: type: integer segments: items: $ref: "#/components/schemas/api.NestedSegmentResponse" type: array volume_index: type: integer type: object api.NewsnabIndexerAPIResponse: properties: api_key: type: string api_key_set: type: boolean categories: items: type: integer type: array enabled: type: boolean id: type: string name: type: string timeout_seconds: type: integer url: type: string weight: type: integer type: object api.PipelineDepthSample: properties: depth: type: integer mbps: type: number type: object api.PipelineTuneResponse: properties: baseline_mbps: type: number best_mbps: type: number enabled: type: boolean improvement_pct: type: number recommended_inflight: type: integer recommended_stat_inflight: type: integer test_connections: type: integer tested: items: $ref: "#/components/schemas/api.PipelineDepthSample" type: array warning: type: string type: object api.PoolMetricsResponse: properties: articles_downloaded: type: integer articles_posted: type: integer bytes_downloaded: type: integer bytes_downloaded_24h: type: integer bytes_uploaded: type: integer download_speed_bytes_per_sec: type: number max_download_speed_bytes_per_sec: type: number provider_bytes: additionalProperties: format: int64 type: integer type: object provider_errors: additionalProperties: format: int64 type: integer type: object providers: items: $ref: "#/components/schemas/api.ProviderStatusResponse" type: array started_at: type: string timestamp: type: string total_errors: type: integer upload_speed_bytes_per_sec: type: number type: object api.ProviderAPIResponse: properties: account_expiration_date: type: string enabled: type: boolean host: type: string id: description: ID is a stable public provider identifier; it is not an authentication field. type: string inflight_requests: type: integer insecure_tls: type: boolean is_backup_provider: type: boolean keepalive_command: type: string keepalive_interval_seconds: type: integer last_rtt_ms: type: integer last_speed_test_mbps: type: number last_speed_test_time: type: string max_connections: type: integer min_connections_alive: type: integer name: type: string password_set: type: boolean port: type: integer proxy_url: type: string max_article_age_days: description: >- How far back this provider's retention reaches, in days. Articles older than this are fetched from it only after every provider that does reach back that far. 0 means no limit. type: integer quota_bytes: type: integer quota_period_hours: type: integer skip_ping: type: boolean stat_inflight_requests: type: integer storage_group: type: string strict_max_article_age: description: >- Makes max_article_age_days binding rather than an ordering preference: the provider is not contacted at all for an article older than its retention. type: boolean tls: type: boolean user_agent: type: string username: type: string type: object api.ProviderCreateRequest: properties: enabled: type: boolean host: type: string insecure_tls: type: boolean is_backup_provider: type: boolean max_connections: type: integer min_connections_alive: type: integer password: type: string port: type: integer proxy_url: type: string storage_group: type: string tls: type: boolean username: type: string type: object api.ProviderHistoricalStatResponse: properties: bytes_downloaded: type: integer provider_id: type: string timestamp: type: string type: object api.ProviderHistoricalStatsResponse: properties: stats: items: $ref: "#/components/schemas/api.ProviderHistoricalStatResponse" type: array type: object api.ProviderReorderRequest: properties: provider_ids: items: type: string type: array type: object api.ProviderSpeedTestHistoryResponse: properties: history: items: $ref: "#/components/schemas/api.ProviderSpeedTestHistoryStat" type: array type: object api.ProviderSpeedTestHistoryStat: properties: created_at: type: string id: type: integer provider_id: type: string speed_mbps: type: number type: object api.ProviderSpeedTestResponse: properties: duration_seconds: type: number speed_mbps: type: number type: object api.ProviderStatusResponse: properties: byte_count: type: integer byte_count_24h: type: integer current_speed_bytes_per_sec: type: number error_count: type: integer failure_reason: type: string host: type: string id: type: string last_connection_attempt: type: string last_speed_test_mbps: type: number last_speed_test_time: type: string last_successful_connect: type: string max_connections: type: integer missing_count: type: integer missing_rate_per_minute: type: number missing_warning: type: boolean name: type: string ping_ms: type: integer quota_bytes: type: integer quota_exceeded: type: boolean quota_reset_at: type: string quota_used: type: integer started_at: type: string state: type: string used_connections: type: integer type: object api.ProviderTestRequest: properties: host: type: string insecure_tls: type: boolean password: type: string port: type: integer proxy_url: type: string tls: type: boolean username: type: string type: object api.ProviderUpdateRequest: properties: enabled: type: boolean host: type: string insecure_tls: type: boolean is_backup_provider: type: boolean max_connections: type: integer min_connections_alive: type: integer password: type: string port: type: integer proxy_url: type: string storage_group: type: string tls: type: boolean username: type: string type: object api.ProwlarrAPIResponse: properties: api_key: type: string api_key_set: type: boolean categories: items: type: integer type: array custom_scores: additionalProperties: type: integer type: object enabled: type: boolean exclude_keywords: items: type: string type: array host: type: string indexers: items: type: integer type: array languages: items: type: string type: array preferred_indexer_names: items: type: string type: array preferred_indexers: items: type: integer type: array preferred_languages: items: type: string type: array qualities: items: type: string type: array type: object api.QueueHistoricalStatsResponse: properties: daily: items: $ref: "#/components/schemas/api.DailyStat" type: array last_7_days: $ref: "#/components/schemas/api.QueueHistoryRange" last_24_hours: $ref: "#/components/schemas/api.QueueHistoryRange" last_30_days: $ref: "#/components/schemas/api.QueueHistoryRange" last_365_days: $ref: "#/components/schemas/api.QueueHistoryRange" type: object api.QueueHistoryRange: properties: completed: type: integer failed: type: integer percentage: type: number type: object api.QueueItemResponse: properties: batch_id: type: string category: type: string completed_at: type: string created_at: type: string error_message: type: string file_size: type: integer id: type: integer indexer: description: Indexer name type: string max_retries: type: integer metadata: type: string nzb_display_name: type: string nzb_path: type: string percentage: description: Progress percentage (0-100), only for items being processed type: integer priority: $ref: "#/components/schemas/database.QueuePriority" retry_count: type: integer stage: description: Progress stage (e.g. "Validating segments") type: string started_at: type: string status: $ref: "#/components/schemas/database.QueueStatus" storage_path: description: Internal FUSE mount path (populated after completion) type: string target_path: type: string updated_at: type: string type: object api.QueueStatsResponse: properties: avg_processing_time_ms: type: integer last_updated: type: string total_completed: type: integer total_failed: type: integer total_processing: type: integer total_queued: type: integer type: object api.RCloneAPIResponse: properties: allow_non_empty: type: boolean allow_other: description: Mount-Specific Settings type: boolean async_read: type: boolean attr_timeout: type: string buffer_size: type: string cache_dir: description: VFS Cache Settings type: string dir_cache_time: type: string gid: type: integer links: type: boolean log_level: description: System and filesystem options type: string mount_enabled: description: Mount Configuration type: boolean mount_options: additionalProperties: type: string type: object no_checksum: type: boolean no_mod_time: description: Advanced Settings type: boolean password_set: description: Encryption type: boolean rc_enabled: type: boolean rc_options: additionalProperties: type: string type: object rc_pass_set: type: boolean rc_port: type: integer rc_url: type: string rc_user: type: string rcd_restart_after: description: >- RcdRestartAfter is how long the rcd may stay unresponsive to liveness probes before it is killed and restarted. Empty means the built-in default. type: string read_only: type: boolean salt_set: type: boolean syslog: type: boolean timeout: type: string transfers: type: integer uid: type: integer umask: type: string use_mmap: type: boolean vfs_cache_max_age: type: string vfs_cache_max_size: type: string vfs_cache_min_free_space: type: string vfs_cache_mode: type: string vfs_cache_poll_interval: type: string vfs_disk_space_total: type: string vfs_fast_fingerprint: type: boolean vfs_name: type: string vfs_read_ahead: type: string vfs_read_chunk_size: type: string vfs_read_chunk_size_limit: type: string vfs_read_chunk_streams: type: integer type: object api.RegisterRequest: properties: email: type: string password: type: string username: type: string type: object api.ResetAdminPasswordRequest: properties: new_password: type: string username: type: string type: object api.SABnzbdAPIResponse: properties: categories: items: $ref: "#/components/schemas/config.SABnzbdCategory" type: array complete_dir: type: string download_client_base_url: type: string enabled: type: boolean fallback_api_key: description: Obfuscated if set type: string fallback_api_key_set: description: Indicates if API key is set type: boolean fallback_host: type: string history_retention_minutes: type: integer type: object api.ScanStatusResponse: properties: current_file: type: string files_added: type: integer files_found: type: integer last_error: type: string path: type: string start_time: type: string status: type: string type: object api.SegmentInfoResponse: properties: available: type: boolean end_offset: type: integer message_id: type: string segment_size: type: integer start_offset: type: integer type: object api.StreamScoringAPIResponse: properties: custom_formats: items: $ref: "#/components/schemas/api.TrashCustomFormatAPIResponse" type: array exclude_keywords: items: type: string type: array exclude_regex: type: string preferred_languages: items: type: string type: array preset: type: string require_preferred_language: type: boolean type: object api.StremioAPIResponse: properties: addon_description: type: string addon_name: type: string base_url: type: string direct_stream: type: boolean enabled: type: boolean failed_release_ttl_hours: description: >- No omitempty: an explicit 0 must survive the round-trip, otherwise saving the config would silently restore the defaults. type: integer fallback_timeout_ms: type: integer fast_fail_header_only: type: boolean include_library_streams: type: boolean indexers: $ref: "#/components/schemas/api.StremioIndexersAPIResponse" max_fallback_releases: type: integer max_retries: type: integer nzb_ttl_hours: type: integer prowlarr: $ref: "#/components/schemas/api.ProwlarrAPIResponse" scoring: $ref: "#/components/schemas/api.StreamScoringAPIResponse" show_cached_indicator: type: boolean stream_ttl_seconds: type: integer type: object api.StremioIndexersAPIResponse: properties: custom_user_agent: type: string newsnab: items: $ref: "#/components/schemas/api.NewsnabIndexerAPIResponse" type: array provider: type: string prowlarr: $ref: "#/components/schemas/api.ProwlarrAPIResponse" user_agent_mode: type: string type: object api.StremioStream: properties: name: type: string title: type: string url: type: string type: object api.StremioStreamsResponse: properties: _cached: description: >- Cached is true when streams were served from an already-completed queue item without re-processing. Callers such as AIOStreams can use this to show an "instant" indicator to the user. type: boolean _queue_item_id: type: integer _queue_status: type: string streams: items: $ref: "#/components/schemas/api.StremioStream" type: array type: object api.SystemCleanupRequest: properties: dry_run: type: boolean health_older_than: type: string queue_older_than: type: string type: object api.SystemCleanupResponse: properties: dry_run: type: boolean health_records_removed: type: integer queue_items_removed: type: integer type: object api.SystemHealthResponse: properties: components: additionalProperties: $ref: "#/components/schemas/api.ComponentHealth" type: object status: description: '"healthy", "degraded", "unhealthy"' type: string timestamp: type: string type: object api.SystemInfoResponse: properties: git_commit: type: string go_version: type: string start_time: type: string uptime: type: string version: type: string type: object api.SystemRestartRequest: properties: force: description: Force restart even if unsafe type: boolean type: object api.SystemRestartResponse: properties: message: type: string timestamp: type: string type: object api.SystemStatsResponse: properties: health: $ref: "#/components/schemas/api.HealthStatsResponse" queue: $ref: "#/components/schemas/api.QueueStatsResponse" system: $ref: "#/components/schemas/api.SystemInfoResponse" type: object api.TestConnectionRequest: properties: name: description: Configured instance name for stored credential recovery. type: string api_version: description: Sonarr only. Empty or auto selects the API automatically. type: string enum: ["", auto, v3, v5] api_key: type: string type: type: string url: type: string type: object api.TestProviderResponse: properties: error_message: type: string rtt_ms: type: integer success: type: boolean type: object api.TrashCustomFormatAPIResponse: properties: category: type: string enabled: type: boolean id: type: string invert: type: boolean is_custom: type: boolean name: type: string pattern: type: string pattern_type: type: string score: type: integer type: object api.UpdateChannel: enum: - latest - dev type: string x-enum-varnames: - UpdateChannelLatest - UpdateChannelDev api.UpdateStatusResponse: properties: binary_update_available: type: boolean channel: $ref: "#/components/schemas/api.UpdateChannel" current_version: type: string docker_available: type: boolean git_commit: type: string latest_version: type: string release_url: type: string update_available: type: boolean type: object api.UserResponse: properties: api_key: type: string avatar_url: type: string email: type: string id: type: string is_admin: type: boolean last_login: type: string name: type: string provider: type: string type: object api.WebDAVAPIResponse: properties: host: type: string password: description: Masked if set type: string port: type: integer user: type: string type: object api.prowlarrIndexersRequest: properties: api_key: type: string host: type: string type: object api.stremioManifest: properties: catalogs: items: {} type: array description: type: string id: type: string idPrefixes: items: type: string type: array name: type: string resources: items: type: string type: array types: items: type: string type: array version: type: string type: object config.APIConfig: properties: allowed_origins: items: type: string type: array key_override: type: string prefix: type: string type: object config.ArrsConfig: properties: enabled: type: boolean lidarr_instances: items: $ref: "#/components/schemas/config.ArrsInstanceConfig" type: array max_workers: type: integer queue_cleanup_enabled: type: boolean queue_cleanup_grace_period_minutes: type: integer queue_cleanup_interval_seconds: type: integer queue_cleanup_max_failures: description: >- QueueCleanupMaxFailures is the per-target failure circuit breaker. After AltMount has acted on the same target (a Radarr movie or Sonarr/Whisparr episode that keeps failing import) this many times — via queue cleanup, health-repair re-searches or the partial-pack reconcile — it gives up: it blocklists without re-searching and unmonitors the item in the *arr so it stops being automatically re-grabbed. 0 (the default) disables the breaker. type: integer queue_cleanup_rules: description: >- QueueCleanupRules matches an *arr status message for a stuck/failed import and decides the action (remove / blocklist / blocklist+search). This is the single message-rule list for queue cleanup; ghost/empty-folder detection runs alongside it in the same pass. Only items owned by AltMount's download client are touched (see issue #523). items: $ref: "#/components/schemas/config.StuckCleanupRule" type: array radarr_instances: items: $ref: "#/components/schemas/config.ArrsInstanceConfig" type: array readarr_instances: items: $ref: "#/components/schemas/config.ArrsInstanceConfig" type: array sonarr_instances: items: $ref: "#/components/schemas/config.ArrsInstanceConfig" type: array sportarr_instances: items: $ref: "#/components/schemas/config.ArrsInstanceConfig" type: array webhook_base_url: type: string whisparr_instances: items: $ref: "#/components/schemas/config.ArrsInstanceConfig" type: array type: object config.ArrsInstanceConfig: properties: api_version: description: Sonarr only. Empty or auto selects the API automatically. type: string enum: ["", auto, v3, v5] api_key: type: string category: type: string enabled: type: boolean name: type: string sync_interval_hours: type: integer url: type: string type: object config.AuthConfig: properties: login_required: type: boolean type: object config.DatabaseConfig: properties: dsn: description: >- DSN is the PostgreSQL connection string (postgres only). Example: "postgres://user:password@localhost:5432/altmount?sslmode=disable" type: string path: description: Path is the SQLite database file path (sqlite only). type: string type: description: 'Type selects the database backend: "sqlite" (default) or "postgres".' type: string type: object config.FailureMaskingConfig: properties: enabled: type: boolean threshold: type: integer type: object config.FuseConfig: properties: allow_other: type: boolean async_buffer_max_total_mb: description: >- AsyncBufferMaxTotalMB caps total read-ahead memory across all open files (MB). Buffers reserve their size only while actively streaming; over the cap, additional streams run unbuffered. 0 = unlimited. type: integer async_buffer_size_mb: description: >- AsyncBufferSizeMB is the per-open-file read-ahead buffer size (MB). A background goroutine fills it ahead of the player so reads are served from memory instead of blocking on the network, mirroring the buffering rclone's VFS provides over WebDAV. 0 disables read-ahead (every read is a direct passthrough — the previous behavior). type: integer attr_timeout_seconds: type: integer backend: description: '"hanwen" or "cgo" (empty = platform default)' type: string debug: type: boolean enabled: type: boolean entry_timeout_seconds: type: integer max_cache_size_mb: type: integer max_read_ahead_mb: type: integer mount_path: type: string no_mod_time: description: >- NoModTime reports epoch for all timestamps (mtime, ctime, atime); prevents media servers re-scanning on unstable VFS mtimes. Note: tools like find -atime will not see meaningful access times on this mount. type: boolean type: object config.HealthConfig: properties: acceptable_missing_segments_percentage: type: number check_all_segments: type: boolean check_batch_size: type: integer check_interval_seconds: type: integer cleanup_orphaned_metadata: type: boolean corrupted_retention_days: description: >- CorruptedRetentionDays bounds how long the corrupted_metadata safety copies created by MoveToCorrupted are kept before the health cycle prunes them. nil or 0 means keep forever, which is what every install did before this setting existed. type: integer corruption_action: description: >- CorruptionAction controls what happens when the health checker or a streaming read confirms real (non-degraded) corruption: "repair" (default) triggers an Arr rescan; "delete" removes the file's metadata/NZB/health record and cleans up now-empty parent directories instead. Degraded files are never affected either way. type: string enabled: type: boolean excluded_categories: description: >- ExcludedCategories lists SABnzbd category names whose files must never be registered for health checking by the library-sync discovery pass. Matching is by the category's configured directory under CompleteDir and is case-insensitive. Empty means no categories are excluded. items: type: string type: array library_dir: type: string library_sync_concurrency: type: integer library_sync_interval_minutes: type: integer max_concurrent_jobs: type: integer max_concurrent_segment_checks: description: >- MaxConcurrentSegmentChecks bounds how many STAT checks a health sweep keeps in flight. STAT is bodyless and pipelines many per connection, so connection count is the wrong unit — the import path already sizes its sweep by STAT pipeline depth (see importer/processor.go). nil or 0 means "adapt": the pool narrows the sweep to one connection's depth while a stream is playing and widens it to the pool's aggregate STAT capacity when idle, which measured 24x the sweep throughput on an idle pool. type: integer max_connections_for_health_checks: description: >- Deprecated: superseded by MaxConcurrentSegmentChecks, which is named for what it actually bounds. Read for one-time migration only (see migrateHealthSweepConcurrency), then cleared. Do not use in new code. type: integer max_retries: type: integer read_timeout_seconds: type: integer repair: $ref: "#/components/schemas/config.RepairConfig" resolve_repair_on_import: type: boolean segment_sample_percentage: description: >- SegmentSamplePercentage is the fraction (1-100) of segments randomly sampled during health-check sweeps (post-import validation only). Distinct from Import.SegmentSamplePercentage, which samples during archive extraction. Higher sampling catches more corruption but adds overhead. Default 5%. type: integer verify_content: description: >- VerifyContent, when true, probes each eligible video/audio file's first bytes through the serving stack during a health check and marks the file corrupted if no recognized media container signature is found. Distinct from the unrelated, unused VerifyData field above. type: boolean verify_content_timeout_seconds: type: integer verify_data: type: boolean type: object config.ImportConfig: properties: allow_nested_rar_extraction: type: boolean allowed_file_extensions: items: type: string type: array expand_bluray_iso: type: boolean failed_item_retention_hours: type: integer filter_sample_files: type: boolean history_retention_days: type: integer import_dir: type: string import_strategy: $ref: "#/components/schemas/config.ImportStrategy" iso_analyze_timeout_seconds: type: integer max_concurrent_imports: description: |- MaxConcurrentImports caps the number of NZB imports that may run end-to-end at the same time. 0 = unlimited. NNTP connection use is balanced automatically: imports share the pool's full capacity and yield to streams (priority lane + adaptive connection budget). type: integer max_download_prefetch: type: integer max_processor_workers: type: integer queue_processing_interval_seconds: type: integer read_timeout_seconds: type: integer rename_to_nzb_name: type: boolean segment_sample_percentage: description: >- SegmentSamplePercentage is the fraction (1-100) of segments randomly sampled during import-phase validation (RAR extraction, archive integrity). Distinct from Health.SegmentSamplePercentage, which samples during post-import health checks. Lower defaults faster imports but skips error detection. Default 1%. type: integer stream_headroom_connections: description: >- StreamHeadroomConnections is how many connections are held back from import per active stream. On a saturated link those connections are slack — they are not converting into bytes — so handing them to playback costs little and measurably shortens stream latency. Past that point the pool can no longer fill the link and import throughput really does fall. Measured at 100 connections behind a 400 MB/s link: 8 is free (import 358 vs 359 MB/s) and takes stream p50 190ms -> 179ms; 32 costs ~13% import and takes p50 to 146ms and p99 245ms -> 167ms. The right value depends on the link rate and pool size, so it is a knob rather than a constant. 0 disables the reservation entirely. A nil pointer means "unset, use the default"; an explicit 0 disables the reservation. A plain int cannot express that difference, since YAML omits and YAML-zero both decode to 0. type: integer verify_content: description: |- VerifyContent, when true, probes each eligible video/audio file's first bytes through the serving stack after import and fails the import if no recognized media container signature is found. type: boolean verify_content_timeout_seconds: type: integer watch_dir: type: string watch_interval_seconds: type: integer type: object config.ImportStrategy: enum: - NONE - SYMLINK - STRM type: string x-enum-varnames: - ImportStrategyNone - ImportStrategySYMLINK - ImportStrategySTRM config.LogConfig: properties: compress: description: Compress old log files type: boolean file: description: Log file path (empty = console only) type: string level: description: Log level (debug, info, warn, error) type: string max_age: description: Max age in days to keep files type: integer max_backups: description: Max number of old files to keep type: integer max_size: description: Max size in MB before rotation type: integer type: object config.MetadataBackupConfig: properties: enabled: type: boolean keep_backups: type: integer path: type: string schedule: description: cron expression (UTC) type: string type: object config.MetadataConfig: properties: backup: $ref: "#/components/schemas/config.MetadataBackupConfig" migration: $ref: "#/components/schemas/config.MetadataMigrationConfig" root_path: type: string type: object config.MetadataMigrationConfig: properties: default_group: description: >- DefaultGroup is the newsgroup written into synthesized NzbStore entries. Legacy metas do not retain the original groups, and nzb.BuildNZB renders an empty element without this, which most NZB clients reject. type: string type: object config.MountType: enum: - none - rclone - fuse - rclone_external type: string x-enum-varnames: - MountTypeNone - MountTypeRClone - MountTypeFuse - MountTypeRCloneExternal config.NetworkConfig: properties: http_proxy: type: string https_proxy: type: string no_proxy: type: string type: object config.NewsnabIndexerConfig: properties: api_key: type: string categories: items: type: integer type: array enabled: type: boolean id: type: string name: type: string timeout_seconds: type: integer url: type: string weight: type: integer type: object config.Par2RepairConfig: properties: arr_first: description: >- ArrFirst makes PAR2 repair the fallback for corrupted files: the health worker triggers the ARR rescan first exactly as before, and enqueues a PAR2 repair only when nothing is found in the ARRs (no instance configured, none tracks the file) or ARR repair is disabled. On by default; disable to keep PAR2 out of the corrupted-file flow (degraded files, playback holes and repair-on-import still repair via PAR2 directly). type: boolean enabled: type: boolean max_concurrent_jobs: description: MaxConcurrentJobs bounds simultaneously running repair jobs. type: integer max_connections: description: >- MaxConnections bounds how many NNTP connections repair jobs use for article fetches (shared across concurrent jobs). Repair streams the whole release once, so this directly sets its download speed on an idle pool. Fetches ride the pool's background lane: while anything streams or imports, the pool holds repair to a quarter of each provider's connections regardless of this value. 0 (default) means 10. type: integer max_memory_mb: description: >- MaxMemoryMB bounds one job's in-heap solver memory; jobs needing more still run, backed by memory-mapped scratch files next to the patch store. type: integer max_patch_store_mb: description: >- MaxPatchStoreMB bounds the on-disk patch store size; oldest patches are evicted first when the cap is exceeded. 0 (default) means unlimited. type: integer max_release_size_mb: type: integer max_repair_ratio: description: >- MaxRepairRatio caps how large a fraction of a file's bytes a repair may reconstruct. The release's PAR2 redundancy is always the hard ceiling. type: number min_release_size_mb: description: >- MinReleaseSizeMB / MaxReleaseSizeMB bound the size of releases repair takes on (content bytes, PAR2 files excluded). A repair downloads the whole release once, so these let users skip releases too large to be worth the bandwidth or too small to bother with. 0 (default) means unbounded on that side — all sizes are repaired. type: integer patch_dir: description: >- PatchDir is where repaired article payloads (and the solver's transient scratch files) are stored. Empty (default) means /patches. Applied at startup; changing it does not move existing patches. type: string repair_on_import: description: >- RepairOnImport queues a repair as soon as an import completes with confirmed missing segments, instead of waiting for the first playback or a health check. Off by default: every repair costs one full release download, so a large damaged backlog would be expensive. Worth enabling when your library outlives article retention — a release's PAR2 volumes are most likely to still be retrievable close to the post date. type: boolean type: object config.ProviderConfig: properties: account_expiration_date: type: string enabled: type: boolean host: type: string id: description: >- ID is a stable public identifier used in pool names, metrics, and errors. It must never contain credentials or non-graphic characters. type: string inflight_requests: description: >- InflightRequests caps concurrent decoded article bodies per connection (memory ceiling). In practice, the pool-wide ImportBudget caps total in-flight bodies to roughly the connection count, so each connection carries ~1 body. Peak observed depth is 3-4 against this cap of 10. Raising it does not improve import throughput. type: integer insecure_tls: type: boolean is_backup_provider: type: boolean keepalive_command: type: string keepalive_interval_seconds: type: integer last_rtt_ms: type: integer last_speed_test_mbps: type: number last_speed_test_time: type: string max_connections: type: integer min_connections_alive: type: integer name: type: string port: type: integer proxy_url: type: string max_article_age_days: description: >- How far back this provider's retention reaches, in days. Articles older than this are fetched from it only after every provider that does reach back that far. 0 means no limit. type: integer quota_bytes: type: integer quota_period_hours: type: integer skip_ping: type: boolean stat_inflight_requests: description: >- StatInflightRequests caps the per-connection STAT pipeline depth (bodyless existence checks). Its pool-wide aggregate (connections × depth, clamped to 4096) determines how much an idle-pool health sweep can widen: measured 24x sweep throughput improvement. While a stream is active the sweep is capped lower regardless. type: integer storage_group: type: string strict_max_article_age: description: >- Makes max_article_age_days binding rather than an ordering preference: the provider is not contacted at all for an article older than its retention. type: boolean stream_inflight_requests: description: >- StreamInflightRequests caps streaming (priority-lane) bodies in flight per connection, so a playback read never queues behind a connection's worth of read-ahead. 0 defaults to 4; values above inflight_requests are capped to it. type: integer tls: type: boolean user_agent: type: string username: type: string type: object config.ProwlarrConfig: properties: api_key: description: APIKey is the Prowlarr API key. type: string categories: description: >- Categories filters search results by Newznab category IDs. Defaults to 5000 (Movies), 5010 (Movies/Foreign), 5030 (TV), 5040 (TV/HD). items: type: integer type: array custom_scores: additionalProperties: type: integer description: >- CustomScores maps keyword/regex patterns to numeric scores (TRaSH guide style). Positive scores promote releases; negative scores demote them. Examples: {"2160p": 500, "REMUX": 300, "DV": -1000} type: object enabled: description: Enabled controls whether Prowlarr search is active for the Stremio addon. type: boolean exclude_keywords: description: >- ExcludeKeywords is an optional list of keywords/patterns; releases containing any are dropped. Examples: ["DV", "DoVi", "CAM", "TS", "TeleSync"] items: type: string type: array host: description: Host is the Prowlarr base URL (e.g. "http://localhost:9696"). type: string indexers: description: >- Indexers optionally restricts searches to specific Prowlarr indexer IDs. Empty = search across all configured indexers. items: type: integer type: array languages: description: >- Languages is an optional list of keywords; releases must contain at least one to pass. Empty = no filtering. Examples: ["Esp", "🇪🇸", "Spanish", "DUAL"] items: type: string type: array preferred_indexer_names: description: PreferredIndexerNames lists Prowlarr indexer names/keywords to prioritize and rank above others. items: type: string type: array preferred_indexers: description: PreferredIndexers lists Prowlarr indexer IDs to prioritize and rank above others. items: type: integer type: array preferred_languages: description: PreferredLanguages lists language keywords to prioritize and rank above others. items: type: string type: array qualities: description: >- Qualities is an optional list of keywords; releases must contain at least one to pass. Empty = no filtering. Examples: ["1080p", "HD", "4K", "3D"] items: type: string type: array type: object config.RCloneConfig: properties: allow_non_empty: type: boolean allow_other: description: Mount-Specific Settings type: boolean async_read: type: boolean attr_timeout: type: string buffer_size: type: string cache_dir: description: VFS Cache Settings type: string dir_cache_time: type: string gid: type: integer links: type: boolean log_level: type: string mount_enabled: description: Mount Configuration type: boolean mount_options: additionalProperties: type: string type: object no_checksum: type: boolean no_mod_time: description: Advanced Settings type: boolean path: description: RClone Path type: string rc_enabled: description: RC (Remote Control) Configuration type: boolean rc_options: additionalProperties: type: string type: object rc_pass: type: string rc_port: type: integer rc_url: type: string rc_user: type: string rcd_restart_after: description: >- RcdRestartAfter is how long the rcd subprocess must stay unresponsive to liveness probes before it is killed and restarted. Empty means the built-in default. Restarting is disruptive, because re-establishing the mount unmounts it out from under every process reading it, so an install whose rcd goes briefly slow under load can raise this to ride the stall out. type: string read_only: type: boolean syslog: type: boolean timeout: type: string transfers: type: integer uid: type: integer umask: type: string use_mmap: type: boolean vfs_cache_max_age: type: string vfs_cache_max_size: type: string vfs_cache_min_free_space: type: string vfs_cache_mode: type: string vfs_cache_poll_interval: type: string vfs_disk_space_total: type: string vfs_fast_fingerprint: type: boolean vfs_name: type: string vfs_read_ahead: type: string vfs_read_chunk_size: type: string vfs_read_chunk_size_limit: type: string vfs_read_chunk_streams: type: integer type: object config.RepairConfig: properties: auto_search_wait_seconds: description: >- AutoSearchWaitSeconds bounds how long a repair waits for the ARR's own automatic redownload search — queued by the ARR the moment a release is blocklisted — to finish before the file record is deleted and AltMount issues its own targeted search. 0 disables the wait and restores the previous fire-and-forget ordering. type: integer enabled: type: boolean exponential_backoff: type: boolean file_delete_confirm_seconds: description: >- FileDeleteConfirmSeconds bounds how long a repair waits for the ARR to report the deleted file record as unlinked before issuing its search. type: integer interval_minutes: type: integer max_cooldown_hours: type: integer max_repair_retries: type: integer type: object config.SABnzbdCategory: properties: dir: type: string name: type: string order: type: integer priority: type: integer type: description: '"sonarr" or "radarr"' type: string type: object config.SABnzbdConfig: properties: categories: items: $ref: "#/components/schemas/config.SABnzbdCategory" type: array complete_dir: type: string download_client_base_url: type: string enabled: type: boolean fallback_api_key: description: Masked in API responses type: string fallback_host: description: Fallback configuration for sending failed imports to external SABnzbd type: string history_retention_minutes: description: >- HistoryRetentionMinutes controls how far back the SABnzbd-emulating history endpoint looks into import_history when *arr clients poll without a specific nzo_id filter. Older entries are still returned when *arr asks for them by nzo_id. Defaults to 10080 (7 days). type: integer type: object config.SegmentCacheConfig: properties: cache_path: type: string enabled: type: boolean expiry_hours: description: >- ExpiryHours controls how long cached segments are kept before automatic eviction. Set to 0 to disable expiry (cache forever, bounded only by MaxSizeGB via LRU eviction). Left unset (nil) it defaults to 24 hours. type: integer max_size_gb: type: integer memory_mb: description: |- MemoryMB bounds the in-memory tier of decoded articles that sits in front of the disk cache and is on even when the disk cache is off. Left unset (nil) it defaults to 256; an explicit 0 disables it. type: integer type: object config.StreamScoringConfig: properties: custom_formats: items: $ref: "#/components/schemas/config.TrashCustomFormatConfig" type: array exclude_keywords: items: type: string type: array exclude_regex: type: string preferred_languages: items: type: string type: array preset: type: string require_preferred_language: type: boolean type: object config.StreamingConfig: properties: failure_masking: $ref: "#/components/schemas/config.FailureMaskingConfig" max_prefetch: type: integer read_timeout_seconds: description: >- ReadTimeoutSeconds bounds a single streaming read (WebDAV Read and FUSE ReadAt alike). Nothing below this layer carries a deadline the caller can observe: a segment fetch that stalls without erroring parks the read indefinitely, and on FUSE that means an uninterruptible D-state for the reading process. On expiry the in-flight reader is interrupted and the read fails, so the caller gets an EIO it can act on. 0 uses the built-in default; a negative value disables the timeout. type: integer type: object config.StremioConfig: properties: addon_description: description: AddonDescription is the description shown in Stremio's addon catalog. type: string addon_name: description: AddonName is the display name shown in Stremio's addon catalog. type: string base_url: description: >- BaseURL is the public base URL used when building Stremio stream links (e.g. "https://altmount.example.com"). Falls back to the auto-detected request origin when not set. type: string direct_stream: description: DirectStream when true streams NZB media segments directly. type: boolean enabled: description: >- Enabled controls whether the endpoint is active. Disabled by default. When false, the endpoint returns 404 Not Found. type: boolean failed_release_ttl_hours: description: >- FailedReleaseTTLHours controls how long a release that failed to import stays excluded from the Stremio stream list. Mirrors NzbTTLHours semantics: it filters failure records by age rather than deleting them, so it is bounded above by Import.FailedItemRetentionHours. Set to 0 to exclude for as long as the record survives. Defaults to 24 hours. type: integer fallback_timeout_ms: description: FallbackTimeoutMs is the timeout before attempting a fallback release. type: integer fast_fail_header_only: description: >- FastFailHeaderOnly when true causes Stremio-originated imports to fail fast immediately on the release-level probe when missing articles are detected, skipping the multi-part RAR per-file Stat sweep. Defaults to true. type: boolean include_library_streams: description: >- IncludeLibraryStreams when true checks and presents matching completed files from your Altmount library as instant 0s stream options in Stremio. Defaults to true. type: boolean indexers: allOf: - $ref: "#/components/schemas/config.StremioIndexersConfig" description: Indexers configures Prowlarr and direct Newsnab search providers. max_fallback_releases: description: >- MaxFallbackReleases caps how many *extra* releases a single play request may try after the first one fails. Set to 0 to disable fallback. Defaults to 2. type: integer max_retries: description: MaxRetries is the maximum number of retry attempts for stream fetching. type: integer nzb_ttl_hours: description: >- NzbTTLHours controls how long a completed NZB result is cached before the same NZB is re-processed on the next request. Set to 0 to disable expiry (cache forever). Defaults to 24 hours. type: integer prowlarr: allOf: - $ref: "#/components/schemas/config.ProwlarrConfig" description: Prowlarr configures the legacy Prowlarr indexer settings (retained for compatibility). scoring: allOf: - $ref: "#/components/schemas/config.StreamScoringConfig" description: Scoring configures TRaSH format scoring and exclusions. show_cached_indicator: description: ShowCachedIndicator when true shows cached badges in stream titles. type: boolean stream_ttl_seconds: description: StreamTTLSeconds is the stream cache expiration time in seconds. type: integer type: object config.StremioIndexersConfig: properties: custom_user_agent: type: string newsnab: items: $ref: "#/components/schemas/config.NewsnabIndexerConfig" type: array provider: description: '"prowlarr", "newsnab", "both"' type: string prowlarr: $ref: "#/components/schemas/config.ProwlarrConfig" user_agent_mode: type: string type: object config.StuckCleanupRule: properties: action: type: string enabled: type: boolean message: type: string type: object config.TrashCustomFormatConfig: properties: category: type: string enabled: type: boolean id: type: string invert: type: boolean is_custom: type: boolean name: type: string pattern: type: string pattern_type: type: string score: type: integer type: object config.WebDAVConfig: properties: host: type: string password: type: string port: type: integer user: type: string type: object database.HealthPriority: enum: - 0 - 1 - 2 type: integer x-enum-varnames: - HealthPriorityNormal - HealthPriorityHigh - HealthPriorityNext database.HealthStatus: enum: - pending - checking - healthy - repair_triggered - corrupted - degraded type: string x-enum-comments: HealthStatusChecking: File is currently being checked HealthStatusCorrupted: File has missing segments or is corrupted HealthStatusDegraded: "Missing segments only hit media payload: still playable, no repair" HealthStatusHealthy: File passed health check HealthStatusPending: File has not been checked yet HealthStatusRepairTriggered: File repair has been triggered in Arrs x-enum-descriptions: - File has not been checked yet - File is currently being checked - File passed health check - File repair has been triggered in Arrs - File has missing segments or is corrupted - "Missing segments only hit media payload: still playable, no repair" x-enum-varnames: - HealthStatusPending - HealthStatusChecking - HealthStatusHealthy - HealthStatusRepairTriggered - HealthStatusCorrupted - HealthStatusDegraded database.QueuePriority: enum: - 1 - 2 - 3 type: integer x-enum-varnames: - QueuePriorityHigh - QueuePriorityNormal - QueuePriorityLow database.QueueStatus: enum: - pending - processing - completed - failed - paused - fallback - waiting_repair type: string x-enum-comments: QueueStatusFallback: Sent to external SABnzbd as fallback x-enum-descriptions: - "" - "" - "" - "" - "" - Sent to external SABnzbd as fallback - "" x-enum-varnames: - QueueStatusPending - QueueStatusProcessing - QueueStatusCompleted - QueueStatusFailed - QueueStatusPaused - QueueStatusFallback - QueueStatusWaitingRepair