Stream live changes
Server-sent events. The first event is a snapshot of the torrents, transfer status, categories and tags; the rest are changes to it. When the server drops a slow client the stream ends, and reconnecting starts again from a snapshot.
/eventsAuthorizationBearer token · headerrequiredAn API key, pm_....
piecemeal_sessionAPI key · cookierequiredOK
objectdataCategoriesEventrequiredShow propertiesHide properties
itemsCategory[] | nullrequiredShow propertiesHide properties
CategoryinactiveSeedingTimeLimitinteger<int64>requiredMinutes. -2 follows the global setting, -1 is unlimited.
incompletePathstringrequiredWith incompletePathMode on: where the category's incomplete torrents are kept.
incompletePathModestringrequiredThe category's incomplete folder: default follows the global setting, off keeps its torrents in their save path, on uses incompletePath.
defaultoffonnamestringrequiredratioLimitnumber<double>required-2 follows the global setting, -1 is unlimited.
savePathstringrequiredWhere torrents in this category are saved. Empty uses the default save path, or for automatically managed torrents a folder named after the category in it.
seedGoalActionstringrequiredWhat happens when a torrent reaches its seeding goals; default follows the global setting.
defaultstopremoveremoveWithDataseedGoalModestringrequiredWhether any goal or all of them must be met; default follows the global setting.
defaultanyallseedingTimeLimitinteger<int64>requiredMinutes. -2 follows the global setting, -1 is unlimited.
eventstringrequiredThe event name.
idinteger | stringThe event ID.
Show propertiesHide properties
integerstringretryintegerThe retry time in milliseconds.
dataSettingsEventrequiredShow propertiesHide properties
lockedobjectrequiredSettings set by environment variables, which can't be changed here, mapped to the variable.
proxyPasswordSetbooleanrequiredWhether a proxy password is stored. The password itself is never returned.
settingsSettingsrequiredShow propertiesHide properties
addStoppedbooleanrequiredAdd new torrents stopped.
altDownloadLimitinteger<int64>requiredAlternative download limit, used while altSpeedEnabled is on.
altSpeedEnabledbooleanrequiredUse the alternative limits.
altSpeedSchedulebooleanrequiredTurn the alternative limits on and off on a schedule.
altSpeedScheduleDaysstringrequiredThe days the schedule applies, by the day it starts.
everyDayweekdaysweekendsmondaytuesdaywednesdaythursdayfridaysaturdaysundayaltSpeedScheduleFromstringrequiredWhen the alternative limits start, HH:MM local time.
altSpeedScheduleTostringrequiredWhen they end, HH:MM local time; earlier than the start means the next day.
altUploadLimitinteger<int64>requiredAlternative upload limit, used while altSpeedEnabled is on.
autoManagementbooleanrequiredNew torrents use automatic management, unless the request says otherwise: their save path and incomplete folder follow their category.
bannedIPsstringrequiredPeers to refuse: IP addresses or CIDR ranges, one per line.
defaultSavePathstringrequiredWhere torrents are saved when neither the request nor its category names a path.
dhtbooleanrequiredUse the DHT to find peers.
dontCountSlowTorrentsbooleanrequiredSlow torrents don't count toward the limits.
downloadLimitinteger<int64>requiredGlobal download limit in bytes per second, 0 for unlimited.
encryptionstringrequiredPeer connection encryption: prefer, require or disable.
preferrequiredisableinactiveSeedingTimeLimitinteger<int64>requiredStop seeding after this many minutes without upload, -1 for unlimited.
incompletePathstringrequiredWhere incomplete torrents are kept while incompletePathEnabled is on.
incompletePathEnabledbooleanrequiredKeep incomplete torrents in incompletePath; each moves to its save path once complete. A category or a torrent can choose otherwise.
ipFilterEnabledbooleanrequiredRefuse peers in the ranges of the IP filter file.
ipFilterPathstringrequiredAn IP filter file: eMule .dat, PeerGuardian .p2p, or one IP address or CIDR range per line.
maxActiveCheckingTorrentsinteger<int64>requiredTorrents whose data is checked at once; the rest wait, queued for checking.
maxActiveDownloadsinteger<int64>requiredTorrents downloading at once, -1 for unlimited.
maxActiveTorrentsinteger<int64>requiredTorrents running at once, -1 for unlimited.
maxActiveUploadsinteger<int64>requiredTorrents seeding at once, -1 for unlimited.
maxConnectionsPerTorrentinteger<int64>requiredEstablished peer connections per torrent.
maxHalfOpenConnectionsinteger<int64>requiredOutgoing connection attempts in progress, across all torrents.
peerPortinteger<int64>requiredPort to accept peers on. NAT-PMP, when configured, overrides it. 0 picks a random port.
pexbooleanrequiredExchange peers with other peers.
proxyBitTorrentbooleanrequiredAnnounce to trackers and download from web seeds through the proxy. UDP trackers need a SOCKS5 proxy that relays UDP, and aren't used otherwise.
proxyHoststringrequiredThe proxy server's hostname or IP address.
proxyHostnameLookupbooleanrequiredLet the proxy look up the hostnames of trackers and web seeds, so they aren't looked up locally. UDP trackers are always looked up locally.
proxyPeerConnectionsbooleanrequiredWith proxyBitTorrent, connect to peers through the proxy too. The DHT, uTP and WebRTC peers can't go through it, so they are off meanwhile.
proxyPortinteger<int64>requiredThe proxy server's port.
proxyRSSbooleanrequiredFetch RSS feeds through the proxy.
proxyTorrentFilesbooleanrequiredDownload torrent files from URLs through the proxy, whether added by URL or by an RSS rule. Addresses on PIECEMEAL_FETCH_ALLOWED_NETWORKS are reached directly.
proxyTypestringrequiredThe proxy server's type: none, socks5, or http (an HTTP proxy that allows CONNECT to any port).
nonesocks5httpproxyUsernamestringrequiredThe username for the proxy, empty for none.
queueingEnabledbooleanrequiredRun only a limited number of torrents at a time; the rest wait in the queue.
ratioLimitnumber<double>requiredStop seeding at this upload ratio, -1 for unlimited.
relocateOnCategoryChangebooleanrequiredWhen an automatically managed torrent's category changes, move its data to the new category's paths. Off switches the torrent to manual management instead.
relocateOnCategoryPathChangebooleanrequiredWhen a category's save path or incomplete folder changes, move the data of its automatically managed torrents. Off switches them to manual management instead.
relocateOnDefaultPathChangebooleanrequiredWhen the default save path or the incomplete folder changes, move the data of automatically managed torrents that use it. Off switches them to manual management instead.
rssAutoDownloadbooleanrequiredAdd torrents from new articles that RSS rules match.
rssDownloadRepacksbooleanrequiredWith the smart episode filter, also take a REPACK or PROPER of an episode already downloaded.
rssEnabledbooleanrequiredFetch RSS feeds on their schedule.
rssFetchDelayinteger<int64>requiredSeconds between requests to the same host.
rssMaxArticlesinteger<int64>requiredArticles kept per feed; older ones are dropped.
rssRefreshIntervalinteger<int64>requiredMinutes between fetches of a feed without its own interval.
rssSmartEpisodeFiltersstringrequiredRegular expressions, one per line, that find the episode in a title for the smart episode filter: two groups for season and episode, or one for a date.
seedGoalActionstringrequiredWhat to do once a torrent reaches its seeding goals.
stopremoveremoveWithDataseedGoalModestringrequiredWhether a torrent reaches its seeding goals when any one is met, or only when all that are set are.
anyallseedingTimeLimitinteger<int64>requiredStop seeding after this many minutes, -1 for unlimited.
slowDownloadRateinteger<int64>requiredA torrent below this download rate, in bytes per second, is slow.
slowTorrentTimeinteger<int64>requiredSeconds a torrent must stay below the slow rates to count as slow.
slowUploadRateinteger<int64>requiredA torrent below this upload rate, in bytes per second, is slow.
uploadLimitinteger<int64>requiredGlobal upload limit in bytes per second, 0 for unlimited.
utpbooleanrequiredUse uTP as well as TCP for peer connections.
eventstringrequiredThe event name.
idinteger | stringThe event ID.
Show propertiesHide properties
integerstringretryintegerThe retry time in milliseconds.
dataSnapshotEventrequiredShow propertiesHide properties
categoriesCategory[] | nullrequiredShow propertiesHide properties
CategoryinactiveSeedingTimeLimitinteger<int64>requiredMinutes. -2 follows the global setting, -1 is unlimited.
incompletePathstringrequiredWith incompletePathMode on: where the category's incomplete torrents are kept.
incompletePathModestringrequiredThe category's incomplete folder: default follows the global setting, off keeps its torrents in their save path, on uses incompletePath.
defaultoffonnamestringrequiredratioLimitnumber<double>required-2 follows the global setting, -1 is unlimited.
savePathstringrequiredWhere torrents in this category are saved. Empty uses the default save path, or for automatically managed torrents a folder named after the category in it.
seedGoalActionstringrequiredWhat happens when a torrent reaches its seeding goals; default follows the global setting.
defaultstopremoveremoveWithDataseedGoalModestringrequiredWhether any goal or all of them must be met; default follows the global setting.
defaultanyallseedingTimeLimitinteger<int64>requiredMinutes. -2 follows the global setting, -1 is unlimited.
tagsstring[] | nullrequiredtorrentsTorrent[] | nullrequiredShow propertiesHide properties
TorrentactiveTimeinteger<int64>requiredSeconds spent running, all time.
addedAtinteger<int64>requiredUnix time.
autoManagedbooleanrequiredAutomatic management: the save path and incomplete folder follow the category.
categorystringrequiredcommentstringrequiredcompletebooleanrequiredEvery wanted file is downloaded.
completedinteger<int64>requiredWanted bytes downloaded and verified.
completedAtinteger<int64>requiredUnix time, 0 if never completed.
contentLayoutstringrequiredOriginalSubfolderNoSubfoldercontentPathstringrequiredThe torrent's file, or its top folder, or the save path when its files share no folder.
createdAtinteger<int64>requiredUnix time the torrent was created, 0 if unknown.
createdBystringrequireddownloadRateinteger<int64>requiredBytes per second.
downloadedinteger<int64>requiredPayload bytes downloaded, all time.
errorstringetainteger<int64>requiredSeconds until complete, -1 when unknown.
firstLastPiecebooleanrequiredforcedbooleanrequiredhasMetadatabooleanrequiredhashstringrequiredSHA-1 infohash, hex.
inactiveSeedingTimeLimitinteger<int64>requiredMinutes. -2 follows the category, then the global setting; -1 is unlimited.
incompletePathstringrequiredWhere the data stays until the torrent completes, then it moves to savePath; empty for none.
lastActivityAtinteger<int64>requiredUnix time of the last payload transfer, 0 if none.
magnetstringrequiredmultiFilebooleanrequiredThe torrent's files are in a root folder, even if there is only one.
namestringrequiredpeersinteger<int64>requiredConnected peers that are not seeds.
pieceSizeinteger<int64>requiredpiecesinteger<int64>requiredpiecesHaveinteger<int64>requiredprivatebooleanrequiredprogressnumber<double>requiredFraction of the wanted bytes downloaded, 0 to 1.
queuePositioninteger<int64>requiredrationumber<double>requiredratioLimitnumber<double>required-2 follows the category, then the global setting; -1 is unlimited.
rootPathstringrequiredThe torrent's top folder, empty when it has none.
savePathstringrequiredWhere the torrent's data goes; while it's incomplete, it may be in incompletePath instead.
seedGoalActionstringrequiredWhat happens when the torrent reaches its seeding goals; default follows the category, then the global setting.
defaultstopremoveremoveWithDataseedGoalModestringrequiredWhether any goal or all of them must be met; default follows the category, then the global setting.
defaultanyallseedGoalsSeedGoalsrequiredThe seeding goals in effect, after following the defaults.
Show propertiesHide properties
actionstringrequiredstopremoveremoveWithDatainactiveSeedingTimeLimitinteger<int64>requiredMinutes.
modestringrequiredanyallratioLimitnumber<double>requiredseedingTimeLimitinteger<int64>requiredMinutes.
seedingTimeinteger<int64>requiredSeconds spent seeding, all time.
seedingTimeLimitinteger<int64>requiredMinutes. -2 follows the category, then the global setting; -1 is unlimited.
seedsinteger<int64>requiredConnected seeds.
sequentialbooleanrequiredsessionDownloadedinteger<int64>requiredPayload bytes downloaded since piecemeal started.
sessionUploadedinteger<int64>requiredPayload bytes uploaded since piecemeal started.
sizeinteger<int64>requiredBytes in the wanted files.
statestringrequiredmetadatacheckingqueuedForCheckingdownloadingstalledDownloadingseedingstalledSeedingstoppedqueuedmovingerrorstoppedbooleanrequiredswarmPeersinteger<int64>requiredPeers known in the swarm.
tagsstring[] | nullrequiredtotalSizeinteger<int64>requiredBytes in all files.
trackerstringrequiredThe first tracker's URL.
trackersinteger<int64>requiredNumber of trackers.
uploadRateinteger<int64>requiredBytes per second.
uploadedinteger<int64>requiredPayload bytes uploaded, all time.
transferTransferStatusrequiredShow propertiesHide properties
altSpeedEnabledbooleanrequiredconnectionstringrequiredconnectedfirewalleddisconnecteddhtNodesinteger<int64>requireddownloadLimitinteger<int64>requiredThe limit in effect, bytes per second, 0 for unlimited.
downloadRateinteger<int64>requiredBytes per second.
freeSpaceinteger<int64>requiredFree bytes on the default save path's filesystem, -1 if unknown.
interfaceInterfaceStatusThe network interface connections are bound to (PIECEMEAL_BIND_INTERFACE), when set.
Show propertiesHide properties
namestringrequiredThe interface's name, such as wg0.
upbooleanrequiredFalse while the interface is down or gone: nothing goes out until it's back.
peersinteger<int64>requiredConnected peers across all torrents.
portinteger<int64>requiredThe port peers connect to.
sessionDownloadedinteger<int64>requiredPayload bytes downloaded since piecemeal started.
sessionUploadedinteger<int64>requiredPayload bytes uploaded since piecemeal started.
torrentsinteger<int64>requireduploadLimitinteger<int64>requiredThe limit in effect, bytes per second, 0 for unlimited.
uploadRateinteger<int64>requiredBytes per second.
eventstringrequiredThe event name.
idinteger | stringThe event ID.
Show propertiesHide properties
integerstringretryintegerThe retry time in milliseconds.
dataTagsEventrequiredShow propertiesHide properties
itemsstring[] | nullrequiredeventstringrequiredThe event name.
idinteger | stringThe event ID.
Show propertiesHide properties
integerstringretryintegerThe retry time in milliseconds.
dataTorrentsEventrequiredShow propertiesHide properties
removedstring[] | nullrequiredupdatedTorrent[] | nullrequiredShow propertiesHide properties
TorrentactiveTimeinteger<int64>requiredSeconds spent running, all time.
addedAtinteger<int64>requiredUnix time.
autoManagedbooleanrequiredAutomatic management: the save path and incomplete folder follow the category.
categorystringrequiredcommentstringrequiredcompletebooleanrequiredEvery wanted file is downloaded.
completedinteger<int64>requiredWanted bytes downloaded and verified.
completedAtinteger<int64>requiredUnix time, 0 if never completed.
contentLayoutstringrequiredOriginalSubfolderNoSubfoldercontentPathstringrequiredThe torrent's file, or its top folder, or the save path when its files share no folder.
createdAtinteger<int64>requiredUnix time the torrent was created, 0 if unknown.
createdBystringrequireddownloadRateinteger<int64>requiredBytes per second.
downloadedinteger<int64>requiredPayload bytes downloaded, all time.
errorstringetainteger<int64>requiredSeconds until complete, -1 when unknown.
firstLastPiecebooleanrequiredforcedbooleanrequiredhasMetadatabooleanrequiredhashstringrequiredSHA-1 infohash, hex.
inactiveSeedingTimeLimitinteger<int64>requiredMinutes. -2 follows the category, then the global setting; -1 is unlimited.
incompletePathstringrequiredWhere the data stays until the torrent completes, then it moves to savePath; empty for none.
lastActivityAtinteger<int64>requiredUnix time of the last payload transfer, 0 if none.
magnetstringrequiredmultiFilebooleanrequiredThe torrent's files are in a root folder, even if there is only one.
namestringrequiredpeersinteger<int64>requiredConnected peers that are not seeds.
pieceSizeinteger<int64>requiredpiecesinteger<int64>requiredpiecesHaveinteger<int64>requiredprivatebooleanrequiredprogressnumber<double>requiredFraction of the wanted bytes downloaded, 0 to 1.
queuePositioninteger<int64>requiredrationumber<double>requiredratioLimitnumber<double>required-2 follows the category, then the global setting; -1 is unlimited.
rootPathstringrequiredThe torrent's top folder, empty when it has none.
savePathstringrequiredWhere the torrent's data goes; while it's incomplete, it may be in incompletePath instead.
seedGoalActionstringrequiredWhat happens when the torrent reaches its seeding goals; default follows the category, then the global setting.
defaultstopremoveremoveWithDataseedGoalModestringrequiredWhether any goal or all of them must be met; default follows the category, then the global setting.
defaultanyallseedGoalsSeedGoalsrequiredThe seeding goals in effect, after following the defaults.
Show propertiesHide properties
actionstringrequiredstopremoveremoveWithDatainactiveSeedingTimeLimitinteger<int64>requiredMinutes.
modestringrequiredanyallratioLimitnumber<double>requiredseedingTimeLimitinteger<int64>requiredMinutes.
seedingTimeinteger<int64>requiredSeconds spent seeding, all time.
seedingTimeLimitinteger<int64>requiredMinutes. -2 follows the category, then the global setting; -1 is unlimited.
seedsinteger<int64>requiredConnected seeds.
sequentialbooleanrequiredsessionDownloadedinteger<int64>requiredPayload bytes downloaded since piecemeal started.
sessionUploadedinteger<int64>requiredPayload bytes uploaded since piecemeal started.
sizeinteger<int64>requiredBytes in the wanted files.
statestringrequiredmetadatacheckingqueuedForCheckingdownloadingstalledDownloadingseedingstalledSeedingstoppedqueuedmovingerrorstoppedbooleanrequiredswarmPeersinteger<int64>requiredPeers known in the swarm.
tagsstring[] | nullrequiredtotalSizeinteger<int64>requiredBytes in all files.
trackerstringrequiredThe first tracker's URL.
trackersinteger<int64>requiredNumber of trackers.
uploadRateinteger<int64>requiredBytes per second.
uploadedinteger<int64>requiredPayload bytes uploaded, all time.
eventstringrequiredThe event name.
idinteger | stringThe event ID.
Show propertiesHide properties
integerstringretryintegerThe retry time in milliseconds.
dataTransferEventrequiredShow propertiesHide properties
altSpeedEnabledbooleanrequiredconnectionstringrequiredconnectedfirewalleddisconnecteddhtNodesinteger<int64>requireddownloadLimitinteger<int64>requiredThe limit in effect, bytes per second, 0 for unlimited.
downloadRateinteger<int64>requiredBytes per second.
freeSpaceinteger<int64>requiredFree bytes on the default save path's filesystem, -1 if unknown.
interfaceInterfaceStatusThe network interface connections are bound to (PIECEMEAL_BIND_INTERFACE), when set.
Show propertiesHide properties
namestringrequiredThe interface's name, such as wg0.
upbooleanrequiredFalse while the interface is down or gone: nothing goes out until it's back.
peersinteger<int64>requiredConnected peers across all torrents.
portinteger<int64>requiredThe port peers connect to.
sessionDownloadedinteger<int64>requiredPayload bytes downloaded since piecemeal started.
sessionUploadedinteger<int64>requiredPayload bytes uploaded since piecemeal started.
torrentsinteger<int64>requireduploadLimitinteger<int64>requiredThe limit in effect, bytes per second, 0 for unlimited.
uploadRateinteger<int64>requiredBytes per second.
eventstringrequiredThe event name.
idinteger | stringThe event ID.
Show propertiesHide properties
integerstringretryintegerThe retry time in milliseconds.
Unauthorized
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.
Forbidden
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.
Internal Server Error
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.