# Control Queued Downloads

`POST https://api.torbox.app/v1/api/queued/controlqueued`

- Operation ID: `control_queued_downloads`
- Group: Queued
- Auth: API key, `Authorization: Bearer <api key>` (Sign in with TorBox gives the same key)

### Overview

Controls a queued torrent. By sending the queued torrent's ID and the type of operation you want to perform, it will perform that action on the queued torrent.

Operations are either:

- **Delete** `deletes the queued download from your account`

- **Start** `starts a queued download, cannot be used with the "all" parameter`


### Authorization

Requires an API key using the Authorization Bearer Header.

## Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `operation` | string | yes | the operation you want to perform on the torrent |
| `queued_id` | integer | no | the queued torrent's id, optional if using the "all" parameter |
| `all` | boolean | no | if you want to do this operation to all queued torrents in your account, optional if using the "queued_id" parameter |

## 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
