Skip to main content
Use this first for every new video, as soon as the person gives you a recording (.mp4, .mov, .webm; up to 2 GB, 10 min). Ask nothing first: the file’s extension gives content_type, wc -c &lt; FILE in your shell gives size_bytes (exact: the upload is signed for it), and its length is needed only later (create_video). Returns upload_command, one shell line, curl -fsS -T “FILE” ”$(curl -fsS ‘<upload_link>’)”: run it with FILE replaced by the path to the file (keep the quotes), then call finish_upload. Pick the style while it uploads. The link in it works for 2 hours.

Inputs

A refusal is a result with isError: true and structuredContent.error = {code, message, next}: see Limits and errors.