---
title: "Prepare Direct Upload"
method: POST
path: "/api/uploads/direct/prepare"
---

# Prepare Direct Upload

`POST /api/uploads/direct/prepare`

## Request

- Base URL: `https://api.animgen.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.animgen.com/api/uploads/direct/prepare`
- Auth: none declared

## Request body

- DirectUploadPrepareRequest
  - `workspaceId` string, uuid, nullable
  - `filename` string, required
  - `mimeType` string, required
  - `byteSize` integer, required
  - `kind` 'uploaded_video' | 'uploaded_image' | 'uploaded_file', nullable
  - `temporary` boolean

## Response `200`

Successful Response

- DirectUploadPrepareResponse
  - `uploadId` string, uuid, required
  - `storage` string, required
  - `objectKey` string, required
  - `uploadUrl` string, required
  - `method` 'PUT'
  - `headers` object
  - `expiresAt` string, required
  - `maxBytes` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/animgen/apis/aianimgenbackend.md) · [All operations](https://skmtc.dev/animgen/apis/aianimgenbackend/llms.txt) · [OpenAPI document](https://skmtc.dev/animgen/apis/aianimgenbackend/revisions/0504d838139a?raw)
