Skip to main content
POST
/
api
/
upload
Upload image
curl --request POST \
  --url https://public.raze.bot/api/upload \
  --header 'Content-Type: multipart/form-data' \
  --form image='@example-file'
{
  "success": true,
  "url": "https://public.raze.bot/api/uploads/a1b2c3d4-e5f6.png",
  "filename": "a1b2c3d4-e5f6.png",
  "deleteAt": "2026-03-22T12:00:00.000Z"
}

Body

multipart/form-data
image
file
required

Image file (JPEG, PNG, GIF, SVG — max 2MB)

Response

Image uploaded successfully

success
boolean
Example:

true

url
string

Public URL of the uploaded image

Example:

"https://public.raze.bot/api/uploads/abc123.png"

filename
string
Example:

"abc123.png"

deleteAt
string<date-time>

When the file will be automatically deleted