Skip to Content
TorBox API

Getting started

Get an API key and make your first requests.

1. Get your API key

Open your TorBox settings page and copy the key from the API key section. Keep it secret: it gives full access to your account. See Authentication.

export TORBOX_API_KEY="your-api-key"

2. Check who you are

Use Get User Data to check that your key works. Choose a TorBox SDK or an HTTP client in the request example to copy code for your language.

Loading request example… View endpoint

Every answer is the standard envelope: success, error, detail, data.

3. Add a torrent

POST /v1/api/torrents/createtorrent takes either a magnet link or a torrent file as form data. Choose Magnet link or Torrent file in the example.

Loading request example… View endpoint

{
  "success": true,
  "error": null,
  "detail": "Torrent Added Successfully",
  "data": { "hash": "string", "torrent_id": 0, "auth_id": "string" }
}

4. List your downloads

Use Get Torrent List with limit=50 to fetch the first page of torrents.

Loading request example… View endpoint

Use Request Torrent Download Link with a torrent_id and file_id.

Loading request example… View endpoint

This endpoint takes the key as the token query parameter, not as a header, so the URL itself can be used as a link. See Torrents.

Try it in the browser

The API reference has a playground that calls the real API. Use Sign in with TorBox in the header and your key is filled in for you.

On this page