Chat
Upload attachment
Upload a new file/photo/video to the chat room
post/chat/{chatRoom}/upload
Request
- Base URL: http://bonzo.site/api/v3
- URL: http://bonzo.site/api/v3/chat/{chatRoom}/upload
- Auth: HTTP bearer
Path parameters
chatRoomstring required
Example:1
Response
Success
Example response
{
"data": {
"content": "Message content",
"created_at": "2022-01-01T01:00:00.000000Z",
"updated_at": "2022-01-01T01:00:00.000000Z",
"sender": {
"avatar_url": "https://via.placeholder.com/128x128",
"email": "johndoe@example.com",
"phone": "1112223333",
"name": "John Doe"
},
"attachment": {
"display_name": "my_avatar",
"mime_type": "image/jpeg",
"disk": "s3",
"url": "https://via.placeholder.com/128x128",
"additional_data": "null",
"extension": "jpg"
},
"reaction": {
"reaction": "thumb up",
"user": {
"name": "John Doe",
"email": "johndoe@example.com",
"phone": "1112223333",
"avatar_url": "https://via.placeholder.com/128x128"
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.