Skip to Content
TorBox API
Torrents

Async Create Torrent

POST /v1/api/torrents/asynccreatetorrent

Try it in the playground

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)

FieldTypeRequiredDescription
filestringnoThe torrent's torrent file. Optional.
magnetstringnoThe torrent's magnet link. Optional.
seedintegernoTells 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_zipbooleannoTells TorBox if you want to allow this torrent to be zipped or not. TorBox only zips if the torrent is 100 files or larger.
namestringnoThe name you want the torrent to be. Optional.
as_queuedbooleannoTells 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_cachedbooleannoOnly adds the download if it is cached on TorBox. If not cached, it won't be added.

Responses

  • 200 Successful Response
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 422 Validation Error
  • 429 Too Many Requests
  • 500 Internal Server Error
  • 503 Service Unavailable