Skip to main content
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
file
file
required

Image file (PNG, JPG, GIF)

Response

Image uploaded successfully

url
string<uri>
Example:

"https://storage.wacht.dev/images/logo-abc123.png"

size
integer
Example:

45678

mime_type
string
Example:

"image/png"