{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kreatorflow-ai/json-schema/kreatorflow-ai-upload-create-response-schema.json",
  "title": "UploadCreateResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kreatorflow-ai-uploads-api-openapi.yml#/components/schemas/UploadCreateResponse",
  "type": "object",
  "properties": {
    "upload_id": {
      "type": "string",
      "description": "workspace-scoped upload id; use this in generation references"
    },
    "direct_upload_url": {
      "type": "string",
      "description": "RECOMMENDED. Absolute presigned TOS URL, PUT the raw bytes straight here (bypasses the ~4.5MB proxy cap, up to the documented media limits). Send EXACTLY the direct_upload_headers."
    },
    "direct_upload_headers": {
      "type": "object",
      "additionalProperties": true,
      "description": "object of headers that MUST be sent verbatim on the direct_upload_url PUT (Content-Type is signed; a mismatch is rejected by storage)"
    },
    "direct_upload_expires_at": {
      "type": "string",
      "description": "direct_upload_url expiry (~10 min); request a new upload if it lapses"
    },
    "complete_url": {
      "type": "string",
      "description": "absolute URL, POST here after the direct_upload_url PUT to finalize and make the upload usable (returns the ready upload_id)"
    },
    "upload_url": {
      "type": "string",
      "description": "absolute fallback PUT URL for SMALL files only (<~4.5MB), the proxy path; large files MUST use direct_upload_url"
    },
    "upload_method": {
      "type": "string",
      "description": "PUT"
    },
    "upload_mode": {
      "type": "string",
      "description": "direct"
    },
    "expires_at": {
      "type": "string",
      "description": "upload reservation expiry timestamp"
    }
  },
  "additionalProperties": true
}