---
title: "Upload a file through a one-time link"
method: PUT
path: "/uploads/{token}"
tags: ["tasks"]
---

# Upload a file through a one-time link

`PUT /uploads/{token}`

## Request

- Base URL: `https://task.igordudnek.com/api/v1`
- URL: `https://task.igordudnek.com/api/v1/uploads/{token}`
- Auth: none required

No Authorization header — the link is the permission. Body = the raw file bytes. 410 when the link was used or expired, 413 over the size cap.

## Response `201`

OK

- Attachment
  - `content_type` string
  - `id` string, uuid, required
  - `original_name` string
  - `size_bytes` integer
  - `task_id` string, uuid, required

---

[API](https://skmtc.dev/loopertask/apis/loopertask-api.md) · [All operations](https://skmtc.dev/loopertask/apis/loopertask-api/llms.txt) · [OpenAPI document](https://skmtc.dev/loopertask/apis/loopertask-api/revisions/5d9903f15162?raw)
