Upload

Get a file upload URL

Generates a pre-signed URL for uploading a file directly to cloud storage. Upload the file with a PUT request to the returned URL and headers, then confirm it with /api/upload/complete. Dataset uploads can skip that call: the dataset ingest endpoint completes the upload when given the returned sessionId. Dataset upload URLs remain valid for 12 hours, are create-only, and filenames must end in .zip, .tar, .tar.gz, .tgz, or .ndjson — package loose images into an archive.

post/api/upload/signed-url

Request

  • Base URL
    https://platform.ultralytics.com
  • Auth
    HTTP bearer

Request body

OR

Example request

{
  "assetId": "507f1f77bcf86cd799439011",
  "contentType": "application/zip",
  "totalBytes": 1048576,
  "filename": "dataset.zip"
}

Response

Upload URL ready

sessionIdstring required
uploadUrlstring required
expiresAtstring date-time required
headersobject

Headers required when uploading to the signed URL

Changes

No recorded changes to this operation across all 43 revisions of this API.