Files
Upload a user file
POST https://api.tiledesk.com/v3/files/users
Allows uploading a file with authentication.
Request body
file (binary): the binary file
Success response (200)
{
"message":"File uploded successfully",
"filename":"uploads/users/5ebd890292befe0019054973/files/27a8e524-d854-4aff-a6c7-84cb02681f34/README.md"
}Example
curl -v -X POST -H 'Content-Type: multipart/form-data' -u [email protected]:123456 -F file=@/Users/andrealeo/dev/chat21/tiledesk-server-dev-org/README.md https://api.tiledesk.com/v3/files/usersGet the binary file as stream by filename path
GET https://api.tiledesk.com/v3/files
Headers
Authorization: authorization token. Basic Auth or JWT
Success response (200)
Example
Download the binary file by filename path
GET https://api.tiledesk.com/v3/files/download
Headers
Authorization: authorization token. Basic Auth or JWT
Success response (200)
Example
Direct links
Upload: https://developer.tiledesk.com/apis/rest-api/files#upload-a-user-file
Headers: https://developer.tiledesk.com/apis/rest-api/files#headers
Request Body: https://developer.tiledesk.com/apis/rest-api/files#request-body
Get file stream: https://developer.tiledesk.com/apis/rest-api/files#get-the-binary-file-as-stream-by-filename-path
Download file: https://developer.tiledesk.com/apis/rest-api/files#download-the-binary-file-by-filename-path
Last updated 2 years ago