{"openapi":"3.1.0","info":{"title":"GetTorrent API","description":"The API behind the GetTorrent and GetStow sites: your downloads, files, streaming links, automation rules and account.\n\n**Authentication.** Send your personal key from *Account → API key* as `X-API-Key: <key>`; it acts as you (never as an administrator). Browser and app sessions use a bearer token instead. Operations marked with no security need neither.\n\n**Limits.** 120 requests a minute per API key, and a per-address limit at the edge; over a limit the answer is `429` with `Retry-After` (seconds).\n\n**Errors** follow RFC 9457 (`application/problem+json`).","license":{"name":"Proprietary"},"version":"v1"},"servers":[{"url":"https://api.dev.gettorrent.cloud"}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"tags":[{"name":"analytics","description":"Browser analytics beacons."},{"name":"billing","description":"Subscription, payment history, cancellation."},{"name":"health","description":"Liveness and build metadata."},{"name":"admin","description":"Administrative endpoints — admin realm role required."},{"name":"automation","description":"RSS watch, completion reactions and retention rules."},{"name":"metadata","description":"Catalogue metadata (posters, titles) for torrents."},{"name":"plans","description":"Public list of purchasable plan tiers."},{"name":"accounts","description":"Account lookup, profile update, API key, and password change."},{"name":"Wishlist","description":"Downloads put aside until the plan has room for them"},{"name":"support","description":"Contact the support team."},{"name":"streaming","description":"Per-torrent access checks consumed by gettorrent-v2-streamer."},{"name":"admin","description":"Administration"},{"name":"categories","description":"Download categories: the taxonomy and the owner's choice per torrent."},{"name":"torrents","description":"List, add, inspect, and delete user-owned torrents."},{"name":"works","description":"Identified works and their cards: description, poster, trailer."},{"name":"uploads","description":"Uploads of the owner's own files (tus, through the files service)."},{"name":"tv","description":"TV / QR device login — create, poll, approve, exchange."},{"name":"watch","description":"Playback positions behind continue watching."}],"paths":{"/api/v1/watch/progress":{"get":{"tags":["watch"],"summary":"Playback positions of every file of a torrent","operationId":"forTorrent","parameters":[{"name":"torrent_id","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProgressListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"put":{"tags":["watch"],"summary":"Save the playback position of one file","operationId":"save","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveProgressRequest"}}},"required":true},"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/watch/preferences":{"get":{"tags":["watch"],"summary":"The player choices that follow the account: audio language, subtitle choice","operationId":"preferences","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PreferencesResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"put":{"tags":["watch"],"summary":"Remember a choice made in the player; an absent field stays as it is","operationId":"savePreferences","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PreferencesResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/work/poster":{"put":{"tags":["works"],"summary":"Choose this download's poster among the offered pictures","description":"The picture is this download's only: others who have the same title keep theirs. 409 when the name was not offered for this work (ask for the choices again).","operationId":"choosePoster","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PosterChoiceRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/tags":{"put":{"tags":["torrents"],"summary":"Replace the tag list of a torrent","description":"Full-document PUT. Tags are trimmed, de-duplicated case-insensitively, max 20 per torrent, 32 chars each.","operationId":"setTags","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTagsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/metadata":{"get":{"tags":["metadata"],"summary":"Resolved metadata of a torrent","operationId":"get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetadataSummary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"put":{"tags":["metadata"],"summary":"Pick the catalogue entry for a torrent (manual override)","operationId":"override","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetadataSummary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"delete":{"tags":["metadata"],"summary":"Declare the torrent has no catalogue entry (hides the poster)","operationId":"miss","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetadataSummary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/category":{"get":{"tags":["categories"],"summary":"The torrent's category","description":"Null category = without category; pending while the classifier works.","operationId":"get_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"put":{"tags":["categories"],"summary":"Set the torrent's category","description":"The owner's choice is final: the automatic classifier never changes it afterwards.","operationId":"set","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/balance/settings":{"put":{"tags":["Billing"],"summary":"Switch renewing the plan from the balance on or off","operationId":"settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BalanceResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/autopay":{"get":{"tags":["Billing"],"summary":"Autopay state and saved cards","operationId":"status","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AutopayResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"put":{"tags":["Billing"],"summary":"Switch autopay on (with a saved card) or off","operationId":"update","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutopayUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AutopayResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/settings":{"get":{"tags":["accounts"],"summary":"Get the current account's self-service settings","description":"The download-complete email toggle (default ON) and the 18+ visibility (shown by default).","operationId":"getSettings","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AccountSettingsResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"put":{"tags":["accounts"],"summary":"Update the current account's self-service settings","description":"Persists the preferences and returns the updated settings; absent optional fields stay as they are.","operationId":"updateSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettingsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AccountSettingsResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/wishlist":{"get":{"tags":["Wishlist"],"summary":"List the wishlist","description":"Oldest first, with the known size of all items together.","operationId":"list","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WishlistResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"post":{"tags":["Wishlist"],"summary":"Put a download in the wishlist","description":"torrent_id moves a library download stopped for the plan's space (it leaves the library and frees its space); source + value keeps a magnet or URL refused at add time. The same torrent twice keeps one item. 409 wishlist_full past 100 items.","operationId":"addFile","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}},"application/json":{"schema":{"$ref":"#/components/schemas/AddToWishlistRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Item"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/wishlist/{id}/start":{"post":{"tags":["Wishlist"],"summary":"Add a wishlist item to the library","description":"Like any add: 403 plan_limit_exceeded keeps the item; 422 torrent_already_exists (the library has it) removes it.","operationId":"start","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/uploads/token":{"post":{"tags":["uploads"],"summary":"Where to upload a file, and a token for it","description":"The tus endpoint of the files service and a token to send as 'Authorization: Bearer' with every tus request. 404 when uploads are not configured.","operationId":"token","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UploadTokenResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/tv/sessions":{"post":{"tags":["tv"],"summary":"Create a pending TV-login session","description":"Public. Returns the session_id (held by the TV), a short user_code, the scan path for the QR, and the TTL in seconds.","operationId":"createSession","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreateTvSessionResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/tv/sessions/{session_id}/approve":{"post":{"tags":["tv"],"summary":"Approve a TV-login session (phone, by session_id)","description":"Authenticated. Binds the current user + mints the single-use exchange_code (revealed to the TV via poll, never returned here).","operationId":"approveBySessionId","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TvApproveResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/tv/exchange":{"post":{"tags":["tv"],"summary":"Exchange the approved code for tokens","description":"Public. Validates the single-use code and mints a real Keycloak access+refresh token pair for the bound user. Marks the session consumed.","operationId":"exchange","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TvExchangeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TvExchangeResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/tv/approve":{"post":{"tags":["tv"],"summary":"Approve a TV-login session (phone, by user_code)","description":"Authenticated. Manual-entry alternative to scanning the QR.","operationId":"approveByCode","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TvApproveByCodeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TvApproveResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents":{"get":{"tags":["torrents"],"summary":"List the user's torrents","description":"Cursor pagination; newest first.","operationId":"list_1","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ListTorrentsResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"post":{"tags":["torrents"],"summary":"Add a torrent from magnet or URL","description":"Validates the source, parses the info_hash and persists a queued row; with Kafka the download reaches the torrent client asynchronously (torrent.enqueue.requested), without it inline.","operationId":"createFromUpload","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}},"application/json":{"schema":{"$ref":"#/components/schemas/CreateTorrentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/retry":{"post":{"tags":["torrents"],"summary":"Retry an errored torrent","description":"Re-enqueues the stored magnet/URL and puts the torrent back to queued. 409 when the torrent is not errored or cannot be retried (moderation stop).","operationId":"retry","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/resume":{"post":{"tags":["torrents"],"summary":"Resume a paused torrent","operationId":"resume","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/pause":{"post":{"tags":["torrents"],"summary":"Pause a queued or downloading torrent","description":"Keeps the concurrency slot. 409 when the torrent is not pausable.","operationId":"pause","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/metadata/requeue":{"post":{"tags":["metadata"],"summary":"Re-run the automatic lookup","operationId":"requeue","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetadataSummary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/files/move":{"post":{"tags":["torrents"],"summary":"Rename or move a file or folder inside a completed torrent","description":"The target folder must already exist: creating folders was removed (2026-11-27).","operationId":"moveFile","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Move"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentFileResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/download-zip":{"post":{"tags":["torrents"],"summary":"Download selected files of a torrent as one ZIP","description":"Returns 202 with a ticket that is ready at once: download_url streams the archive as it is written (no build step). 409 when a selected file is not on disk.","operationId":"requestZip","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateZipRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ZipTicketResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/download-zip":{"post":{"tags":["torrents"],"summary":"Download several downloads as one ZIP","description":"Each torrent becomes a folder of the archive. Returns 202 with a ticket that is ready at once; download_url streams the archive as it is written. 404 if any torrent is not the caller's, 403 if any is blocked, 409 if any has not finished downloading or its files are not on disk.","operationId":"requestMultiZip","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMultiZipRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ZipTicketResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/bulk":{"post":{"tags":["torrents"],"summary":"Delete, pause, resume or retry many torrents at once","description":"One result per id, in request order. The torrent client calls are queued, so the answer does not wait for them; a download that cannot take the action says why.","operationId":"bulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BulkActionResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/support/tickets":{"get":{"tags":["support"],"summary":"My tickets, newest activity first","operationId":"mine","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TicketListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"post":{"tags":["support"],"summary":"Open a ticket","description":"429 after 5 per hour.","operationId":"openMultipart","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"subject","in":"query","required":true,"schema":{"type":"string"}},{"name":"message","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}}}},"application/json":{"schema":{"$ref":"#/components/schemas/OpenTicketRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TicketDetailResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/support/tickets/{ticketId}/reopen":{"post":{"tags":["support"],"summary":"Re-open my closed ticket","operationId":"reopen","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TicketDetailResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/support/tickets/{ticketId}/messages":{"post":{"tags":["support"],"summary":"Reply to my ticket (re-opens it when closed)","operationId":"replyMultipart","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"message","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}}}},"application/json":{"schema":{"$ref":"#/components/schemas/ReplyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TicketDetailResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/support/tickets/{ticketId}/close":{"post":{"tags":["support"],"summary":"Close my ticket","operationId":"close","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TicketDetailResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/support/contact":{"post":{"tags":["support"],"summary":"Anonymous contact form (public)","description":"No auth; 3 messages per 10 minutes per IP. Obvious spam is accepted (202) and discarded; suspects are flagged for the support team.","operationId":"contact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRequest"}}},"required":true},"responses":{"200":{"description":"OK"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/public/signup-email-check":{"post":{"tags":["accounts"],"summary":"May a new account use this email address","description":"Public. {allowed: false, reason: \"disposable\"} for a disposable-mail domain.","operationId":"check","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CheckResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/public/password-reset":{"post":{"tags":["accounts"],"summary":"Mail a password-reset link","description":"Public. Always 202, whether or not the address has an account.","operationId":"request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}},"required":true},"responses":{"200":{"description":"OK"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/public/password-reset/confirm":{"post":{"tags":["accounts"],"summary":"Set a new password with a reset link","description":"Public. Spends the link, sets the password, signs every device out. Returns the account's email so the web app can sign the person in.","operationId":"confirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConfirmResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/public/password-reset/check":{"post":{"tags":["accounts"],"summary":"Is this reset link still usable","description":"Public. 204 when it is; 404 when it is unknown, expired or already used. Spends nothing.","operationId":"check_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"}}},"required":true},"responses":{"200":{"description":"OK"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/public/mail/unsubscribe/{token}":{"get":{"tags":["mail"],"summary":"Whose unsubscribe link this is and whether the address already opted out","operationId":"state","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UnsubscribeState"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]},"post":{"tags":["mail"],"summary":"Stop announcement mail for the address of this link","description":"Idempotent.","operationId":"unsubscribe","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UnsubscribeState"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/public/link-email/confirm":{"post":{"tags":["accounts"],"summary":"Link the e-mail and set a password","description":"Public. Spends the link; the account stops being anonymous and every device is signed out. Returns the address so the web app can sign the person in.","operationId":"confirm_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LinkResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/public/link-email/check":{"post":{"tags":["accounts"],"summary":"Is this e-mail link still usable","description":"Public. 200 with the address it confirms; 404 when unknown, expired or used.","operationId":"check_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LinkResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/billing/resume":{"post":{"tags":["billing"],"summary":"Undo a scheduled cancellation","description":"Clears cancel_at on the active subscription; the plan keeps renewing.","operationId":"resume_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SubscriptionResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/referral/claim":{"post":{"tags":["billing"],"summary":"Claim an invite code","description":"A new account names the code it came with. 204 when claimed; 409 with a reason (unknown_code, own_code, already_claimed, not_new) otherwise.","operationId":"claim","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/plan-change":{"get":{"tags":["Billing"],"summary":"What choosing another plan means right now","description":"kind: same | new (full-price checkout) | upgrade (the price difference for the days left, charged now; the plan starts at once) | downgrade (starts at the period end) | to_free (the paid plan runs to the period end). Nothing is written.","operationId":"previewPlanChange","parameters":[{"name":"plan_id","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"period","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanChangePreviewResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"post":{"tags":["Billing"],"summary":"Change the plan","description":"Upgrade inside a paid period: the prorated difference is charged to the saved card (status applied | declined | error | in_flight) or, without a card or with hosted=true, paid on the hosted page (status checkout). Downgrade and the free tier: status scheduled, the paid plan stays until the period end. 409 when the amount is no longer expected_amount_cents.","operationId":"changePlan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChangeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanChangeResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"delete":{"tags":["Billing"],"summary":"Withdraw a scheduled downgrade or a scheduled move to the free tier","operationId":"withdrawPlanChange","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SubscriptionResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/crypto/payments":{"post":{"tags":["Billing"],"summary":"Pay a plan in crypto: a one-time address for an exact amount","description":"The API decides the kind: new (no paid period running: full price, the period starts at the payment), extend (same plan, paid period running: full price, one more period after it), upgrade (a more expensive plan: the prorated difference, the plan switches at once). An open invoice for the same choice is returned instead of a new one. 409 when the amount is no longer expected_amount_cents; 422 for a cheaper plan inside a paid period or a pair not on offer; 503 when the gateway is off or down. 200 (not 201) = the open payment for the same plan, period, coin and network handed back.","operationId":"start_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CryptoPaymentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/checkout":{"post":{"tags":["Billing"],"summary":"Start a card checkout for a plan (hosted payment page)","operationId":"checkout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/cancel":{"post":{"tags":["billing"],"summary":"Cancel the subscription at the end of the paid period","description":"The plan stays until the paid period ends and the saved card is not charged again; then the account moves to the free tier.","operationId":"cancel","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRequest"}}}},"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/balance/topups":{"post":{"tags":["Billing"],"summary":"Top up the balance by card or crypto (a plain top-up, or the rest of a plan)","description":"Card: the hosted payment form for the amount (checkout). Crypto: an invoice; whatever arrives is credited (stablecoins one to one, other coins at the invoice's rate). With plan_id the balance pays what it holds and this is the rest; the plan is bought once the money is in. 409 when the price changed (expected_amount_cents) or the balance would go above the cap; 422 below the minimum, or a plan that cannot be bought; 503 crypto off or down.","operationId":"topup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TopupResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/balance/pay":{"post":{"tags":["Billing"],"summary":"Pay a plan from the balance","description":"A new plan (the personal offer applies), one more period of the running plan, or the prorated difference of a dearer plan. No payment page: the plan changes at once. 409 when the price is no longer expected_amount_cents or the balance holds less than the price; 422 for a cheaper plan inside a paid period or the free tier.","operationId":"pay","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PayResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/automation/rules":{"get":{"tags":["automation"],"summary":"List my automation rules","operationId":"list_2","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RuleListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"post":{"tags":["automation"],"summary":"Create a rule","operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RuleResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/automation/rules/{id}/run":{"post":{"tags":["automation"],"summary":"Run a feed or retention rule now","operationId":"run","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RunResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/sessions/revoke-all":{"post":{"tags":["accounts"],"summary":"Revoke every active SSO session for the current account","description":"Calls Keycloak admin /users/{id}/logout. Idempotent — 204 even if no sessions existed.","operationId":"revokeAllSessions","responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/password/change":{"post":{"tags":["accounts"],"summary":"Change the current account's password","description":"Verifies current_password via ROPC then resets via Keycloak admin API.","operationId":"changePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/link-email":{"post":{"tags":["accounts"],"summary":"Mail a link that ties a real e-mail to this anonymous account","description":"202 when the mail went out. The account stays anonymous until the link is followed.","operationId":"request_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkRequest"}}},"required":true},"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/file-access/passwords":{"post":{"tags":["accounts"],"summary":"Create an app password for one device","description":"The cleartext is in this response only. 400 for an empty or too long label, 409 when the account already has the maximum number of passwords.","operationId":"create_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Created"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/api-key/rotate":{"post":{"tags":["accounts"],"summary":"Rotate the current account's API key","description":"Revokes any existing live key and returns the new cleartext ONCE.","operationId":"rotateApiKey","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Rotated"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/automation/rules/{id}":{"get":{"tags":["automation"],"summary":"One rule","operationId":"get_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RuleResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"delete":{"tags":["automation"],"summary":"Delete a rule","operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"patch":{"tags":["automation"],"summary":"Update name, enabled flag or config","operationId":"update_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RuleResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me":{"get":{"tags":["accounts"],"summary":"Get the currently authenticated account","description":"JIT-creates the account row from the JWT 'sub' claim on first call.","operationId":"me","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"patch":{"tags":["accounts"],"summary":"Update the current account's profile","description":"Partial update — null fields are left untouched.","operationId":"update_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/watch/continue":{"get":{"tags":["watch"],"summary":"Last played file of each torrent, newest first","operationId":"continueWatching","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":12}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProgressListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/tv/sessions/{session_id}":{"get":{"tags":["tv"],"summary":"Poll a TV-login session","description":"Public. Reveals the one-time exchange_code ONLY when status=approved.","operationId":"pollSession","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TvSessionStatusResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/torrents/{id}":{"get":{"tags":["torrents"],"summary":"Get a single torrent","description":"404 when the torrent is missing or belongs to another account. State and progress_pct come from the row the status poller keeps current; live bytes and speed are on /{id}/progress and the event stream.","operationId":"get_3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"delete":{"tags":["torrents"],"summary":"Soft-delete a torrent","description":"Sets soft_deleted_at and best-effort cancels the aria2 job. Idempotent.","operationId":"delete_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/work":{"get":{"tags":["works"],"summary":"The work the torrent was identified as, with its card","operationId":"work","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WorkResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/work/posters":{"get":{"tags":["works"],"summary":"Pictures the owner may choose the work's poster from","description":"Stored copies (paths on this API), the current poster first. Takes a few seconds: the pictures are found and copied now.","operationId":"posterChoices","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PosterChoices"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/state":{"get":{"tags":["torrents"],"summary":"Live state stream (Server-Sent Events)","description":"event: progress, data: JSON progress sample. Snapshot first, then live samples; ':hb' comment every 15 s. Reconnect with EventSource.","operationId":"state_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/progress":{"get":{"tags":["torrents"],"summary":"Live progress snapshot","description":"Backed by aria2.tellStatus, cached 2 s. Use for polling-based UIs.","operationId":"progress","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentProgressResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/files":{"get":{"tags":["torrents"],"summary":"List the torrent's files","description":"Walks the on-disk dir when completed, falls back to aria2's metadata otherwise.","operationId":"files","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentFileResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"delete":{"tags":["torrents"],"summary":"Delete a file or folder inside a completed torrent","description":"Folders need recursive=true unless empty. The torrent itself is deleted via DELETE /{id}.","operationId":"deleteFile","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}},{"name":"recursive","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentFileResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/files/download":{"get":{"tags":["torrents"],"summary":"Download one file","description":"Streams one file of a completed torrent. Honours Range, so an interrupted download can resume.","operationId":"downloadFile","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/{id}/files/download-link":{"get":{"tags":["torrents"],"summary":"A signed link to download one file directly","description":"The file is served by the files service on the node that holds it (Range, resume), not through the API. 404 when the files service is not configured: use /files/download.","operationId":"downloadLink","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DownloadLinkResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/zip-tickets/{ticketId}":{"get":{"tags":["torrents"],"summary":"Get the state of a ZIP ticket","description":"Returns the ticket lifecycle (ready for every new ticket) and expires_at.","operationId":"zipTicketStatus","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ZipTicketResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/zip-tickets/{ticketId}/download":{"get":{"tags":["torrents"],"summary":"Stream the ZIP as it is written","description":"The API's own writer, used when the files service cannot serve the archive. Works until the ticket expires; 404 for an unknown or expired ticket, 409 when a file has gone since the ticket was made.","operationId":"downloadZip","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/usage":{"get":{"tags":["torrents"],"summary":"Storage / concurrency usage against the effective plan","description":"Feeds the client quota widget and the upgrade call-to-action.","operationId":"usage","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TorrentUsageResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/tags":{"get":{"tags":["torrents"],"summary":"Distinct tags over the user's torrents with usage counts","operationId":"tags","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TagListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/torrents/events":{"get":{"tags":["torrents"],"summary":"Live state of every torrent of the account (Server-Sent Events)","description":"One connection for the whole library: a progress event per active torrent first, then every sample of any of the account's torrents (about every 2 s while the stream is open). ':hb' comment every 15 s. Reconnect with EventSource.","operationId":"events","responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/support/tickets/{ticketId}":{"get":{"tags":["support"],"summary":"One of my tickets with its public conversation","operationId":"get_4","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TicketDetailResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/support/tickets/{ticketId}/messages/{messageId}/attachments/{attachmentId}":{"get":{"tags":["support"],"summary":"Download a file attached to a message of my ticket","operationId":"attachment","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"messageId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/stream/{torrent_id}/can-play":{"get":{"tags":["streaming"],"summary":"Access check for the streamer","description":"Returns the info_hash + relative media path when the caller owns the torrent and it is in a streamable state. With `file`, selects one file of the torrent instead of its largest video.","operationId":"canPlay","parameters":[{"name":"torrent_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"file","in":"query","required":false,"schema":{"type":"string"}},{"name":"peek","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CanPlayResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/public/work-images/{name}":{"get":{"tags":["works"],"summary":"A stored poster","description":"Immutable: a new picture gets a new name.","operationId":"image","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/plans":{"get":{"tags":["plans"],"summary":"List active plans","description":"All non-archived tiers in display order.","operationId":"list_3","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlanListResponse"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/metadata/search":{"get":{"tags":["metadata"],"summary":"Search a catalogue for the correction modal","operationId":"search","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/health":{"get":{"tags":["health"],"summary":"Service health and build identity","description":"Returns 200 with service name, version, and build identifier.","operationId":"health","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[]}},"/api/v1/categories":{"get":{"tags":["categories"],"summary":"The download taxonomy","description":"Main categories with their subcategory keys.","operationId":"taxonomy","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TaxonomyResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/subscription":{"get":{"tags":["billing"],"summary":"Current subscription","description":"The user's current plan + renewal/cancellation state. Returns has_plan=false when the user has no plan.","operationId":"subscription","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SubscriptionResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/referral":{"get":{"tags":["billing"],"summary":"Invite a friend","description":"The account's own invite code and link path (/r/<code>), the days each side gets, how many accounts came with the code and how many of them paid.","operationId":"referral","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReferralResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/payments":{"get":{"tags":["billing"],"summary":"Payment history","description":"Every charge v2 made or tried for the account's plan, newest first. A checkout the owner abandoned on the payment page is not listed.","operationId":"listPayments","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Page"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/offers":{"get":{"tags":["billing"],"summary":"Personal offers","description":"Prices this account gets for the first payment of a new plan until valid_until: percent_off of any plan (plan_code and period null), or price_cents for one plan and period. The checkout applies the best one by itself. Empty inside a paid period (no offer applies there).","operationId":"offers","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OffersResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/crypto/payments/{id}":{"get":{"tags":["Billing"],"summary":"A crypto payment of the caller (what the payment page polls)","operationId":"get_5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CryptoPaymentResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/crypto/options":{"get":{"tags":["Billing"],"summary":"Coins and networks a plan can be paid with right now","description":"Only pairs that are configured and available on the gateway. Empty when crypto is off or the gateway is down.","operationId":"options","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OptionsResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/balance":{"get":{"tags":["Billing"],"summary":"The account's internal balance and whether it covers the next renewal","operationId":"get_6","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BalanceResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/balance/topups/{orderReference}":{"get":{"tags":["Billing"],"summary":"Where a top-up of the caller stands (after the card payment page)","operationId":"topupStatus","parameters":[{"name":"orderReference","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TopupStatusResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/balance/ledger":{"get":{"tags":["Billing"],"summary":"The balance's journal, newest first","description":"kind: comma-separated filter (topup, purchase, refund, overpayment, bonus, referral, admin, chargeback, expiry).","operationId":"ledger","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LedgerPage"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/file-access":{"get":{"tags":["accounts"],"summary":"How to reach the account's files over FTPS and WebDAV, and its app passwords","description":"Read-only access to completed downloads. The user name is the account's e-mail; the password is one of the app passwords (never the account password). 404 when file access is not offered.","operationId":"get_7","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FileAccessResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/api-key":{"get":{"tags":["accounts"],"summary":"Get the current account's API key metadata","description":"Never returns the cleartext key — only the 4-char hint + timestamps.","operationId":"getApiKey","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"delete":{"tags":["accounts"],"summary":"Revoke the current account's API key","description":"Idempotent — 204 whether or not a live key existed.","operationId":"revokeApiKey","responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/wishlist/{id}":{"delete":{"tags":["Wishlist"],"summary":"Remove an item from the wishlist","operationId":"remove","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/billing/autopay/instruments/{id}":{"delete":{"tags":["Billing"],"summary":"Forget a saved card","operationId":"removeInstrument","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/v1/accounts/me/file-access/passwords/{id}":{"delete":{"tags":["accounts"],"summary":"Revoke an app password","description":"The device that used it is signed out within a few minutes. 404 for an unknown id.","operationId":"revoke","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}}},"components":{"schemas":{"SaveProgressRequest":{"type":"object","properties":{"torrent_id":{"type":"integer","format":"int64","exclusiveMinimum":0},"file":{"type":"string","maxLength":4096,"minLength":0},"position_seconds":{"type":"integer","format":"int32","minimum":0},"duration_seconds":{"type":"integer","format":"int32","minimum":0}}},"PreferencesRequest":{"type":"object","properties":{"audio_lang":{"type":"string","maxLength":16,"minLength":0},"subtitle_lang":{"type":"string","maxLength":16,"minLength":0}}},"PreferencesResponse":{"type":"object","properties":{"audio_lang":{"type":"string"},"subtitle_lang":{"type":"string"}}},"PosterChoiceRequest":{"type":"object","properties":{"name":{"type":"string"}}},"Trailer":{"type":"object","properties":{"provider":{"type":"string"},"id":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"}}},"WorkResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"category":{"type":"string"},"subcategory":{"type":"string"},"title":{"type":"string"},"original_title":{"type":"string"},"year":{"type":"integer","format":"int32"},"card_state":{"type":"string"},"description":{"type":"string"},"description_short":{"type":"string"},"description_lang":{"type":"string"},"poster_path":{"type":"string"},"poster_path_large":{"type":"string"},"trailer":{"$ref":"#/components/schemas/Trailer"}}},"SetTagsRequest":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string","maxLength":64,"minLength":0},"maxItems":50,"minItems":0}},"required":["tags"]},"MetadataSummary":{"type":"object","properties":{"status":{"type":"string"},"kind":{"type":"string"},"source":{"type":"string"},"source_id":{"type":"string"},"title":{"type":"string"},"original_title":{"type":"string"},"year":{"type":"integer","format":"int32"},"overview":{"type":"string"},"poster_url":{"type":"string"},"poster_url_large":{"type":"string"},"backdrop_url":{"type":"string"},"rating":{"type":"number","format":"double"},"manual":{"type":"boolean"},"resolved_at":{"type":"string","format":"date-time"},"genre_ids":{"type":"array","items":{"type":"integer","format":"int32"}},"origin_countries":{"type":"array","items":{"type":"string"}},"original_language":{"type":"string"}}},"TorrentResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"account_id":{"type":"integer","format":"int64"},"info_hash":{"type":"string"},"name":{"type":"string"},"total_bytes":{"type":"integer","format":"int64"},"source":{"type":"string"},"state":{"type":"string"},"node_assignment":{"type":"string"},"added_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"error_message":{"type":"string"},"progress_pct":{"type":"integer","format":"int32"},"downloaded_bytes":{"type":"integer","format":"int64"},"download_speed_bps":{"type":"integer","format":"int64"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"$ref":"#/components/schemas/MetadataSummary"},"retry_count":{"type":"integer","format":"int32"},"next_retry_at":{"type":"string","format":"date-time"},"sample":{"type":"boolean"},"category":{"type":"string"},"subcategory":{"type":"string"},"category_source":{"type":"string"},"category_pending":{"type":"boolean"},"work":{"$ref":"#/components/schemas/WorkSummary"},"restoring":{"type":"boolean"},"playback_file":{"type":"string"}}},"WorkSummary":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"title":{"type":"string"},"year":{"type":"integer","format":"int32"},"description_short":{"type":"string"},"description_lang":{"type":"string"},"poster_path":{"type":"string"},"card_state":{"type":"string"}}},"OverrideRequest":{"type":"object","properties":{"source":{"type":"string","maxLength":32,"minLength":0},"source_id":{"type":"string","maxLength":128,"minLength":0},"kind":{"type":"string","maxLength":16,"minLength":0}},"required":["kind","source","source_id"]},"CategoryRequest":{"type":"object","properties":{"category":{"type":"string","maxLength":32,"minLength":0},"subcategory":{"type":"string","maxLength":32,"minLength":0}}},"CategoryResponse":{"type":"object","properties":{"torrent_id":{"type":"integer","format":"int64"},"category":{"type":"string"},"subcategory":{"type":"string"},"category_source":{"type":"string"},"category_pending":{"type":"boolean"}}},"SettingsRequest":{"type":"object","properties":{"renew_from_balance":{"type":"boolean"}},"required":["renew_from_balance"]},"BalanceResponse":{"type":"object","properties":{"balance_cents":{"type":"integer","format":"int64"},"paid_cents":{"type":"integer","format":"int64"},"bonus_cents":{"type":"integer","format":"int64"},"currency":{"type":"string"},"cap_cents":{"type":"integer","format":"int64"},"room_cents":{"type":"integer","format":"int64"},"min_topup_cents":{"type":"integer","format":"int64"},"renew_from_balance":{"type":"boolean"},"renewal":{"$ref":"#/components/schemas/RenewalResponse"}}},"RenewalResponse":{"type":"object","properties":{"plan_code":{"type":"string"},"plan_name":{"type":"string"},"period":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"period_end":{"type":"string"},"charge_at":{"type":"string"},"covered":{"type":"boolean"},"shortfall_cents":{"type":"integer","format":"int64"},"warn":{"type":"boolean"}}},"AutopayUpdateRequest":{"type":"object","properties":{"enabled":{"type":"boolean"},"instrument_id":{"type":"integer","format":"int64"}},"required":["enabled"]},"AutopayResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"instrument_id":{"type":"integer","format":"int64"},"card_masked":{"type":"string"},"card_type":{"type":"string"},"failed_attempts":{"type":"integer","format":"int32"},"next_attempt_at":{"type":"string"},"last_error":{"type":"string"},"last_charged_at":{"type":"string"},"provider":{"type":"string"},"instruments":{"type":"array","items":{"$ref":"#/components/schemas/InstrumentResponse"}}}},"InstrumentResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"provider":{"type":"string"},"card_masked":{"type":"string"},"card_type":{"type":"string"},"created_at":{"type":"string"}}},"AdminAssignPlanRequest":{"type":"object","properties":{"plan_code":{"type":"string","maxLength":64,"minLength":0},"ends_at":{"type":"string","format":"date-time"}},"required":["plan_code"]},"AdminUserPlanResponse":{"type":"object","properties":{"plan_code":{"type":"string"},"plan_name":{"type":"string"},"status":{"type":"string"},"source":{"type":"string"},"trial":{"type":"boolean"},"current_period_end":{"type":"string","format":"date-time"},"cancel_at":{"type":"string","format":"date-time"}}},"PlanUpsertRequest":{"type":"object","properties":{"code":{"type":"string","maxLength":64,"minLength":0},"display_name":{"type":"string","maxLength":128,"minLength":0},"monthly_price_cents":{"type":"integer","format":"int32","minimum":0},"annual_price_cents":{"type":"integer","format":"int32"},"max_concurrent_downloads":{"type":"integer","format":"int32","minimum":-1},"max_storage_gb":{"type":"integer","format":"int32","minimum":0},"seed_ratio_limit":{"type":"number","format":"double","maximum":100.0,"minimum":0.0},"seed_time_hours":{"type":"integer","format":"int32","minimum":0},"is_archived":{"type":"boolean"},"sort_order":{"type":"integer","format":"int32","minimum":0},"max_video_height":{"type":"integer","format":"int32","maximum":4320,"minimum":0},"api_requests_per_minute":{"type":"integer","format":"int32","minimum":-1},"file_access_sessions":{"type":"integer","format":"int32","minimum":-1},"rss_feeds":{"type":"integer","format":"int32","minimum":-1},"zip_download":{"type":"boolean"},"quarterly_price_cents":{"type":"integer","format":"int32","minimum":0},"download_limit_kbps":{"type":"integer","format":"int32","minimum":0},"bandwidth_priority":{"type":"integer","format":"int32","maximum":1,"minimum":-1}},"required":["code","display_name"]},"PlanResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"display_name":{"type":"string"},"monthly_price_cents":{"type":"integer","format":"int32"},"annual_price_cents":{"type":"integer","format":"int32"},"max_concurrent_downloads":{"type":"integer","format":"int32"},"max_storage_gb":{"type":"integer","format":"int32"},"seed_ratio_limit":{"type":"number","format":"double"},"seed_time_hours":{"type":"integer","format":"int32"},"is_archived":{"type":"boolean"},"quarterly_price_cents":{"type":"integer","format":"int32"},"max_video_height":{"type":"integer","format":"int32"},"api_requests_per_minute":{"type":"integer","format":"int32"},"file_access_sessions":{"type":"integer","format":"int32"},"rss_feeds":{"type":"integer","format":"int32"},"zip_download":{"type":"boolean"},"download_limit_kbps":{"type":"integer","format":"int32"},"bandwidth_priority":{"type":"integer","format":"int32"}}},"AccountSettingsRequest":{"type":"object","properties":{"notify_download_complete":{"type":"boolean"},"hide_adult":{"type":"boolean"},"adult_hint_dismissed":{"type":"boolean"},"notify_offers":{"type":"boolean"}},"required":["notify_download_complete"]},"AccountSettingsResponse":{"type":"object","properties":{"notify_download_complete":{"type":"boolean"},"hide_adult":{"type":"boolean"},"adult_hint_dismissed":{"type":"boolean"},"notify_offers":{"type":"boolean"}}},"Item":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"total_bytes":{"type":"integer","format":"int64"},"added_at":{"type":"string","format":"date-time"}}},"AddToWishlistRequest":{"type":"object","properties":{"torrent_id":{"type":"integer","format":"int64"},"source":{"type":"string","pattern":"magnet|url"},"value":{"type":"string","maxLength":8192,"minLength":0}}},"UploadTokenResponse":{"type":"object","properties":{"endpoint":{"type":"string"},"token":{"type":"string"},"expires_at":{"type":"integer","format":"int64"}}},"CreateTvSessionResponse":{"type":"object","properties":{"session_id":{"type":"string"},"user_code":{"type":"string"},"scan_path":{"type":"string"},"expires_in":{"type":"integer","format":"int64"}}},"TvApproveResponse":{"type":"object","properties":{"status":{"type":"string"}}},"TvExchangeRequest":{"type":"object","properties":{"session_id":{"type":"string","minLength":1},"exchange_code":{"type":"string","minLength":1}},"required":["exchange_code","session_id"]},"TvExchangeResponse":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_at":{"type":"string","format":"date-time"}}},"TvApproveByCodeRequest":{"type":"object","properties":{"user_code":{"type":"string","minLength":1}},"required":["user_code"]},"CreateTorrentRequest":{"type":"object","properties":{"source":{"type":"string","minLength":1,"pattern":"magnet|url"},"value":{"type":"string","minLength":1}},"required":["source","value"]},"Move":{"type":"object","properties":{"path":{"type":"string","maxLength":1024,"minLength":0},"new_path":{"type":"string","maxLength":1024,"minLength":0}},"required":["new_path","path"]},"File":{"type":"object","properties":{"path":{"type":"string"},"size_bytes":{"type":"integer","format":"int64"},"mime_type":{"type":"string"},"is_video":{"type":"boolean"},"can_play":{"type":"boolean"},"download_url":{"type":"string"}}},"TorrentFileResponse":{"type":"object","properties":{"metadata_pending":{"type":"boolean"},"source":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"folders":{"type":"array","items":{"type":"string"}}}},"CreateZipRequest":{"type":"object","properties":{"file_paths":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["file_paths"]},"ZipTicketResponse":{"type":"object","properties":{"ticket_id":{"type":"string"},"state":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"download_url":{"type":"string"},"status_url":{"type":"string"},"error_message":{"type":"string"}}},"CreateMultiZipRequest":{"type":"object","properties":{"torrent_ids":{"type":"array","items":{"type":"integer","format":"int64"},"maxItems":100,"minItems":0}},"required":["torrent_ids"]},"BulkActionRequest":{"type":"object","properties":{"action":{"type":"string","pattern":"delete|pause|resume|retry"},"ids":{"type":"array","items":{"type":"integer","format":"int64"},"maxItems":500,"minItems":1}},"required":["action","ids"]},"BulkActionResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/Item"}}}},"AttachmentResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"filename":{"type":"string"},"size":{"type":"integer","format":"int64"},"content_type":{"type":"string"}}},"MessageResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"author":{"type":"string"},"author_name":{"type":"string"},"body":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"TicketDetailResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"number":{"type":"string"},"category":{"type":"string"},"subject":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"awaiting_customer":{"type":"boolean"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageResponse"}}}},"OpenTicketRequest":{"type":"object","properties":{"category":{"type":"string","pattern":"general|billing|download|streaming|account|abuse"},"subject":{"type":"string","maxLength":200,"minLength":0},"message":{"type":"string","maxLength":10000,"minLength":0}},"required":["message","subject"]},"ReplyRequest":{"type":"object","properties":{"message":{"type":"string","maxLength":10000,"minLength":0}},"required":["message"]},"ContactRequest":{"type":"object","properties":{"email":{"type":"string","format":"email","maxLength":254,"minLength":0},"category":{"type":"string","pattern":"general|billing|download|streaming|account|abuse"},"subject":{"type":"string","maxLength":200,"minLength":0},"message":{"type":"string","maxLength":10000,"minLength":0},"website":{"type":"string","maxLength":200,"minLength":0}},"required":["email","message","subject"]},"CheckRequest":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"minLength":0}},"required":["email"]},"CheckResponse":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":"string"}}},"ResetRequest":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"minLength":0},"locale":{"type":"string","maxLength":35,"minLength":0}},"required":["email"]},"ConfirmRequest":{"type":"object","properties":{"token":{"type":"string","maxLength":128,"minLength":0},"new_password":{"type":"string","maxLength":256,"minLength":8}},"required":["new_password","token"]},"ConfirmResponse":{"type":"object","properties":{"email":{"type":"string"}}},"UnsubscribeState":{"type":"object","properties":{"email":{"type":"string"},"unsubscribed":{"type":"boolean"}}},"LinkResponse":{"type":"object","properties":{"email":{"type":"string"}}},"SubscriptionResponse":{"type":"object","properties":{"has_plan":{"type":"boolean"},"plan":{"$ref":"#/components/schemas/PlanResponse"},"next_renewal_at":{"type":"string"},"period":{"type":"string"},"cancel_at":{"type":"string"},"status":{"type":"string"},"source":{"type":"string"},"trial":{"type":"boolean"},"ends_at":{"type":"string"},"scheduled_plan":{"$ref":"#/components/schemas/PlanResponse"},"days_left":{"type":"integer","format":"int32"},"grace_until":{"type":"string"}}},"ClaimRequest":{"type":"object","properties":{"code":{"type":"string"}}},"PlanChangeRequest":{"type":"object","properties":{"plan_id":{"type":"integer","format":"int64"},"period":{"type":"string","pattern":"monthly|quarterly|annual"},"expected_amount_cents":{"type":"integer","format":"int64"},"hosted":{"type":"boolean"},"return_url":{"type":"string"},"language":{"type":"string"},"use_balance":{"type":"boolean"}},"required":["plan_id"]},"CheckoutResponse":{"type":"object","properties":{"checkout_id":{"type":"integer","format":"int64"},"order_reference":{"type":"string"},"provider":{"type":"string"},"action":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"PlanChangeResponse":{"type":"object","properties":{"kind":{"type":"string"},"status":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"currency":{"type":"string"},"reason":{"type":"string"},"subscription":{"$ref":"#/components/schemas/SubscriptionResponse"},"checkout":{"$ref":"#/components/schemas/CheckoutResponse"}}},"StartRequest":{"type":"object","properties":{"plan_id":{"type":"integer","format":"int64"},"period":{"type":"string","pattern":"monthly|quarterly|annual"},"coin":{"type":"string","minLength":1},"network":{"type":"string","minLength":1},"expected_amount_cents":{"type":"integer","format":"int64"}},"required":["coin","network","period","plan_id"]},"CryptoPaymentResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"status":{"type":"string"},"kind":{"type":"string"},"plan_code":{"type":"string"},"plan_name":{"type":"string"},"period":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"currency":{"type":"string"},"coin":{"type":"string"},"network":{"type":"string"},"address":{"type":"string"},"amount":{"type":"string"},"amount_received":{"type":"string"},"amount_remaining":{"type":"string"},"memo":{"type":"string"},"payment_uri":{"type":"string"},"rate":{"type":"string"},"expires_at":{"type":"string"},"paid_until":{"type":"string"},"tx_explorer_url":{"type":"string"},"created_at":{"type":"string"},"settled_at":{"type":"string"},"credited_cents":{"type":"integer","format":"int64"}}},"CheckoutRequest":{"type":"object","properties":{"plan_id":{"type":"integer","format":"int64"},"period":{"type":"string","pattern":"monthly|quarterly|annual"},"return_url":{"type":"string"},"language":{"type":"string"}},"required":["plan_id"]},"CancelRequest":{"type":"object","properties":{"reason":{"type":"string"}}},"TopupRequest":{"type":"object","properties":{"amount_cents":{"type":"integer","format":"int64"},"method":{"type":"string","pattern":"card|crypto"},"coin":{"type":"string"},"network":{"type":"string"},"plan_id":{"type":"integer","format":"int64"},"period":{"type":"string","pattern":"monthly|quarterly|annual"},"expected_amount_cents":{"type":"integer","format":"int64"},"return_url":{"type":"string"},"language":{"type":"string"}},"required":["method"]},"TopupResponse":{"type":"object","properties":{"method":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"from_balance_cents":{"type":"integer","format":"int64"},"plan_code":{"type":"string"},"order_reference":{"type":"string"},"checkout":{"$ref":"#/components/schemas/CheckoutResponse"},"crypto_payment":{"$ref":"#/components/schemas/CryptoPaymentResponse"}}},"PayRequest":{"type":"object","properties":{"plan_id":{"type":"integer","format":"int64"},"period":{"type":"string","pattern":"monthly|quarterly|annual"},"expected_amount_cents":{"type":"integer","format":"int64"}},"required":["plan_id"]},"PayResponse":{"type":"object","properties":{"status":{"type":"string"},"kind":{"type":"string"},"plan_code":{"type":"string"},"period":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"order_reference":{"type":"string"},"subscription":{"$ref":"#/components/schemas/SubscriptionResponse"},"balance":{"$ref":"#/components/schemas/BalanceResponse"}}},"CreateRuleRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":80,"minLength":0},"trigger":{"type":"string","minLength":1,"pattern":"rss|completed|retention"},"config":{"$ref":"#/components/schemas/JsonNode"}},"required":["name","trigger"]},"JsonNode":{},"RuleResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"trigger":{"type":"string"},"enabled":{"type":"boolean"},"config":{"$ref":"#/components/schemas/JsonNode"},"run_count":{"type":"integer","format":"int32"},"last_run_at":{"type":"string","format":"date-time"},"last_result":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}},"RunResponse":{"type":"object","properties":{"result":{"type":"string"}}},"AdminUserResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"keycloak_user_id":{"type":"string","format":"uuid"},"email":{"type":"string"},"display_name":{"type":"string"},"locale":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"status":{"type":"string"},"suspended_at":{"type":"string","format":"date-time"},"suspended_reason":{"type":"string"},"total_torrents":{"type":"integer","format":"int64"},"last_seen_at":{"type":"string","format":"date-time"},"storage_used_bytes":{"type":"integer","format":"int64"},"storage_limit_bytes":{"type":"integer","format":"int64"}}},"AdminSuspendRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":500,"minLength":0}},"required":["reason"]},"AdminRoleRequest":{"type":"object","properties":{"role":{"type":"string","minLength":1},"roleRecognised":{"type":"boolean"}},"required":["role"]},"AdminImpersonateResponse":{"type":"object","properties":{"access_token":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"target_user_id":{"type":"integer","format":"int64"}}},"AdjustRequest":{"type":"object","properties":{"direction":{"type":"string","pattern":"credit|debit"},"amount_cents":{"type":"integer","format":"int64","exclusiveMinimum":0},"funds":{"type":"string","pattern":"paid|bonus"},"reason":{"type":"string","maxLength":500,"minLength":0}},"required":["amount_cents","direction","funds","reason"]},"TotalsResponse":{"type":"object","properties":{"balance_cents":{"type":"integer","format":"int64"},"paid_cents":{"type":"integer","format":"int64"},"bonus_cents":{"type":"integer","format":"int64"},"renew_from_balance":{"type":"boolean"},"ledger_matches":{"type":"boolean"},"cap_cents":{"type":"integer","format":"int64"}}},"MoveRequest":{"type":"object","properties":{"torrent_id":{"type":"integer","format":"int64"},"info_hash":{"type":"string"},"target_node":{"type":"string"}}},"MigrationResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"info_hash":{"type":"string"},"torrent_name":{"type":"string"},"src_node":{"type":"string"},"dst_node":{"type":"string"},"requested_dst":{"type":"string"},"state":{"type":"string"},"attempts":{"type":"integer","format":"int32"},"bytes_total":{"type":"integer","format":"int64"},"bytes_done":{"type":"integer","format":"int64"},"last_error":{"type":"string"},"drain":{"type":"boolean"},"cancellable":{"type":"boolean"},"retryable":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"finished_at":{"type":"string","format":"date-time"}}},"DrainRequest":{"type":"object","properties":{"source_node":{"type":"string","minLength":1},"target_node":{"type":"string"}},"required":["source_node"]},"DrainResponse":{"type":"object","properties":{"enqueued":{"type":"integer","format":"int32"},"skipped_in_flight":{"type":"integer","format":"int32"},"skipped_busy":{"type":"integer","format":"int32"}}},"AdminSoftDeleteNodeRequest":{"type":"object","properties":{"migrations":{"$ref":"#/components/schemas/Migrations"}},"required":["migrations"]},"Migrations":{"type":"object","properties":{"target_node_id":{"type":"integer","format":"int64","exclusiveMinimum":0}}},"AdminNodeResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"hostname":{"type":"string"},"ip_address":{"type":"string"},"capacity_gb":{"type":"integer","format":"int64"},"used_gb":{"type":"integer","format":"int64"},"status":{"type":"string"},"max_fill_percent":{"type":"integer","format":"int32"},"tier":{"type":"string"},"fill_percent":{"type":"integer","format":"int32"},"migrations_status":{"type":"string"},"migrations_target_node_id":{"type":"integer","format":"int64"},"migrations_processed":{"type":"integer","format":"int32"},"migrations_total":{"type":"integer","format":"int32"},"migrations_last_error":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"soft_deleted_at":{"type":"string","format":"date-time"}}},"MoveResponse":{"type":"object","properties":{"moved":{"type":"integer","format":"int32"},"target_node":{"type":"string"}}},"NodeRecoveryResponse":{"type":"object","properties":{"node":{"type":"string"},"state":{"type":"string"},"has_client":{"type":"boolean"},"live_rows":{"type":"integer","format":"int32"},"missing_jobs":{"type":"integer","format":"int32"},"missing_data":{"type":"integer","format":"int32"},"missing_bytes":{"type":"integer","format":"int64"},"lost_uploads":{"type":"integer","format":"int32"},"restoring_rows":{"type":"integer","format":"int32"},"storage_empty":{"type":"boolean"},"detail":{"type":"string"},"checked_at":{"type":"string","format":"date-time"},"detected_at":{"type":"string","format":"date-time"},"confirmed_at":{"type":"string","format":"date-time"},"confirmed_by":{"type":"string"}}},"ReviewRequest":{"type":"object","properties":{"reviewed":{"type":"boolean"}}},"Check":{"type":"object","properties":{"status":{"type":"string"},"reason":{"type":"string"},"source":{"type":"string"},"at":{"type":"string","format":"date-time"}}},"ModerationVerdictSummary":{"type":"object","properties":{"torrent_id":{"type":"integer","format":"int64"},"status":{"type":"string"},"reason":{"type":"string"},"source":{"type":"string"},"checked_at":{"type":"string","format":"date-time"},"reacted_at":{"type":"string","format":"date-time"},"reviewed":{"type":"boolean"},"reviewed_by":{"type":"integer","format":"int64"},"reviewed_at":{"type":"string","format":"date-time"},"account_id":{"type":"integer","format":"int64"},"info_hash":{"type":"string"},"torrent_name":{"type":"string"},"words":{"$ref":"#/components/schemas/Check"},"frames":{"$ref":"#/components/schemas/Check"}}},"ReasonRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":500,"minLength":0}}},"BlockState":{"type":"object","properties":{"account_id":{"type":"integer","format":"int64"},"email":{"type":"string"},"blocked_at":{"type":"string","format":"date-time"},"blocked_reason":{"type":"string"},"blocked":{"type":"boolean"}}},"JobRunResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"job_key":{"type":"string"},"status":{"type":"string"},"triggered_by":{"type":"string"},"started_at":{"type":"string","format":"date-time"},"finished_at":{"type":"string","format":"date-time"},"result":{"type":"string"},"error_message":{"type":"string"}}},"ChangePasswordRequest":{"type":"object","properties":{"current_password":{"type":"string","minLength":1},"new_password":{"type":"string","maxLength":256,"minLength":8}},"required":["current_password","new_password"]},"LinkRequest":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"minLength":0},"locale":{"type":"string","maxLength":35,"minLength":0}},"required":["email"]},"CreateRequest":{"type":"object","properties":{"label":{"type":"string"}}},"Created":{"type":"object","properties":{"password":{"type":"string"},"entry":{"$ref":"#/components/schemas/Password"}}},"Password":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"label":{"type":"string"},"hint":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":"string","format":"date-time"}}},"Rotated":{"type":"object","properties":{"key":{"type":"string"},"hint":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}},"UpdateRuleRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":80,"minLength":0},"enabled":{"type":"boolean"},"config":{"$ref":"#/components/schemas/JsonNode"}}},"AdminNodeSettingsRequest":{"type":"object","properties":{"max_fill_percent":{"type":"integer","format":"int32","maximum":100,"minimum":1},"tier":{"type":"string","pattern":"fast|slow"}}},"UpdateAccountRequest":{"type":"object","properties":{"display_name":{"type":"string","maxLength":100,"minLength":0},"locale":{"type":"string","pattern":"en|ru|uk|de|es|pt|zh|hi"},"locale_from_browser":{"type":"boolean"}}},"AccountResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"email":{"type":"string"},"display_name":{"type":"string"},"locale":{"type":"string"},"locale_chosen":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"api_key_present":{"type":"boolean"},"roles":{"type":"array","items":{"type":"string"}},"anonymous":{"type":"boolean"}}},"WishlistResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"total_bytes":{"type":"integer","format":"int64"}}},"ProgressListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProgressResponse"}}}},"ProgressResponse":{"type":"object","properties":{"torrent_id":{"type":"integer","format":"int64"},"file":{"type":"string"},"position_seconds":{"type":"integer","format":"int32"},"duration_seconds":{"type":"integer","format":"int32"},"finished":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}}},"TvSessionStatusResponse":{"type":"object","properties":{"status":{"type":"string"},"exchange_code":{"type":"string"}}},"ListTorrentsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TorrentResponse"}},"next_cursor":{"type":"string"},"files_kept_days":{"type":"integer","format":"int32"}}},"PosterChoice":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"}}},"PosterChoices":{"type":"object","properties":{"posters":{"type":"array","items":{"$ref":"#/components/schemas/PosterChoice"}}}},"SseEmitter":{"type":"object","properties":{"timeout":{"type":"integer","format":"int64"}}},"TorrentProgressResponse":{"type":"object","properties":{"state":{"type":"string"},"progress_pct":{"type":"integer","format":"int32"},"downloaded_bytes":{"type":"integer","format":"int64"},"total_bytes":{"type":"integer","format":"int64"},"download_speed_bps":{"type":"integer","format":"int64"},"upload_speed_bps":{"type":"integer","format":"int64"},"eta_seconds":{"type":"integer","format":"int64"},"connected_peers":{"type":"integer","format":"int32"},"seeding":{"type":"boolean"},"uploaded_bytes":{"type":"integer","format":"int64"},"ratio":{"type":"number","format":"double"}}},"DownloadLinkResponse":{"type":"object","properties":{"url":{"type":"string"},"expires_at":{"type":"integer","format":"int64"}}},"TorrentUsageResponse":{"type":"object","properties":{"plan_code":{"type":"string"},"plan_display_name":{"type":"string"},"subscription_status":{"type":"string"},"trial":{"type":"boolean"},"current_period_end":{"type":"string","format":"date-time"},"cancel_at":{"type":"string","format":"date-time"},"storage_used_bytes":{"type":"integer","format":"int64"},"storage_limit_bytes":{"type":"integer","format":"int64"},"active_downloads":{"type":"integer","format":"int64"},"max_concurrent_downloads":{"type":"integer","format":"int32"},"total_torrents":{"type":"integer","format":"int64"}}},"TagItem":{"type":"object","properties":{"tag":{"type":"string"},"count":{"type":"integer","format":"int64"}}},"TagListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TagItem"}}}},"TicketListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TicketResponse"}}}},"TicketResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"number":{"type":"string"},"category":{"type":"string"},"subject":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"awaiting_customer":{"type":"boolean"}}},"CanPlayResponse":{"type":"object","properties":{"info_hash":{"type":"string"},"media_path_relative":{"type":"string"},"state":{"type":"string"},"max_video_height":{"type":"integer","format":"int32"}}},"PlanListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PlanResponse"}}}},"MetadataCandidate":{"type":"object","properties":{"source":{"type":"string"},"source_id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"original_title":{"type":"string"},"year":{"type":"integer","format":"int32"},"overview":{"type":"string"},"poster_url":{"type":"string"},"rating":{"type":"number","format":"double"},"genre_ids":{"type":"array","items":{"type":"integer","format":"int32"}},"origin_countries":{"type":"array","items":{"type":"string"}},"original_language":{"type":"string"},"adult":{"type":"boolean"}}},"SearchResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MetadataCandidate"}}}},"Entry":{"type":"object","properties":{"key":{"type":"string"},"subcategories":{"type":"array","items":{"type":"string"}}}},"TaxonomyResponse":{"type":"object","properties":{"categories":{"type":"array","items":{"$ref":"#/components/schemas/Entry"}}}},"ReferralResponse":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"days":{"type":"integer","format":"int32"},"invited":{"type":"integer","format":"int64"},"rewarded":{"type":"integer","format":"int64"}}},"PlanChangePreviewResponse":{"type":"object","properties":{"kind":{"type":"string"},"current_plan":{"$ref":"#/components/schemas/PlanResponse"},"target_plan":{"$ref":"#/components/schemas/PlanResponse"},"period":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"currency":{"type":"string"},"remaining_days":{"type":"integer","format":"int32"},"period_days":{"type":"integer","format":"int32"},"effective_at":{"type":"string"},"current_period_end":{"type":"string"},"card_masked":{"type":"string"},"autopay_enabled":{"type":"boolean"}}},"Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentResponse"}},"next_cursor":{"type":"string"}}},"PaymentResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"kind":{"type":"string"},"status":{"type":"string"},"plan_code":{"type":"string"},"plan_name":{"type":"string"},"period":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"currency":{"type":"string"},"card_masked":{"type":"string"},"reference":{"type":"string"},"created_at":{"type":"string"},"settled_at":{"type":"string"},"method":{"type":"string"},"coin":{"type":"string"},"network":{"type":"string"},"crypto_amount":{"type":"string"},"tx_explorer_url":{"type":"string"},"balance_after_cents":{"type":"integer","format":"int64"}}},"OfferResponse":{"type":"object","properties":{"kind":{"type":"string"},"plan_code":{"type":"string"},"period":{"type":"string"},"percent_off":{"type":"integer","format":"int32"},"price_cents":{"type":"integer","format":"int32"},"valid_until":{"type":"string","format":"date-time"}}},"OffersResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OfferResponse"}}}},"OptionResponse":{"type":"object","properties":{"coin":{"type":"string"},"networks":{"type":"array","items":{"type":"string"}}}},"OptionsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OptionResponse"}}}},"TopupStatusResponse":{"type":"object","properties":{"order_reference":{"type":"string"},"method":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"credited_cents":{"type":"integer","format":"int64"},"plan_code":{"type":"string"},"intent_outcome":{"type":"string"},"balance":{"$ref":"#/components/schemas/BalanceResponse"}}},"LedgerEntryResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"kind":{"type":"string"},"funds":{"type":"string"},"amount_cents":{"type":"integer","format":"int64"},"balance_after_cents":{"type":"integer","format":"int64"},"reference":{"type":"string"},"plan_code":{"type":"string"},"period":{"type":"string"},"purchase_kind":{"type":"string"},"method":{"type":"string"},"coin":{"type":"string"},"network":{"type":"string"},"created_at":{"type":"string"}}},"LedgerPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LedgerEntryResponse"}},"next_cursor":{"type":"string"}}},"RuleListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RuleResponse"}}}},"AdminListUsersResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AdminUserResponse"}},"next_cursor":{"type":"string"}}},"AdminUserDetailResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"keycloak_user_id":{"type":"string","format":"uuid"},"email":{"type":"string"},"display_name":{"type":"string"},"locale":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"status":{"type":"string"},"suspended_at":{"type":"string","format":"date-time"},"suspended_reason":{"type":"string"},"total_torrents":{"type":"integer","format":"int64"},"last_seen_at":{"type":"string","format":"date-time"},"storage_used_bytes":{"type":"integer","format":"int64"},"storage_limit_bytes":{"type":"integer","format":"int64"},"roles":{"type":"array","items":{"type":"string"}},"plan":{"$ref":"#/components/schemas/AdminUserPlanResponse"},"recent_torrents":{"type":"array","items":{"$ref":"#/components/schemas/RecentTorrent"}}}},"RecentTorrent":{"type":"object","properties":{"info_hash":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"}}},"AdminUserTorrentsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RecentTorrent"}}}},"TargetResponse":{"type":"object","properties":{"node":{"type":"string"},"current":{"type":"boolean"},"free_gb":{"type":"integer","format":"int64"},"total_gb":{"type":"integer","format":"int64"},"fill_percent":{"type":"integer","format":"int32"},"max_fill_percent":{"type":"integer","format":"int32"},"eligible":{"type":"boolean"},"reason":{"type":"string"}}},"AdminStatsResponse":{"type":"object","properties":{"total_users":{"type":"integer","format":"int64"},"active_users":{"type":"integer","format":"int64"},"suspended_users":{"type":"integer","format":"int64"},"total_torrents":{"type":"integer","format":"int64"},"torrents_queued":{"type":"integer","format":"int64"},"torrents_downloading":{"type":"integer","format":"int64"},"torrents_completed":{"type":"integer","format":"int64"},"torrents_errored":{"type":"integer","format":"int64"},"torrents_removed":{"type":"integer","format":"int64"},"total_nodes":{"type":"integer","format":"int64"},"nodes_active":{"type":"integer","format":"int64"},"nodes_maintenance":{"type":"integer","format":"int64"},"nodes_soft_deleted":{"type":"integer","format":"int64"},"total_payments":{"type":"integer","format":"int64"},"paid_payments":{"type":"integer","format":"int64"},"total_plans":{"type":"integer","format":"int64"},"active_plans":{"type":"integer","format":"int64"}}},"AdminMigrationsStatusResponse":{"type":"object","properties":{"state":{"type":"string"},"processed":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int32"},"last_processed_at":{"type":"string","format":"date-time"},"error":{"type":"string"}}},"BlockedListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ModerationVerdictSummary"}},"unreviewed_count":{"type":"integer","format":"int64"}}},"EventItem":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"account_id":{"type":"integer","format":"int64"},"torrent_id":{"type":"integer","format":"int64"},"info_hash":{"type":"string"},"torrent_name":{"type":"string"},"action":{"type":"string"},"reason":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}},"EventsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EventItem"}}}},"BlockedAccountsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BlockState"}}}},"AdminMigrationResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"status":{"type":"string"},"processed":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int32"},"target_node_id":{"type":"integer","format":"int64"},"last_error":{"type":"string"},"started_at":{"type":"string","format":"date-time"},"finished_at":{"type":"string","format":"date-time"}}},"JobItem":{"type":"object","properties":{"key":{"type":"string"},"description":{"type":"string"},"destructive":{"type":"boolean"},"last_run":{"$ref":"#/components/schemas/JobRunResponse"}}},"JobListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/JobItem"}}}},"JobRunListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/JobRunResponse"}}}},"Regression":{"type":"object","properties":{"total":{"type":"integer","format":"int32"},"agree_now":{"type":"integer","format":"int32"},"need_model":{"type":"integer","format":"int32"},"agreed_before":{"type":"integer","format":"int32"},"cases":{"type":"array","items":{"$ref":"#/components/schemas/Replayed"}}}},"Replayed":{"type":"object","properties":{"torrent_id":{"type":"integer","format":"int64"},"name":{"type":"string"},"chosen":{"type":"string"},"pipeline_said":{"type":"string"},"now":{"type":"string"},"step":{"type":"string"},"agrees":{"type":"boolean"}}},"FileAccessResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"username":{"type":"string"},"ftp":{"$ref":"#/components/schemas/Ftp"},"webdav":{"$ref":"#/components/schemas/WebDav"},"max_passwords":{"type":"integer","format":"int32"},"passwords":{"type":"array","items":{"$ref":"#/components/schemas/Password"}},"plan_allows":{"type":"boolean"},"max_connections":{"type":"integer","format":"int32"},"required_plan_code":{"type":"string"}}},"Ftp":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","format":"int32"},"encryption":{"type":"string"}}},"WebDav":{"type":"object","properties":{"url":{"type":"string"}}},"ApiKeyResponse":{"type":"object","properties":{"present":{"type":"boolean"},"hint":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":"string","format":"date-time"}}}},"responses":{"Unauthorized":{"description":"No valid token or API key.","content":{"application/problem+json":{"schema":{"properties":{"type":{},"title":{},"status":{"type":"integer","format":"int32"},"detail":{}}}}}},"TooManyRequests":{"description":"Rate limit reached; retry after the given number of seconds.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer","format":"int32"}}},"content":{"application/problem+json":{"schema":{"properties":{"type":{},"title":{},"status":{"type":"integer","format":"int32"},"detail":{}}}}}}},"securitySchemes":{"bearerAuth":{"type":"http","description":"Access token of a signed-in session.","scheme":"bearer","bearerFormat":"JWT"},"apiKeyAuth":{"type":"apiKey","description":"Personal API key from Account -> API key. Same scope as the user's own session (never admin). 120 requests/minute per key.","name":"X-API-Key","in":"header"}}}}