Create media

Creates a new media upload document. This includes a temporary upload policy to allow a file upload through a POST request.

Media uploads

Media uploads require a mutli-part POST request to the URL in the meta.upload.url property in the response object:

  • The request must include as standard form keys the key-value pairs located in the meta.upload.fields property.
  • The request must include the file as the last key under the name file.

Blocked extensions

The following file name extensions are blocked and cannot be used as attachments:

  • .bin
  • .bat
  • .chm
  • .com
  • .cpl
  • .crt
  • .exe
  • .hlp
  • .hta
  • .inf
  • .ins
  • .isp
  • .jse
  • .lnk
  • .mdb
  • .msc
  • .msi
  • .msp
  • .mst
  • .pcd
  • .pif
  • .ps1
  • .reg
  • .scr
  • .sct
  • .shs
  • .vbe
  • .vba
  • .vbs
  • .wsf
  • .wsh
  • .wsl
Language
Authentication
Bearer
Click Try It! to start a request and see the response here!