---
title: "Upload torrent files."
method: POST
path: "/magnet/upload/file"
---

# Upload torrent files.

`POST /magnet/upload/file`

Upload torrent files.<br /> This endpoint should be POSTed on.<br /> It expects a multipart formdata file upload.<br />

## Query parameters

- `apikey` string
- `agent` string, required

## Response `200`

This endpoint retrieves a complete list of all available hosts for this user

- object
  - `status` string
  - `data` object
    - `files` object[]
      - `file` string
      - `hash` string
      - `name` string
      - `size` integer
      - `ready` boolean
      - `id` integer
      - `error` object
        - `code` string
        - `message` string
  - `error` object
    - `code` string
    - `message` string

---

[API](https://skmtc.dev/alldebrid/apis/alldebrid-api.md) · [All operations](https://skmtc.dev/alldebrid/apis/alldebrid-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alldebrid/alldebrid-api/revisions/4856488e3924/schema)
