Hi guys. I need to make it so that all my videos uploaded to Cloudflare Stream have a thumbnail take

Hi guys. I need to make it so that all my videos uploaded to Cloudflare Stream have a thumbnail taken from the third second of the video. I’m trying to use a PowerShell command for this, but I keep getting a 404 error. Does anyone know how this can be done automatically for a batch of videos?


$AccountID = "ACCOUNT_ID"
$ApiToken = "API_TOKEN"

$url = "https://api.cloudflare.com/client/v4/accounts/$AccountID/stream"
$headers = @{Authorization="Bearer $ApiToken"}

$response = Invoke-RestMethod -Uri $url -Headers $headers -Method Get

$response.result.uid
Was this page helpful?