Endpoint URL
Deploy programmatically by making POST requests to the API handler:
https://yourdomain.com/api.php
1. Deploy Raw Code/HTML (JSON)
Send raw content directly. The file will be hosted as index.html (or matching extension) in an isolated folder.
curl -X POST https://yourdomain.com/api.php \
-H "Content-Type: application/json" \
-d '{
"key": "deploy123",
"code": "<h1>Custom Webpage</h1>",
"extension": "html"
}'
2. Upload Binary File (Multipart/Form-Data)
Host local files (photos, videos, code files, zip) on the server.
curl -X POST https://yourdomain.com/api.php \
-F "key=deploy123" \
-F "file=@/path/to/your/image.png"
Expected Success Response (JSON)
{
"success": true,
"message": "Successfully deployed file.",
"url": "https://yourdomain.com/deploy/12ab34cd56/image.png",
"filename": "image.png",
"unique_id": "12ab34cd56",
"size": 12045
}