Skip to main content
POST
/
upload
curl -X POST "http://localhost:8000/upload" \
  -F "[email protected]" \
  -F "unique_id=bucket-uuid"
{
  "type": "video",
  "result": {
    "video_id": "abc123",
    "status": "processing"
  }
}

Overview

This endpoint automatically detects the upload type and routes to the appropriate handler. Supports:
  • Video file uploads
  • Image file uploads
  • Video URL uploads
  • Text memory uploads

Request Parameters

file
file
Video or image file (multipart/form-data)
url
string
Video URL for URL-based uploads
memory
string
Text memory content
unique_id
string
Memory bucket ID (required for text memories)
tags
string
JSON array of tags (optional, for text memories)
geo_location
string
JSON object with latitude/longitude (optional, for text memories)
timestamp
string
ISO 8601 timestamp (optional, for text memories)

Response

type
string
Type of upload: “video”, “image”, “video_url”, or “text_memory”
result
object
Upload result containing status and resource identifiers
curl -X POST "http://localhost:8000/upload" \
  -F "[email protected]" \
  -F "unique_id=bucket-uuid"
{
  "type": "video",
  "result": {
    "video_id": "abc123",
    "status": "processing"
  }
}