Images

You can use the API to get or upload images.

Upload a user image

POST https://api.tiledesk.com/v3/images/users

Allows to upload an image with autentication

Headers

Name
Type
Description

Authorization

string

authorization token. Basic Auth or JWT

Content-Type

string

use "multipart/form-data" value

Request Body

Name
Type
Description

file

binary

the image binary file

  {
    "message":"File uploded successfully",
    "filename":"uploads/users/5ebd890292befe0019054973/images/392224bb-0b1e-46b7-a131-183353be7645/test.jpg"
  }

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/test.jpg" https://api.tiledesk.com/v3/images/users

Get the image binary by filename path

GET https://api.tiledesk.com/v3/images

Query Parameters

Name
Type
Description

path

string

the image path in the repository

Headers

Name
Type
Description

Authorization

string

authorization token. Basic Auth or JWT

Example

Last updated

Was this helpful?