Import Media from URL
import_media_from_urlImport a media file from a public URL into Wistia, optionally into a folder, and track the asynchronous job status. Creates an Untitled Folder if no folder ID is given.
Instructions
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 anythingTokens 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.
Requires confirm=true for the requested mutation. May share access, notify people or incur provider charges.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The publicly accessible URL of the media file to import. | |
| account | No | Named private Wistia account; selects credentials, not a remote account ID. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete JSON request body instead of body flags. Supports current nested customization, caption and nullable values. | |
| folder_id | No | The hashed ID of the folder (project) to import the media into. If not provided, a new folder will be created. | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. |