# Introduction (/docs)

The TorBox API is the REST API behind [torbox.app](https://torbox.app). Everything the app does (adding
torrents, usenet and web downloads, streaming, notifications, RSS feeds, integrations) is available to your
code.

- **Base URL:** `https://api.torbox.app`
- **Version:** `v1`, every path starts with `/v1/api/`
- **Spec:** [https://api.torbox.app/openapi.json](https://api.torbox.app/openapi.json) (OpenAPI 3.1), rendered on the
  [API reference](/reference)

## The standard response [#the-standard-response]

Most requests return the same JSON envelope:

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

| Key | Meaning |
| --- | --- |
| `success` | Whether the request was successful. |
| `error` | An error code if there was an error, or `null` on success. See [Errors](/docs/errors). |
| `detail` | A user-friendly message, for success or failure. You may forward it directly to users. |
| `data` | The response information, usually an object, but can be anything. Check the examples in the reference. |

You can rely on both the `success` boolean and the status code. Status `200` always means success.

## General notes [#general-notes]

- The `/usenet` and `/webdl` endpoints are nearly the same as the `/torrents` endpoints, apart from some
  differently named inputs and outputs.
- All outputs are JSON unless otherwise specified.
- All dates are UTC in the format `%Y-%m-%dT%H:%M:%SZ`, for example `2024-10-21T20:47:03Z`.

## Next steps [#next-steps]

<Cards>
<Card title="Getting started" href="/docs/getting-started" />

<Card title="Authentication" href="/docs/authentication" />

<Card title="API reference" href="/reference" />

<Card title="SDKs" href="/docs/sdks" />
</Cards>