http://localhost:8000/api/image
All routes below are prefixed with this base URL.
Authorization: Bearer
Content-Type: multipart/form-data
Key: file (Type: File)
curl -X POST http://localhost:8000/api/image/upload
-H "Authorization: Bearer YOUR_TOKEN"
-F "file=@image.jpg"
{
"message": "Image uploaded successfully",
"data": {
"imageUrl": "https://res.cloudinary.com/your-image.jpg",
"size": 204800,
"type": "image/jpeg"
}
}
400 → No image uploaded
500 → Internal Server Error