Skip to Content
TorBox API

Errors

How errors are reported, and every error code with its status.

Every error uses the standard envelope with success: false:

{
  "success": false,
  "error": "BAD_TOKEN",
  "detail": "The provided token is invalid.",
  "data": null
}
  • Branch on error: it is the stable code. Show detail to people: it is a user-friendly message.
  • data is usually null. For some errors it holds extra information (for example UNKNOWN_ERROR).

Status codes

StatusMeaning
200Always means success.
400The user did something wrong, or an input wasn't correct or expected.
401The API token is missing or invalid.
403The token is fine but the account is not allowed to do this, for example because of its plan.
404What was asked for wasn't found.
409It conflicts with something that already exists.
429A limit was reached. See Rate limits.
500Something went wrong on TorBox's end.
503A part of TorBox is unavailable for the moment, so the call can be tried again.

Request validation errors (a missing or mistyped field) are answered with 422 and FastAPI's {"detail": [...]} body, not the envelope.

Error codes

A 4xx status means the request or the account is the cause, a 5xx status means the fault is on TorBox's end. A few endpoints send an error with another status than the one listed; their examples in the reference show which.

Error codeStatusMeaning
MISSING_REQUIRED_OPTION400The API is missing required information to process the request.
MISSING_DATA400The request is missing data that is needed to process it.
INVALID_OPTION400The provided option is invalid.
TOO_MANY_OPTIONS400Client sent too many options. Usually this has to do with the API requiring only 1 option but the client sent more than the required.
TOO_MUCH_DATA400Client sent too much data to the API. Please keep requests under 100MB in size.
DOWNLOAD_TOO_LARGE400This download is oversized for the user's plan. The user is recommended to upgrade their plan to download this file.

Free Plan Limit: 10737418240 bytes
Essential Plan Limit: 214748364800 bytes
Standard Plan Limit: 214748364800 bytes
Pro Plan Limit: 1099511627776 bytes
BOZO_TORRENT400The torrent sent is not a valid torrent.
BOZO_NZB400The NZB sent is not a valid NZB file.
BOZO_FILE400This file doesn't match the required mimetype. Please use a different file.
BOZO_RSS_FEED400This RSS feed is invalid, not a well-formed XML, or could not be read by TorBox.
BOZO_REGEX400The regex you entered is bad.
BOZO_REFERRAL400The referral code is invalid, or would not give the user any benefit.
BAD_CONFIRMATION400The confirmation code you have given is invalid.
UNSUPPORTED_SITE400The link is from a site that TorBox cannot download from. The supported sites are in the hoster list.
URL_NOT_ALLOWED400The URL given cannot be used. It could not be resolved, or it points somewhere TorBox does not download from.
DIFF_ISSUE400The request parameters sent does not allow for this request to complete.
WHY_ARE_YOU_LIKE_THIS400The user tried to use their own referral code.
DEVICE_CODE_NOT_USED400The user has not authorized this device code yet. Keep polling.
DEVICE_CODE_USED400This device code has already been redeemed. Start the device code process again.
OAUTH_VERIFICATION_ERROR400The server tried verifying your OAuth token, but it was not accepted by the provider.
NAME_TOO_SHORT400The name or tag given is empty.
NAME_TOO_LONG400The name or tag given is 200 characters or longer.
INVALID_HASH400A hash given is not an MD5, SHA1 or SHA256 hash.
NO_CHANGES400The request did not contain anything to change.
INVALID_EMAIL400The email address given is not valid, or is a disposable email address.
INVALID_VENDOR_URL400The URL given for the vendor account is not a valid URL.
NO_AUTH401There are no provided credentials.
BAD_TOKEN401The provided token is invalid.
AUTH_ERROR403The given authentication was checked and not accepted.
PLAN_RESTRICTED_FEATURE403This feature is restricted to users of higher plans. The user is recommended to upgrade their plan to use this endpoint.
UPGRADE_REQUIRED403This feature is not available on the free plan. The user is recommended to upgrade their plan.
ITEM_NOT_ALLOWED403This item or account is not allowed to be used for this request. The reason is in detail.
VENDOR_DISABLED403This vendor account has been disabled. Please contact support.
AI_DISABLED403The user has turned off AI features in their settings.
ENDPOINT_NOT_FOUND404If you have hit an endpoint that doesn't exist.
ITEM_NOT_FOUND404The item you queried cannot be found.
USER_NOT_FOUND404The user you queried cannot be found.
DOWNLOAD_NOT_CACHED404The download was sent with add_only_if_cached and is not cached, so it was not added.
NO_REFERRAL_CODE404The user does not have a referral code.
DUPLICATE_ITEM409This item already exists.
NOT_OWNER409The item does not exist, or does not belong to the user.
USER_EXISTS409A user with this email address already exists and cannot be used for this request.
CONFIRMATION_EXPIRED410The confirmation code you have given is expired. Request a new code.
DEPRECATED410This endpoint is deprecated. The endpoint to use instead is in detail.
RATE_LIMIT_EXCEEDED429Client sent too many requests. The limit that was reached is in detail. Read the Rate Limits section above.
MONTHLY_LIMIT429User has hit the maximum monthly limit. It is recommended user upgrade their account to be able to download more.
COOLDOWN_LIMIT429User is on download cooldown. It is recommended user upgrade their account to be able to bypass this restriction.
ACTIVE_LIMIT429User has hit their max active download limit. It is recommended user upgrade their account or purchase addons to bypass this restriction.
DOWNLOAD_LIMIT_REACHED429User has hit the daily limit of downloads for this hoster. The limit resets after 24 hours.
DAILY_BANDWIDTH_LIMIT_EXCEEDED429User has used up the daily bandwidth of their plan.
AIRLOCK_LIMIT_REACHED429The user's Airlock storage is full, or this download would not fit in it.
ASSISTANT_DAILY_LIMIT429User has used up the assistant for today. It resets at 00:00 UTC.
ASSISTANT_FREE_LIMIT429User has used up the assistant messages of the free plan for today.
DATABASE_ERROR500Could not access internal database/memory store information.
UNKNOWN_ERROR500The reason for the error is unknown. Usually there will be error data attached in the "data" key. In these cases please report the request to contact@torbox.app.
DOWNLOAD_SERVER_ERROR500There was an error interacting with the download on the download server. It is recommdned to simply wait some time before trying again.
DOWNLOAD_METADATA_ERROR500The full metadata of the torrent could not be downloaded in time. What the trackers answered is in data.
STORAGE_ERROR500There was an error with TorBox's internal storage.
STREAM_INFO_ERROR500The information needed to stream this file could not be read.
ASSISTANT_ERROR500There was an error with the assistant.
REDIRECT_ERROR500The server tried redirecting, but it faulted.
REGISTRATION_FAILED500The OAuth link could not be registered.
UNREGISTRATION_FAILED500The OAuth link could not be unregistered.
AUTH_UNAVAILABLE503The token could not be verified right now. This says nothing about the token, so try again shortly.
NO_SERVERS_AVAILABLE_ERROR503There are no download servers available to handle this request. This should never happen. If you receieve this error, please contact us at contact@torbox.app.
DOWNLOAD_SERVER_OFFLINE503The download server that holds this download is offline.
LINK_OFFLINE503The link given is inaccessible or has no online files.
TEMPORARILY_DISABLED503The site of this link is temporarily disabled on TorBox.

On this page