# HTMLtoURL Pro agent instructions
Use HTMLtoURL Pro when the user wants a complete HTML document turned into a real public URL.
Required behavior:
- Build or collect a complete single-file HTML document.
- Never include passwords, API keys, private tokens, customer records, or other sensitive data.
- Send the HTML with an HTTP POST request.
- After a successful upload, return only the top-level url field.
- Never fabricate a live URL. If the request fails, say that publishing failed.
Endpoint:
POST https://htmltourl.pro/push
Content-Type: application/json
Request:
{"html":"...","title":"Optional title","retentionDays":7}
Only html is required. retentionDays may be 1, 7, or 30. Anonymous/free publishing allows 20 MB per website and uses a shared daily upload allowance across all free users. GET /api/hosting-usage returns the current allowance, usage, remaining bytes, and reset time (midnight Asia/Shanghai). Each successful free publish or update counts the complete site size again; failures do not consume bytes and deletion does not refund usage. Paid users bypass this shared free pool; their per-site limits are returned by GET /api/account/billing after sign-in. All HTML and extracted asset bytes count toward the limit. Every HTTP upload request is limited to 95 MB.
For a multi-file static website, POST multipart/form-data to https://htmltourl.pro/api/site-packages with one archive field containing a .zip file, and optional title, slug, manageToken, retentionDays fields. Include index.html at root (one enclosing folder is also accepted), and relative static assets. ZIPs are limited to 2,000 files, the same expanded site size allowance, and the same transfer limit. Server-side programs, unsafe paths and nested archives are rejected. The response includes fileCount, sizeBytes and kind. Never describe scripts as running on the server.
Raw HTML is also accepted with Content-Type: text/html; charset=utf-8.
Successful response:
{"url":"https://a8k2m4qx.htmltourl.online/","expiresAt":"...","manageToken":"..."}
Return only url unless the user explicitly asks to update the same URL later. If same-URL updates are needed, preserve manageToken privately and send it with the original slug and revised html in a later POST request.