Skip to main content

🗃️ Files uploading

Method for uploading files to e-z.host.

POSThttps://api.e-z.gg/files

Headers

NameTypeDescription
key*StringAPI Key

Request Body

NameTypeDescription
file*BinaryFile you want to upload

Request example

curl -X POST "https://api.e-z.gg/files" \
-H "key: YOUR_API_KEY" \
-F "file=@/path/to/file.png"

Responses

{
"success": true,
"imageUrl": "https://<domain>/<path>/<filename>.png",
"rawUrl": "https://r2.e-z.host/<fileuuid>/<filename>.png",
"deletionUrl": "https://api.e-z.gg/files/delete?key=<filekey>"
}