---
title: "Create an asset upload"
method: POST
path: "/assets"
tags: ["Assets"]
---

# Create an asset upload

`POST /assets`

Creates an asset from an allowlisted source URL or reserves a signed upload URL. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.

## Request body

- object
  - `source` string, required — Asset source URL or signed-url upload mode
  - `workspace_id` string, required — Workspace identifier
  - `folder` string — Destination folder
  - `content_type` string — Asset content type
  - `file_name` string — Asset file name

## Response `201`

Asset upload created.

- object
  - `asset_id` string, required — Asset identifier
  - `uploaded_via` 'url' | 'signed_url', required — Asset source
  - `url` string, uri, required — Asset URL
  - `workspace_id` string, required — Workspace identifier
  - `visibility` 'workspace', required
  - `status` 'pending_upload' | 'ready' | 'failed', required
  - `upload` object
    - `url` string, uri, required — Upload URL
    - `method` 'POST', required
    - `content_type` 'multipart/form-data', required
    - `file_field` 'file', required
    - `form_fields` object, required — Upload form fields
  - `upload_url` string — Upload URL (serialized)
  - `expires_at` string, date-time — Expiration time for the upload URL

## Other responses

- `400` — 400
- `401` — 401
- `402` — 402
- `403` — 403
- `404` — 404
- `409` — 409
- `429` — 429
- `500` — 500

## Changes

- **2026-05-19** `2f4a714f8ce9` — 3 breaking, 3 info
  - removed the required property `upload/contentType` from the response with the `201` status
  - removed the required property `upload/fileField` from the response with the `201` status
  - removed the required property `upload/formFields` from the response with the `201` status
  - added the required property `upload/content_type` to the response with the `201` status
  - …2 more
- **2026-05-13** `3b683901714c` — 2 breaking, 3 info
  - added the new required request property `source`
  - added the new required request property `workspace_id`
  - added the new optional request property `content_type`
  - added the new optional request property `file_name`
  - …1 more
- **2026-05-13** `5546855ea637` — 5 warning, 8 info
  - removed the request property `content_type`
  - removed the request property `file_name`
  - removed the request property `folder`
  - removed the request property `source`
  - …9 more
- **2026-05-12** `4a457dc80f1e` — 2 breaking, 3 info
  - added the new required request property `source`
  - added the new required request property `workspace_id`
  - added the new optional request property `content_type`
  - added the new optional request property `file_name`
  - …1 more
- **2026-05-12** `cb3cd5e5da7c` — 5 warning
  - removed the request property `content_type`
  - removed the request property `file_name`
  - removed the request property `folder`
  - removed the request property `source`
  - …1 more

[Change history](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/changes/assets/post.md)

---

[API](https://skmtc.dev/florafauna-ai/apis/flora-ai-api.md) · [All operations](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/florafauna-ai/flora-ai-api/revisions/2f4a714f8ce9/schema)
