POST
/
upload
/
{image_type}
Upload Image
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"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Path Parameters

image_type
enum<string>
required
Available options:
logo,
avatar,
banner

Body

multipart/form-data

Response

Image uploaded successfully

The response is of type object.