Torrents
Control Torrent
POST /v1/api/torrents/controltorrent
POST https://api.torbox.app/v1/api/torrents/controltorrent
- Operation ID:
control_torrent - Group: Torrents
- Auth: API key,
Authorization: Bearer <api key>(Sign in with TorBox gives the same key)
Overview
Controls a torrent. By sending the torrent's ID and the type of operation you want to perform, it will send that request to the torrent client.
Operations are either:
-
Reannounce
reannounces the torrent to get new peers -
Delete
deletes the torrent from the client and your account permanently -
Resume
resumes a paused torrent
Authorization
Requires an API key using the Authorization Bearer Header.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
operation | string | yes | the operation you want to perform on the torrent |
torrent_id | integer | no | the torrent's id, optional if using "all" parameter |
all | boolean | no | if you want to do this operation to all torrents in your account, optional if using the "torrent_id" parameter |
Responses
200Successful Response400Bad Request401Unauthorized403Forbidden404Not Found409Conflict422Validation Error429Too Many Requests500Internal Server Error503Service Unavailable