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

Documentation Index

Fetch the complete documentation index at: https://docs.raze.bot/llms.txt

Use this file to discover all available pages before exploring further.

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.sh/api/uploads/abc123.png"

filename
string
Example:

"abc123.png"

deleteAt
string<date-time>

When the file will be automatically deleted