๐Ÿ“š Image Upload API Documentation

Base URL: https://assets.dokangold.com

GET/health

Check server health status

Example:
curl https://assets.dokangold.com/health
Response:
{"status":"OK","timestamp":"2025-09-16T23:31:29.514Z","uptime":123.45}

GET/api/upload/info

Get server configuration and limits

Headers: X-API-Key: your-api-key

Example:
curl -H "X-API-Key: your-api-key" https://assets.dokangold.com/api/upload/info

POST/api/upload/single

Upload a single image file

Headers: X-API-Key: your-api-key

Body: multipart/form-data with image field

Example:
curl -X POST \
  -H "X-API-Key: your-api-key" \
  -F "[email protected]" \
  https://assets.dokangold.com/api/upload/single
Response includes:
  • Original image URL
  • Generated thumbnails (150x150, 300x300, 600x600)
  • File metadata and optimization info

POST/api/upload/multiple

Upload multiple image files (max 5)

Headers: X-API-Key: your-api-key

Body: multipart/form-data with images field

Example:
curl -X POST \
  -H "X-API-Key: your-api-key" \
  -F "[email protected]" \
  -F "[email protected]" \
  https://assets.dokangold.com/api/upload/multiple

GET/api/upload/file/:filename

Get information about an uploaded file

Headers: X-API-Key: your-api-key

Example:
curl -H "X-API-Key: your-api-key" \
  https://assets.dokangold.com/api/upload/file/1640995200000_a1b2c3d4.jpg

DELETE/api/upload/:filename

Delete an uploaded file and its thumbnails

Headers: X-API-Key: your-api-key

Body: {"confirm": "true"}

Example:
curl -X DELETE \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"confirm": "true"}' \
  https://assets.dokangold.com/api/upload/filename.jpg

๐Ÿ“ File Access

Uploaded files are accessible at:

๐Ÿ”’ Authentication

All API endpoints require authentication via X-API-Key header.

Rate Limit: 100 requests per 15 minutes per IP

๐Ÿ“Š Supported Formats

๐Ÿงช Test Interface | โค๏ธ Health Check