Backend API
Upload an image (logo, avatar, etc.)
cURL
curl --request POST \ --url https://api.wacht.dev/upload/{image_type} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@example-file
{ "url": "https://storage.wacht.dev/images/logo-abc123.png", "size": 45678, "mime_type": "image/png" }
JWT Bearer token authentication using the Authorization header
logo
avatar
banner
Image uploaded successfully
The response is of type object.
object