Select an image to upload securely to your server.
| Header | Value |
|---|---|
| x-api-key | Your secret API key (from .env) |
| Field | Type | Description |
|---|---|---|
| file | File | The image to upload (max 2MB, jpg/png/webp) |
{
"success": true,
"url": "https://yourdomain.com/images/uploads/my_pic_123.jpg",
"name": "my_pic_123.jpg"
}
curl -X POST https://yourdomain.com/images/api/upload.php \
-H "x-api-key: YOUR_SECRET_KEY" \
-F "file=@/path/to/image.jpg"