---
title: "Initiate a new TUS upload"
method: POST
path: "/api/tus"
tags: ["Media Upload - TUS Resumable"]
---

# Initiate a new TUS upload

`POST /api/tus`

## Request

- Base URL: `https://snapwonders.com`
- URL: `https://snapwonders.com/api/tus`
- Auth: API key in header `X-Api-Key`

## Headers

- `Upload-Length` integer, required
- `Upload-Metadata` string, required
- `X-Api-Key` string, required

## Response `201`

Created — Check Location header for the upload resource URL

## Other responses

- `401`: Not authenticated. `error` names the exact cause: `missing_api_key`, `malformed_api_key`, `invalid_api_key` (key unknown/revoked/expired), or — when the key itself is valid — `account_not_verified` / `account_inactive`. Access is additionally bounded by the session, which must already exist and belong to this key (422/403 otherwise).

---

[API](https://skmtc.dev/snapwonders/apis/snapwonders-api-mcp.md) · [All operations](https://skmtc.dev/snapwonders/apis/snapwonders-api-mcp/llms.txt) · [OpenAPI document](https://skmtc.dev/snapwonders/apis/snapwonders-api-mcp/revisions/645bbccc9550?raw)
