Skip to main content
Media Files/FoldersVersion: v3

Upload File into Media Storage

POST/medias/upload-file

If hosted is set to true then fileUrl is required. Else file is required. If adding a file, maximum allowed is 25 MB. For video files, the maximum allowed size is 500 MB.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:medias.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3

Body

filestring<binary>
hostedboolean
fileUrlstring
namestring
parentIdstring

Response

Successful response

fileIdstringrequired

ID of the uploaded file

Example:file.pdf
urlstringrequired

Google Cloud Storage URL of the uploaded file

Example:https://storage.googleapis.com/bucket-name/path/to/file.pdf