Rocket Chat
This section describes the endpoint for a live chat file upload.
/api/v1/livechat/upload/:rid
Uploads a file to a live chat with a valid room ID.
POST
https://<BASE URL>/api/v1/livechat/upload/:rid
Requires a path parameter and an authorised access token.
Path Parameters
Name | Type | Description |
---|---|---|
rid* | String | Defines the live chat room ID. |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Token* | String | Defines the access token for authentication. |
cURL Request
Refer to the following example cURL command that uploads a file from a system to a chat room:
cURL Response
Refer to the following example cURL response for the above request:
Error Codes
Refer to the following error codes that you may encounter while using the cURL request:
Bad request: Invalid syntax. Modify your syntax and try again.
Last updated