Skip to main content
POST
/
upload
Upload a file
curl --request POST \
  --url https://rawugc.com/api/v1/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "url": "<string>",
  "contentType": "<string>",
  "size": 123
}

Authorizations

Authorization
string
header
required

Use your API key from the RawUGC dashboard. Include as: Authorization: Bearer YOUR_API_KEY

Body

multipart/form-data
file
file
required

The file to upload. Accepted types: video/mp4, video/quicktime, video/webm, image/png, image/jpeg, image/webp

Response

File uploaded successfully

url
string<uri>
required

Public URL of the uploaded file. Use in generation requests (imageUrls, videoUrls) or pass to analyze-video.

contentType
string
required

MIME type of the uploaded file (e.g. video/mp4, image/png)

size
integer
required

File size in bytes