Skip to content

Upload a file

POSThttps://api.vidmoat.com/v1/media/uploads
Bearer tokenScope media.writeupload capTry it in the playground

Upload a file directly, as multipart form data, up to 32 MB per request and within your plan's upload and storage limits. For larger files, import from a URL.

Form fields#

  • filefilerequired
    The video, image or audio file.

Response#

Returns 201.

Response fields#

  • mediaobject
    The stored file.
    Show 7 child fields
    • urlstring
      Use as a clip src.
    • filenamestring
      Stored name.
    • bytesinteger
      Size.
    • deduplicatedboolean
      true when you had already uploaded the same bytes; the existing file is returned.
    • probeobject or null
      { width, height, fps, duration, hasAudio }.
    • convertedobject
      Present when video the browser cannot play (HEVC, for example) was converted: { from, to }.
    • warningstring
      Present when that conversion failed.
  • hintstring
    What to do with it.

Errors#

Besides the errors any request can get (authentication, rate limits):

StatusCodeWhen
400invalid_requestThe body is not multipart, or file is missing or empty.
413payload_too_largeOver 32 MB, or over the plan's upload cap.
413quota_exceededCloud storage on the plan is full.