DropTheHassle API
DropTheHassle publishes a built site (a folder with index.html) on a free HTTPS link, name.dropthehassle.app, with a claim link. No account and no Node needed for a first publish.
Publish with curl (no Node)
# 1. Ask for a one-time upload ticket (10 minutes). No token: a new site.
# Authorization: Bearer <site_token> updates that site; an account token updates or creates one.
curl -fsS -X POST https://dropthehassle.com/api/v1/upload-tickets \
-H 'Content-Type: application/json' -d '{"name": "my-site"}'
# 2. Zip the BUILT folder (dist, build or out) and send it to the upload_url from step 1.
(cd dist && zip -qr - .) | curl -fsS --data-binary @- \
-H 'Content-Type: application/zip' https://dropthehassle.com/api/v1/upload/<ticket>
# One answer: {"ok": true, "live_url": ..., "version": 1, "claim_url": ..., "site_token": ...}
# or {"ok": false, "error": "..."}. Keep site_token to update the same site later.
With Node, the same in one step: npx -y dropthehassle@latest deploy .. Your AI can do it through the MCP server
(connect). Agents: read llms.txt. Machine-readable: openapi.json.
Your AI can publish and hand you payment links. It can never pay.
Routes
GET | /api/v1/account/tokens | List Tokens Live tokens, newest first. Never the token itself. |
POST | /api/v1/account/tokens | Create Token A new token with a name. The answer is the only time the token is shown. |
PATCH | /api/v1/account/tokens/{token_id} | Rename Token |
DELETE | /api/v1/account/tokens/{token_id} | Revoke Token |
POST | /api/v1/account/tokens/{token_id}/rotate | Rotate Token A new token with the same name. The old one is revoked now and stops working at once. |
POST | /api/v1/ai/backend | Ai Set Backend Backend Linking for deploy scripts/agents: point the site's names at the customer's own backend (or unlink with url=""). Without site_id it first creates a free staging site (with `slug` when given) and links it full-proxy -- a backend-only project goes live in ONE call, and the dashboard's Backend card is already filled in when the human looks. Same validation + honest first probe as the dashboar |
POST | /api/v1/ai/checkout-link | Ai Checkout Link A payment link the agent gives to the human. This route never confirms a payment and never returns a site token, a Checkout session id, or a client secret. After the human pays, the webhook attaches the domain to this site. Anonymous sites are not on an account, so they 404 here; the agent should give the claim link from the upload instead. |
POST | /api/v1/ai/claim | Ai Claim Put an anonymous site (deployed before the AI was connected) on this account, with the claim link from that deploy. Same rules as the claim page: until the site is removed, one claim, never someone else's site. |
POST | /api/v1/ai/deploy | Ai Deploy Publish a built site. `form=1` turns the contact form on in the same step (blok D). With site_id: redeploy to that owned site (updates it in place). Without site_id: if this account has an unexpired reserved address (from "Get an AI code"), the upload fills THAT site instead of creating a second one. Otherwise a fresh free staging site is created, but only after the zip is accepted. A rejection ne |
GET | /api/v1/ai/domains/search | Ai Domain Search Is a name available, and what would it cost? So the AI can propose a REAL free name (or check one the human wants). Read-only: never buys. Same result as the website search, including the same 400/503 mapping. The body never includes raw supplier text. |
GET | /api/v1/ai/inspiration | Ai Inspiration The Site of the Month gallery for an AI asked for design ideas or examples: the gallery URL and the latest confirmed picks. Public data, read-only, no token needed. |
GET | /api/v1/ai/invoices | Ai Invoices Every invoice of the account with its printable link. Read-only. |
POST | /api/v1/ai/invoices/resend | Ai Resend Receipt Email the most recent receipt again to the account email. |
POST | /api/v1/ai/point | Ai Point Point one of the account's own domains at one of its sites (redirect the name to that site's content). Both must be on this account. No money: this only re-serves existing bytes. |
POST | /api/v1/ai/showcase-preference | Ai Showcase Preference May this account's sites be considered for Site of the Month? (Permission is still asked before a site is featured.) |
GET | /api/v1/ai/showcase/badge | Ai Showcase Badge Badge for an agent. site_id must be a site on this account. A host looks up any confirmed winner (the badge is public). With neither, return every badge this account has earned. |
GET | /api/v1/ai/sites | Ai Sites Every site on the account, with its live URL + domains, so the AI knows what already exists (and which site_id to deploy to / point a name at). |
GET | /api/v1/ai/sites/{host}/award-readiness | Ai Award Readiness What is still missing before this site can be considered for an award. Account-scoped. Each check carries a fix hint, including the ones that already pass. |
GET | /api/v1/ai/sites/{site_id}/analytics | Ai Site Analytics How the site is doing (engineering/site-analytics.md): visitors, page views, the time series and the coarse cookieless breakdowns (devices, pages, referrers, countries), plus a one-sentence plain-English summary so the AI can answer "how did my site do" directly. Read-only; the numbers come from the same builder the dashboard uses, so they can never disagree. |
POST | /api/v1/ai/sites/{site_id}/analytics-level | Ai Analytics Level Standard (cookieless, no banner) or enhanced statistics (adds a consent banner for visitors and the click heatmap). Enhanced changes what every visitor sees, so it needs the human's yes. |
POST | /api/v1/ai/sites/{site_id}/autorenew | Ai Site Autorenew Turn auto-renew OFF for a registered name (confirm=true after the human's yes). Turning it ON commits a future charge, so that stays the human's click in the dashboard. |
POST | /api/v1/ai/sites/{site_id}/backend/test | Ai Backend Test One real request to the linked backend, so the AI can tell whether it answers. |
POST | /api/v1/ai/sites/{site_id}/connect-domain | Ai Connect Domain Use a domain the human already owns elsewhere, free, no transfer: they set an A and a TXT record at their registrar and we serve the site on it once it points here. A site that already has a domain gets this one as an extra family name, which 301-redirects to the main name. Calling again re-checks. |
POST | /api/v1/ai/sites/{site_id}/delete | Ai Site Delete Remove a site for good (files and history). The dashboard's own rules apply: a registered domain must be settled first (auto-renew off, or transfer it out) and email must be off. Never for a suspended site. |
GET | /api/v1/ai/sites/{site_id}/deployments | Ai Site Deployments The version history of a site on this account, newest first. Read-only. |
POST | /api/v1/ai/sites/{site_id}/domains/make-primary | Ai Make Primary Make one of the site's names its main one (it serves the site; search engines and shares use it). The other family names 301-redirect to it. |
POST | /api/v1/ai/sites/{site_id}/domains/split | Ai Split Domain Take a name out of this site's family onto its own new site (a coming-soon page until something is deployed or pointed there). Undo with point_domain. |
GET | /api/v1/ai/sites/{site_id}/email | Ai Site Email The site's email: addresses, status, monthly total, and the next step. Never a password. |
POST | /api/v1/ai/sites/{site_id}/email/checkout | Ai Email Checkout A payment link that turns the inbox on (€5 / $5 a month). The human opens and pays it; the mailbox is set up by the payment webhook. Always the hosted page: this route never starts a subscription on a saved card, never resumes a paused one, and never confirms a payment. |
POST | /api/v1/ai/sites/{site_id}/email/forward | Ai Email Forward Off for AI callers [hotfix 2026-10-02]: every extra address, forward-only too, is a €3 / $3 a month item charged to the saved card (mailservice.add_address). An AI must never start a charge, so this refuses until it returns with the honest price, confirm=true and a daily cap. |
POST | /api/v1/ai/sites/{site_id}/email/main-inbox | Ai Email Main Inbox Off for AI callers [hotfix 2026-10-02]: it can send ALL mail of the domain (password resets too) to an outside address. It returns once it has confirm=true and a notice mail to the account email. |
POST | /api/v1/ai/sites/{site_id}/email/off | Ai Email Off Turn email off the dashboard way: it stops renewing and keeps working until the paid month ends. |
POST | /api/v1/ai/sites/{site_id}/email/remove | Ai Email Remove Remove one address. A mailbox's stored mail goes with it. The main inbox cannot be removed here. |
POST | /api/v1/ai/sites/{site_id}/email/rename-main | Ai Email Rename Main Rename the main inbox (e.g. hello@ to info@). Same mailbox, same mail, same price. |
POST | /api/v1/ai/sites/{site_id}/feedback | Ai Feedback Send the DropTheHassle team a note (what is missing, what went wrong), about this site. |
POST | /api/v1/ai/sites/{site_id}/form | Ai Enable Form Turn lead collection on or off. Claimed sites only. Does not charge. |
GET | /api/v1/ai/sites/{site_id}/form-submissions | Ai Form Submissions Recent messages from the site's contact form. Read-only. |
POST | /api/v1/ai/sites/{site_id}/google-business | Ai Google Business Ask the team to set up a Google Business Profile for this site (the dashboard's concierge request). |
POST | /api/v1/ai/sites/{site_id}/image | Ai Site Image Set or remove the browser icon (favicon) or the share preview image (og:image). |
POST | /api/v1/ai/sites/{site_id}/indexing | Ai Set Indexing Ask search engines to skip a claimed site, or to list it again. Does not charge. |
GET | /api/v1/ai/sites/{site_id}/live-check | Ai Live Check Does the site's address point here, is its certificate valid, does it load: checked for real now. |
POST | /api/v1/ai/sites/{site_id}/owner-verification/resend | Ai Owner Verification Send the registry's owner-confirmation email again (bought or transferred names must confirm the owner address, or the registry can pause the name). |
PUT | /api/v1/ai/sites/{site_id}/password | Set Site Password |
DELETE | /api/v1/ai/sites/{site_id}/password | Clear Site Password |
GET | /api/v1/ai/sites/{site_id}/renewal | Ai Site Renewal Renewal and auto-renew facts for every domain on the site. Read-only. |
POST | /api/v1/ai/sites/{site_id}/rollback | Ai Site Rollback Restore an earlier version: the one named by deployment_id, or the previous one. Reversible: the replaced version stays kept. Refused for a suspended or inactive site. |
POST | /api/v1/ai/sites/{site_id}/settings | Ai Site Settings How the site looks in search results and when shared (title, description, colour), site-wide or for one name of the family. Same rule as the dashboard: unlocked once the site has its own domain. |
GET | /api/v1/ai/sites/{site_id}/status | Ai Site Status Everything the dashboard card shows, in one read: state, links, recent deploys, whether a rollback target exists, the domains with their renewal facts, and email. Read-only. |
POST | /api/v1/ai/sites/{site_id}/transfer-out | Ai Transfer Out Start moving a registered domain to another registrar. Same concierge step as the dashboard: auto-renew goes off right away and the transfer code is emailed to the account within a day. |
POST | /api/v1/ai/subdomain | Ai Subdomain Rename a site's free <label>.dropthehassle.app link. Changing a public URL is an owner decision, so the AI must pass confirm=true ONLY after the human explicitly approved the new name -- without it this refuses with instructions (same guardrail idea as the no-money rule). Safe to change: since the rename-301 fix the old link keeps redirecting to the new name. |
GET | /api/v1/ai/whoami | Ai Whoami A cheap tool the AI calls first to confirm the token works + who it acts for. |
GET | /api/v1/domains/quotes | Quotes |
GET | /api/v1/domains/search | Search |
GET | /api/v1/domains/trademark | Trademark Check Live identical or very similar word marks for a label. Read-only. Not legal advice. |
POST | /api/v1/feedback | Post Open Feedback A note to the team. No account and no site needed; reply_to is where the answer goes. |
POST | /api/v1/sites | Create Site Drop a .zip of a built site. It goes live on a free staging host. |
POST | /api/v1/sites/{site_id}/claim-mail | Post Claim Mail Send claim mail 1 for an unclaimed site. The site token is the key. The link still claims it. |
POST | /api/v1/sites/{site_id}/deploy | Redeploy Site Drop a new .zip onto an EXISTING site (site-token scoped): staging + the live domain update. On a full-proxy site (Backend Linking) the upload needs ?confirm_switch=true -- see _redeploy. `form=1` turns the contact form on in the same step. |
GET | /api/v1/subdomain-available | Subdomain Available Live check for the 'choose your <name>.dropthehassle.app' field: is the label valid and free? |
POST | /api/v1/upload-tickets | Create Ticket A ticket for the curl route (no Node). Authorization: an account token updates or creates a site on the account; a site token updates that site; none creates a new anonymous site (claim link in the answer). |
POST | /api/v1/upload/{ticket} | Upload With Ticket Publish with a ticket. Body: a zip (curl --data-binary), or multipart `file` plus `manifest` (the CLI's changed files only). One answer: {ok, live_url, version, ...} or {ok: false, error}. |
POST | /api/v1/upload/{ticket}/manifest | Upload Manifest Which files must travel: every path whose sha256 differs from the live file. Does not use the ticket. |
Stuck?
Email info@dropthehassle.com or open /support.