product:chat

Uploads file

post/uploads/file

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/uploads/file
  • Auth
    • API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
    • or API key in query parameter api_key and API key in header Stream-Auth-Type

Request body multipart/form-data

filestring

file field

Response

Successful response

durationstring required

Duration of the request in milliseconds

filestring

URL to the uploaded asset. Should be used to put to asset_url attachment field

thumb_urlstring

URL of the file thumbnail for supported file formats. Should be put to thumb_url attachment field

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      api operation id UploadFileGlobal removed and replaced with UploadFile