Async Create Torrent
POST /v1/api/torrents/asynccreatetorrent
POST https://api.torbox.app/v1/api/torrents/asynccreatetorrent
- Operation ID:
async_create_torrent - Group: Torrents
- Auth: API key,
Authorization: Bearer <api key>(Sign in with TorBox gives the same key)
Overview
Creates a torrent asynchrously under your account. Simply send either a magnet link, or a torrent file. Once they have been checked, they will begin downloading assuming your account has available active download slots, and they aren't too large.
The request will return instantly, not returning any data other than a success message. This is the same for failures, as they will return the error in the background, rather than immediately.
Rate Limits
This endpoint has the same limits as the Create Torrent endpoint: 300 requests per minute, and 60 uncached torrents per hour. The hourly limit is shared between the two endpoints, so an uncached torrent added through either one counts against the same 60. As on that endpoint, a request sent with add_only_if_cached and without as_queued is not counted against the hourly limit.
Authorization
Requires an API key using the Authorization Bearer Header.
Request body (multipart/form-data)
| Field | Type | Required | Description |
|---|---|---|---|
file | string | no | The torrent's torrent file. Optional. |
magnet | string | no | The torrent's magnet link. Optional. |
seed | integer | no | Tells TorBox your preference for seeding this torrent. 1 is auto. 2 is seed. 3 is don't seed. Optional. Default is 1, or whatever the user has in their settings. Overwrites option in settings. |
allow_zip | boolean | no | Tells TorBox if you want to allow this torrent to be zipped or not. TorBox only zips if the torrent is 100 files or larger. |
name | string | no | The name you want the torrent to be. Optional. |
as_queued | boolean | no | Tells TorBox you want this torrent instantly queued. This is bypassed if user is on free plan, and will process the request as normal in this case. Optional. |
add_only_if_cached | boolean | no | Only adds the download if it is cached on TorBox. If not cached, it won't be added. |
Responses
200Successful Response400Bad Request401Unauthorized403Forbidden404Not Found422Validation Error429Too Many Requests500Internal Server Error503Service Unavailable