Media

Upload a media file

Upload an image, document, audio, video or archive (up to 64 MB, within the workspace's media storage) to the Media directory and get a public file_url to send with. Only multipart/form-data is read. Always HTTP 200: check status.

post/media/upload/

Request

  • Base URL: https://wbiztool.com/api/v1
  • URL: https://wbiztool.com/api/v1/media/upload/
  • Auth: none required

Response

Uploaded (status: 1) or refused (status: 0). Errors also come back with HTTP 200 and status: 0: client_id is required, api_key is required, client_id must be a valid integer, Invalid API key, Invalid client_id for this API key, Only POST method is supported, media_file is required, File is too large. Maximum size is 64MB. Your file: …MB, File type not supported. Type detected: …, Storage full: …, Error uploading file: ….

OR

Example response

{
  "data": {
    "file_size_display": "242.5 KB",
    "mime_type": "application/pdf"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.