Skip to Content
Harnix
API reference

Upload attachment

POST
/v2/conversations/{conversation_id}/attachments

Path Parameters

conversation_id*Conversation Id
Formatuuid

Header Parameters

authorization?string|null
origin?string|null

Request Body

multipart/form-data
  1. body
file*File

Response Body

Successful Response

application/json
  1. response
byte_size*Byte Size
height*Height
id*Id
Formatuuid
media_type*Media Type
original_height?integer|null
original_width?integer|null
width*Width
Example Request
curl -X POST 'https://api.harnix.vn/v2/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments' \  -F 'file=string'
Example Response
{  "byte_size": 0,  "height": 0,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "media_type": "string",  "original_height": 0,  "original_width": 0,  "width": 0}