cURL
curl --request POST \ --url https://haunt.gg/api/imagehost/upload \ --header 'Content-Type: multipart/form-data' \ --form 'key=<string>' \ --form file=@example-file
{ "success": true, "url": "<string>", "filename": "<string>", "size": 123, "type": "<string>" }
Upload an image file to the image hosting service. Requires your ImageHost API key which can be found in your dashboard.
Image uploaded successfully
The response is of type object.
object
Was this page helpful?