Skip to content
The Yoto Developer Challenge is on, with $10,000 to win!

get an upload url

Get a signed url that an audio file can be uploaded to. The sha256 hash sent in the request querystring is used to check if a file matching that checksum already exists in our store.

Response

  • Two fields are returned in the body: uploadUrl and uploadId.

  • If the file already exists in our file store then "uploadUrl": null is returned

  • If the file does not exists, then a signed uploadUrl is generated.

Responses

200 OK (Upload URL Created) / 200 OK (File Already Exists) application/json
uploadobject
uploadIdstring
uploadUrlstring

Query Parameters

sha256 string

The SHA256 hash of the source file to be uploaded. It is used to determine a successful upload (we SHA256 hash the file once it is uploaded to our file store and compare the hashes for a match)

Example {{sha256}}
filename string

(optional) the filename for the uploaded file

Example This Is The Name I Want For The File
GET
/media/transcode/audio/uploadUrl
Server URL: https://api.yotoplay.com
Authorization (bearerAuth)
Query Parameters
KEYVALUE
Terminal window
curl "https://api.yotoplay.com/media/transcode/audio/uploadUrl"
--header "Authorization: Bearer [YOUR_TOKEN]"