Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


After the video entity has been successfully created successfully, you must get the upload URL.

 Request

Code Block
languagetext
themeConfluence
curl -v -X GET -H "Authorization: Bearer <ACCESS_TOKEN>" https://api.video-cdn.net/v1/vms/<VIDEOMANAGER_ID>/videos/<VIDEO_ID>/url
Note

The use of verbose mode ("-v") in the above request is optional if you already have a way to collect the upload URL from the response header. If using a command line tool, it may be necessary to enable verbose mode to allow you to see the response headers.

ParametersData TypeDescription
VIDEOMANAGER_IDIntegermandatory: The ID of the VideoManager, in which the new video entity has been created in the first step.
VIDEO_IDStringmandatory: The video ID that the system has created for the new entity (see "Creating a Video Entity").
Headers

ACCESS_TOKENStringmandatory: Access token (see "Access and Refresh Tokens").

Response

200 - OK: . The upload URL is sent back in the HTTP response header under location.


Sample response

Code Block
languagetext
themeConfluence
Location: https://file-1-a.video-cdn.net/jshdfkjhdfgjh/987876565423?__token__=abc123
Warning

The token is valid for four hours. This means that if the video upload takes longer than four hours to complete, an error will occur. If this happens, perform this request again to generate a new upload URL.