Upload or Import Media

Upload or Import Media

Endpoint to upload media files from a local system or import from a web URL.

  • Use multipart/form-data with a file parameter to upload from local system
  • Use application/x-www-form-urlencoded with a url parameter to import from web URL
post/

Request

  • Base URL
    https://upload.wistia.com
  • URL
    https://upload.wistia.com/
  • Auth
    HTTP bearer

Request body application/x-www-form-urlencoded

project_idstring

The hashed id of the project to upload media into.

namestring

A display name to use for the media in Wistia.

descriptionstring

A description to use for the media in Wistia.

contact_idinteger

A Wistia contact id.

access_tokenstring

A 64 character hex string. This parameter can be found on your API access page OR can be the token you received from authenticating via Oauth2. Note this approach is legacy and discouraged. We recommend using Bearer Token authentication.

urlstring uri required

The publicly accessible web location of the media file to import.

low_priorityboolean

Inform the encoding service that this upload can be considered lower priority than others. This is especially useful for platform customers doing bulk uploads or migrations. Setting this to "false" has no effect.

Example request

{
  "url": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
  "low_priority": true
}

Response

Successfully uploaded or imported.

idinteger

A unique numeric identifier for the media within the system.

namestring

The display name of the media.

typestring

A string representing what type of media this is.

createdstring date-time

The date when the media was originally uploaded.

updatedstring date-time

The date when the media was last changed.

durationnumber

Specifies the length (in seconds) for audio and video files.

hashed_idstring

A unique alphanumeric identifier for this media.

progressnumber

A floating point value between 0 and 1 that indicates the progress of the processing for this file.

Changes

No recorded changes to this operation across all 1 revision of this API.