POST
/
api
/
v1
/
media
/
upload
{
  "id": "<string>",
  "attachment_type": "image",
  "file_name": "<string>",
  "mime_type": "<string>",
  "file_size": 123,
  "message": "Attachment uploaded successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

message_id
string | null

Optional message ID to link attachment

Body

multipart/form-data
file
file
required

Image file to upload

Response

Successful Response

id
string
required
attachment_type
enum<string>
required
Available options:
image,
video,
audio,
document
file_name
string
required
mime_type
string
required
file_size
integer
required
message
string
default:Attachment uploaded successfully