Media

Import Media from URL

Changed on

This endpoint imports a media file from a given URL. The import is processed asynchronously and will return a background_job_status object rather than the typical Media response object. You can poll the background job status endpoint to check on the progress of the import.

If no folder_id is provided, a new folder called "Untitled Folder" will be created and the imported media will be placed there.

The URL must be publicly accessible — Wistia's servers need to be able to fetch the file directly.

Note: imports from certain domains (e.g. vimeo.com, wistia.com) are not permitted.

Requires api token with one of the following permissions

Read, update & delete anything

Tokens with the "Act with a team member's permissions" permission (all:delegate_to_contact_permissions scope) can also be used. Requests made with such a token are authorized using the permissions of the contact assigned to the token.

post/medias/import_url

Request

  • Base URL
    https://api.wistia.com/modern
  • URL
    https://api.wistia.com/modern/medias/import_url
  • Auth
    HTTP bearer

Headers

X-Wistia-API-Versionstring required

Request body

urlstring uri required

The publicly accessible URL of the media file to import.

folder_idstring

The hashed ID of the folder (project) to import the media into. If not provided, a new folder will be created.

Example request

{
  "url": "https://example.com/video.mp4"
}

Response

Successfully queued background job for URL import.

messagestring required

A confirmation message that the background job has been queued.

Changes