curl --request POST \
--url https://haunt.gg/api/imagehost/upload \
--header 'Content-Type: multipart/form-data' \
--form 'key=<string>' \
--form file='@example-file'{
"status": "success",
"url": "https://carti.pics/v82AUOld",
"rawUrl": "https://images.haunt.gg/v82AUOld.jpg",
"data": {
"file": "v82AUOld.jpg",
"fileName": "v82AUOld",
"fileExtension": "jpg",
"fileSize": 13002,
"fileOriginal": "v82AUOld.jpg",
"fileWidth": 735,
"fileHeight": 245
}
}Upload an image file to the image hosting service. Requires your ImageHost API key which can be found in your dashboard.
curl --request POST \
--url https://haunt.gg/api/imagehost/upload \
--header 'Content-Type: multipart/form-data' \
--form 'key=<string>' \
--form file='@example-file'{
"status": "success",
"url": "https://carti.pics/v82AUOld",
"rawUrl": "https://images.haunt.gg/v82AUOld.jpg",
"data": {
"file": "v82AUOld.jpg",
"fileName": "v82AUOld",
"fileExtension": "jpg",
"fileSize": 13002,
"fileOriginal": "v82AUOld.jpg",
"fileWidth": 735,
"fileHeight": 245
}
}Image uploaded successfully
Response status
success URL of the uploaded image
"https://carti.pics/v82AUOld"
Raw URL of the uploaded image without any modifications
"https://images.haunt.gg/v82AUOld.jpg"
Show child attributes
Was this page helpful?