Skip to main content
GET
/
collection
/
{collection_id}
/
upload_url
Get presigned upload URL
curl --request GET \
  --url https://api.videodb.io/collection/{collection_id}/upload_url \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "data": {
    "upload_url": "https://s3.amazonaws.com/...",
    "video_id": "m-12345"
  }
}
Get a presigned upload URL for directly uploading files to a collection. This is useful for client-side uploads where you want to avoid routing file data through your server.
  • The presigned URL expires after a limited time
  • Upload the file directly to the returned URL using a PUT request
  • A video ID is pre-assigned and returned immediately

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

collection_id
string
required
Example:

"default"

Query Parameters

name
string
Example:

"my_video.mp4"

Response

200 - application/json

Upload URL generated

success
boolean
Example:

true

data
object