Overview
This guide outlines the step-by-step process to upload a video file to Google Cloud Storage (GCS) using the Opus API and subsequently create a clip project. This includes generating an upload link, initiating a resumable upload session, uploading a video, and creating a clip project using that uploaded file.Authentication
All API requests require an API key:Replace
<API_KEY>
with your valid API token.Step 1: Generate Upload Link
Endpoint
Headers
Request Body
Response Example
cURL Example
Step 2: Initiate Resumable Upload Session
Endpoint
Headers
Request Body
(empty)- Replace
<url_from_previous_step>
with theurl
received from Step 1 - No response body is returned
- Look for the
location
header in the response which contains the resumable upload URL
Example Response Headers
cURL Example
Step 3: Upload Video File
Endpoint
Headers
Upload File
Use the--upload-file
option with your actual video file (e.g., test.mp4
).
cURL Example
Replace
<location>
with the location
URL from Step 2 response headers.Step 4: Create Clip Project
Endpoint
Headers
Response Headers
Request Body
cURL Example
- Replace
<uploadId>
with the ID returned in Step 1 - Replace
"YOUR_TITLE"
with your desired clip project title
Full Workflow Summary
1
Generate Upload Link
Get
url
and uploadId
from the upload-links endpoint2
Start Resumable Session
Get
location
from response headers using the url
from Step 13
Upload Video File
Upload your video file to the
location
from Step 24
Create Clip Project
Create a new clip project using the
uploadId
from Step 1