Upload an image file with multimodal feature flag check
cURL
curl --request POST \ --url https://api.example.com/api/v1/media/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "id": "<string>", "attachment_type": "image", "file_name": "<string>", "mime_type": "<string>", "file_size": 123, "message": "Attachment uploaded successfully" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Optional message ID to link attachment
Image file to upload
Successful Response
image
video
audio
document