🤖 MG Bot API Documentation v1.0

🔒 Authentication Required: All endpoints (except /status) require the x-api-key header. Get your key from the Bot Admin Panel.
GET /api/status

Check API health and get APK download URL.

Response: { "status": "ok", "apk_url": "..." }
GET /api/products

Get list of all products.

Query Params: ?category=Nom (Optional filter)

GET /api/orders/:userId

Get order history for a specific user.

POST /api/orders

Create a new order from external app.

Body: { "userId": 123, "items": [...], "total": 50000, "location": {...} }
GET /api/image/:fileId

Proxy endpoint to view Telegram images.