Upload message media
POST
https://api.flownally.com/v1/media/uploadsUploads a file and returns a mediaId to send it with. Pass it as
content.media.mediaId when you send media content. Empty files and HTML, XML or SVG
content return 400 with code gateway_media_upload_unsupported_type.
Authorization
Required scopes
- message:create
Allowed roles
- owner
- admin
- agent
Upload media for a future message send.
Body parameters
Send a multipart/form-data body. The body is required.
- Name
file- Type
- string
- required
Image, document, video, or audio file to make available for message sending.
Responses
- 201Media uploadedapplication/json
- defaultErrorapplication/json
Related schemas
Generated from the API spec.