---
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

---

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