{"openapi":"3.1.0","info":{"title":"DropTheHassle API","version":"1","description":"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. Agents: https://dropthehassle.com/llms.txt. MCP: https://dropthehassle.com/mcp."},"servers":[{"url":"https://dropthehassle.com"}],"paths":{"/api/v1/sites":{"post":{"tags":["sites"],"summary":"Create Site","description":"Drop a .zip of a built site. It goes live on a free staging host.\n\n`form=1` turns the contact form on in the same step (blok D), also without an account: the\nmessages are kept for the owner (and mailed to the claim email when there is one).\n\nSigned in: the site belongs to that account immediately.\nSigned out (DTH-025, David 2026-09-26): the site goes live right away as trust_tier=anon,\nwith a claim link that works until the site is removed. `email` is optional on a first deploy\nwithout an account (David GO, 11 Oct 2026). When the caller sends one, it is where the claim\nlink and up to 3 reminders go. The web drop still asks. It is validated (format, length, a fast MX lookup\nthat fails open; while the legacy kill-switch requires an email, also the known-typo map: a typo is\nrefused once with a suggestion, the same address again or `email_confirmed=1` goes through), stored\non the site only, never public, cleared on claim and deleted with the site. A signed-in drop ignores\nit. The site row is created only after the zip passes the guard, so a rejection never leaves an empty\n`uploading` site.\n\n`client` is `cli` or `mcp` for those channels (anonymous measurement). Anything else is the browser.\n`source` is an optional JSON blob (utm/ref). It is stored without an IP and without the email.\n`name` is an optional free-address label (lisas-bakery). When it is omitted, the name comes from\nthe page title (or another signal in the upload), and a random label is only the fallback.\nA name you ask for is kept or refused. It never silently becomes a random one.","operationId":"create_site_api_v1_sites_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_site_api_v1_sites_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Site Api V1 Sites Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{site_id}/deploy":{"post":{"tags":["sites"],"summary":"Redeploy Site","description":"Drop a new .zip onto an EXISTING site (site-token scoped): staging + the live domain update.\nOn a full-proxy site (Backend Linking) the upload needs ?confirm_switch=true -- see _redeploy.\n`form=1` turns the contact form on in the same step.","operationId":"redeploy_site_api_v1_sites__site_id__deploy_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"confirm_switch","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Confirm Switch"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_redeploy_site_api_v1_sites__site_id__deploy_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Redeploy Site Api V1 Sites  Site Id  Deploy Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{site_id}/claim-mail":{"post":{"tags":["sites"],"summary":"Post Claim Mail","description":"Send claim mail 1 for an unclaimed site. The site token is the key. The link still claims it.","operationId":"post_claim_mail_api_v1_sites__site_id__claim_mail_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimMailBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Claim Mail Api V1 Sites  Site Id  Claim Mail Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/feedback":{"post":{"tags":["sites"],"summary":"Post Open Feedback","description":"A note to the team. No account and no site needed; reply_to is where the answer goes.","operationId":"post_open_feedback_api_v1_feedback_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenFeedbackBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Open Feedback Api V1 Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subdomain-available":{"get":{"tags":["sites"],"summary":"Subdomain Available","description":"Live check for the 'choose your <name>.dropthehassle.app' field: is the label valid and free?\n\nThe public check uses the anonymous rules (at least 3 characters, plus the blocklist), so the\nupload field and the dashboard agree with a signed-out deploy.","operationId":"subdomain_available_api_v1_subdomain_available_get","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Subdomain Available Api V1 Subdomain Available Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/password":{"put":{"tags":["sites"],"summary":"Set Site Password","operationId":"set_site_password_api_v1_ai_sites__site_id__password_put","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Site Password Api V1 Ai Sites  Site Id  Password Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sites"],"summary":"Clear Site Password","operationId":"clear_site_password_api_v1_ai_sites__site_id__password_delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Clear Site Password Api V1 Ai Sites  Site Id  Password Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/domains/search":{"get":{"tags":["domains"],"summary":"Search","operationId":"search_api_v1_domains_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"fast","in":"query","required":false,"schema":{"type":"string","default":"","title":"Fast"}},{"name":"ideas","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Ideas"}},{"name":"suggest","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Suggest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/domains/trademark":{"get":{"tags":["domains"],"summary":"Trademark Check","description":"Live identical or very similar word marks for a label. Read-only. Not legal advice.","operationId":"trademark_check_api_v1_domains_trademark_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"intended_use","in":"query","required":false,"schema":{"type":"string","default":"","title":"Intended Use"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/domains/quotes":{"get":{"tags":["domains"],"summary":"Quotes","operationId":"quotes_api_v1_domains_quotes_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Q"}},{"name":"fast","in":"query","required":false,"schema":{"type":"string","default":"","title":"Fast"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/whoami":{"get":{"tags":["ai"],"summary":"Ai Whoami","description":"A cheap tool the AI calls first to confirm the token works + who it acts for.","operationId":"ai_whoami_api_v1_ai_whoami_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Whoami Api V1 Ai Whoami Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites":{"get":{"tags":["ai"],"summary":"Ai Sites","description":"Every site on the account, with its live URL + domains, so the AI knows what already exists\n(and which site_id to deploy to / point a name at).","operationId":"ai_sites_api_v1_ai_sites_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Sites Api V1 Ai Sites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/domains/search":{"get":{"tags":["ai"],"summary":"Ai Domain Search","description":"Is a name available, and what would it cost? So the AI can propose a REAL free name (or check\none the human wants). Read-only: never buys. Same result as the website search, including the\nsame 400/503 mapping. The body never includes raw supplier text.","operationId":"ai_domain_search_api_v1_ai_domains_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/checkout-link":{"post":{"tags":["ai"],"summary":"Ai Checkout Link","description":"A payment link the agent gives to the human. This route never confirms a payment and never\nreturns a site token, a Checkout session id, or a client secret. After the human pays, the\nwebhook attaches the domain to this site. Anonymous sites are not on an account, so they 404\nhere; the agent should give the claim link from the upload instead.","operationId":"ai_checkout_link_api_v1_ai_checkout_link_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCheckoutLink"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Checkout Link Api V1 Ai Checkout Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/point":{"post":{"tags":["ai"],"summary":"Ai Point","description":"Point one of the account's own domains at one of its sites (redirect the name to that site's\ncontent). Both must be on this account. No money: this only re-serves existing bytes.","operationId":"ai_point_api_v1_ai_point_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiPoint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Point Api V1 Ai Point Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/subdomain":{"post":{"tags":["ai"],"summary":"Ai Subdomain","description":"Rename a site's free <label>.dropthehassle.app link. Changing a public URL is an owner\ndecision, so the AI must pass confirm=true ONLY after the human explicitly approved the new\nname -- without it this refuses with instructions (same guardrail idea as the no-money rule).\nSafe to change: since the rename-301 fix the old link keeps redirecting to the new name.","operationId":"ai_subdomain_api_v1_ai_subdomain_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiSubdomain"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Subdomain Api V1 Ai Subdomain Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/deploy":{"post":{"tags":["ai"],"summary":"Ai Deploy","description":"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).\nWithout site_id: if this account has an unexpired reserved address (from \"Get an AI code\"), the\nupload fills THAT site instead of creating a second one. Otherwise a fresh free staging site is\ncreated, but only after the zip is accepted. A rejection never leaves an `uploading` row.\n`slug` (query) or `name` (form) names a brand-new address. A taken or invalid name is refused\nwith free suggestions. It is never replaced with a random one. With no name and no reserved\naddress, the name comes from the page title. Free only: the AI can never buy a name.\n\nThe guard is the same one the browser and the CLI use. If the zip is a project that already\ncontains dist/, build/ or out/ with an index.html, that folder is what goes live. Otherwise the\nerror says the exact next step (run npm run build and upload the dist/ folder).","operationId":"ai_deploy_api_v1_ai_deploy_post","parameters":[{"name":"site_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"}},{"name":"slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},{"name":"confirm_switch","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Confirm Switch"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ai_deploy_api_v1_ai_deploy_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Deploy Api V1 Ai Deploy Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/backend":{"post":{"tags":["ai"],"summary":"Ai Set Backend","description":"Backend Linking for deploy scripts/agents: point the site's names at the customer's own\nbackend (or unlink with url=\"\"). Without site_id it first creates a free staging site (with\n`slug` when given) and links it full-proxy -- a backend-only project goes live in ONE call, and\nthe dashboard's Backend card is already filled in when the human looks. Same validation + honest\nfirst probe as the dashboard PUT; account-token scoped, and it can never spend money.","operationId":"ai_set_backend_api_v1_ai_backend_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiBackendBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Set Backend Api V1 Ai Backend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{host}/award-readiness":{"get":{"tags":["ai"],"summary":"Ai Award Readiness","description":"What is still missing before this site can be considered for an award. Account-scoped.\nEach check carries a fix hint, including the ones that already pass.","operationId":"ai_award_readiness_api_v1_ai_sites__host__award_readiness_get","parameters":[{"name":"host","in":"path","required":true,"schema":{"type":"string","title":"Host"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Award Readiness Api V1 Ai Sites  Host  Award Readiness Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/analytics":{"get":{"tags":["ai"],"summary":"Ai Site Analytics","description":"How the site is doing (engineering/site-analytics.md): visitors, page views, the time series\nand the coarse cookieless breakdowns (devices, pages, referrers, countries), plus a one-sentence\nplain-English summary so the AI can answer \"how did my site do\" directly. Read-only; the numbers\ncome from the same builder the dashboard uses, so they can never disagree.","operationId":"ai_site_analytics_api_v1_ai_sites__site_id__analytics_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Period"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Analytics Api V1 Ai Sites  Site Id  Analytics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/status":{"get":{"tags":["ai"],"summary":"Ai Site Status","description":"Everything the dashboard card shows, in one read: state, links, recent deploys, whether a\nrollback target exists, the domains with their renewal facts, and email. Read-only.","operationId":"ai_site_status_api_v1_ai_sites__site_id__status_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Status Api V1 Ai Sites  Site Id  Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/renewal":{"get":{"tags":["ai"],"summary":"Ai Site Renewal","description":"Renewal and auto-renew facts for every domain on the site. Read-only.","operationId":"ai_site_renewal_api_v1_ai_sites__site_id__renewal_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Renewal Api V1 Ai Sites  Site Id  Renewal Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/autorenew":{"post":{"tags":["ai"],"summary":"Ai Site Autorenew","description":"Turn auto-renew OFF for a registered name (confirm=true after the human's yes). Turning it ON\ncommits a future charge, so that stays the human's click in the dashboard.","operationId":"ai_site_autorenew_api_v1_ai_sites__site_id__autorenew_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAutorenew"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Autorenew Api V1 Ai Sites  Site Id  Autorenew Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/rollback":{"post":{"tags":["ai"],"summary":"Ai Site Rollback","description":"Restore an earlier version: the one named by deployment_id, or the previous one. Reversible:\nthe replaced version stays kept. Refused for a suspended or inactive site.","operationId":"ai_site_rollback_api_v1_ai_sites__site_id__rollback_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiRollback","default":{"confirm":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Rollback Api V1 Ai Sites  Site Id  Rollback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/deployments":{"get":{"tags":["ai"],"summary":"Ai Site Deployments","description":"The version history of a site on this account, newest first. Read-only.","operationId":"ai_site_deployments_api_v1_ai_sites__site_id__deployments_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Deployments Api V1 Ai Sites  Site Id  Deployments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/delete":{"post":{"tags":["ai"],"summary":"Ai Site Delete","description":"Remove a site for good (files and history). The dashboard's own rules apply: a registered domain\nmust be settled first (auto-renew off, or transfer it out) and email must be off. Never for a\nsuspended site.","operationId":"ai_site_delete_api_v1_ai_sites__site_id__delete_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiConfirm","default":{"confirm":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Delete Api V1 Ai Sites  Site Id  Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/transfer-out":{"post":{"tags":["ai"],"summary":"Ai Transfer Out","description":"Start moving a registered domain to another registrar. Same concierge step as the dashboard: auto-renew\ngoes off right away and the transfer code is emailed to the account within a day.","operationId":"ai_transfer_out_api_v1_ai_sites__site_id__transfer_out_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiTransferOut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Transfer Out Api V1 Ai Sites  Site Id  Transfer Out Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/email":{"get":{"tags":["ai"],"summary":"Ai Site Email","description":"The site's email: addresses, status, monthly total, and the next step. Never a password.","operationId":"ai_site_email_api_v1_ai_sites__site_id__email_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Email Api V1 Ai Sites  Site Id  Email Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/email/checkout":{"post":{"tags":["ai"],"summary":"Ai Email Checkout","description":"A payment link that turns the inbox on (€5 / $5 a month). The human opens and pays it; the\nmailbox is set up by the payment webhook. Always the hosted page: this route never starts a\nsubscription on a saved card, never resumes a paused one, and never confirms a payment.","operationId":"ai_email_checkout_api_v1_ai_sites__site_id__email_checkout_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiEmailCheckout"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Email Checkout Api V1 Ai Sites  Site Id  Email Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/email/forward":{"post":{"tags":["ai"],"summary":"Ai Email Forward","description":"Off for AI callers [hotfix 2026-10-02]: every extra address, forward-only too, is a €3 / $3 a month item\ncharged to the saved card (mailservice.add_address). An AI must never start a charge, so this refuses\nuntil it returns with the honest price, confirm=true and a daily cap.","operationId":"ai_email_forward_api_v1_ai_sites__site_id__email_forward_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiEmailForward"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Email Forward Api V1 Ai Sites  Site Id  Email Forward Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/inspiration":{"get":{"tags":["ai"],"summary":"Ai Inspiration","description":"The Site of the Month gallery for an AI asked for design ideas or examples: the gallery URL and\nthe latest confirmed picks. Public data, read-only, no token needed.","operationId":"ai_inspiration_api_v1_ai_inspiration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ai Inspiration Api V1 Ai Inspiration Get"}}}}}}},"/api/v1/ai/sites/{site_id}/connect-domain":{"post":{"tags":["ai"],"summary":"Ai Connect Domain","description":"Use a domain the human already owns elsewhere, free, no transfer: they set an A and a TXT record at their\nregistrar and we serve the site on it once it points here. A site that already has a domain gets\nthis one as an extra family name, which 301-redirects to the main name. Calling again re-checks.","operationId":"ai_connect_domain_api_v1_ai_sites__site_id__connect_domain_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiConnectDomain"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Connect Domain Api V1 Ai Sites  Site Id  Connect Domain Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/domains/make-primary":{"post":{"tags":["ai"],"summary":"Ai Make Primary","description":"Make one of the site's names its main one (it serves the site; search engines and shares use it).\nThe other family names 301-redirect to it.","operationId":"ai_make_primary_api_v1_ai_sites__site_id__domains_make_primary_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiDomainConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Make Primary Api V1 Ai Sites  Site Id  Domains Make Primary Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/domains/split":{"post":{"tags":["ai"],"summary":"Ai Split Domain","description":"Take a name out of this site's family onto its own new site (a coming-soon page until something is\ndeployed or pointed there). Undo with point_domain.","operationId":"ai_split_domain_api_v1_ai_sites__site_id__domains_split_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiDomainConfirm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Split Domain Api V1 Ai Sites  Site Id  Domains Split Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/owner-verification/resend":{"post":{"tags":["ai"],"summary":"Ai Owner Verification","description":"Send the registry's owner-confirmation email again (bought or transferred names must confirm the\nowner address, or the registry can pause the name).","operationId":"ai_owner_verification_api_v1_ai_sites__site_id__owner_verification_resend_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiConnectDomain"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Owner Verification Api V1 Ai Sites  Site Id  Owner Verification Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/live-check":{"get":{"tags":["ai"],"summary":"Ai Live Check","description":"Does the site's address point here, is its certificate valid, does it load: checked for real now.","operationId":"ai_live_check_api_v1_ai_sites__site_id__live_check_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Live Check Api V1 Ai Sites  Site Id  Live Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/backend/test":{"post":{"tags":["ai"],"summary":"Ai Backend Test","description":"One real request to the linked backend, so the AI can tell whether it answers.","operationId":"ai_backend_test_api_v1_ai_sites__site_id__backend_test_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Backend Test Api V1 Ai Sites  Site Id  Backend Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/settings":{"post":{"tags":["ai"],"summary":"Ai Site Settings","description":"How the site looks in search results and when shared (title, description, colour), site-wide or for\none name of the family. Same rule as the dashboard: unlocked once the site has its own domain.","operationId":"ai_site_settings_api_v1_ai_sites__site_id__settings_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Settings Api V1 Ai Sites  Site Id  Settings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/image":{"post":{"tags":["ai"],"summary":"Ai Site Image","description":"Set or remove the browser icon (favicon) or the share preview image (og:image).","operationId":"ai_site_image_api_v1_ai_sites__site_id__image_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiImage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Site Image Api V1 Ai Sites  Site Id  Image Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/analytics-level":{"post":{"tags":["ai"],"summary":"Ai Analytics Level","description":"Standard (cookieless, no banner) or enhanced statistics (adds a consent banner for visitors and\nthe click heatmap). Enhanced changes what every visitor sees, so it needs the human's yes.","operationId":"ai_analytics_level_api_v1_ai_sites__site_id__analytics_level_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAnalyticsLevel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Analytics Level Api V1 Ai Sites  Site Id  Analytics Level Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/indexing":{"post":{"tags":["ai"],"summary":"Ai Set Indexing","description":"Ask search engines to skip a claimed site, or to list it again. Does not charge.","operationId":"ai_set_indexing_api_v1_ai_sites__site_id__indexing_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiIndexing"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Set Indexing Api V1 Ai Sites  Site Id  Indexing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/form":{"post":{"tags":["ai"],"summary":"Ai Enable Form","description":"Turn lead collection on or off. Claimed sites only. Does not charge.","operationId":"ai_enable_form_api_v1_ai_sites__site_id__form_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiLeadForm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Enable Form Api V1 Ai Sites  Site Id  Form Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/form-submissions":{"get":{"tags":["ai"],"summary":"Ai Form Submissions","description":"Recent messages from the site's contact form. Read-only.","operationId":"ai_form_submissions_api_v1_ai_sites__site_id__form_submissions_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Form Submissions Api V1 Ai Sites  Site Id  Form Submissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/claim":{"post":{"tags":["ai"],"summary":"Ai Claim","description":"Put an anonymous site (deployed before the AI was connected) on this account, with the claim link\nfrom that deploy. Same rules as the claim page: until the site is removed, one claim, never someone else's site.","operationId":"ai_claim_api_v1_ai_claim_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiClaim"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Claim Api V1 Ai Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/invoices":{"get":{"tags":["ai"],"summary":"Ai Invoices","description":"Every invoice of the account with its printable link. Read-only.","operationId":"ai_invoices_api_v1_ai_invoices_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Invoices Api V1 Ai Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/invoices/resend":{"post":{"tags":["ai"],"summary":"Ai Resend Receipt","description":"Email the most recent receipt again to the account email.","operationId":"ai_resend_receipt_api_v1_ai_invoices_resend_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Resend Receipt Api V1 Ai Invoices Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/email/remove":{"post":{"tags":["ai"],"summary":"Ai Email Remove","description":"Remove one address. A mailbox's stored mail goes with it. The main inbox cannot be removed here.","operationId":"ai_email_remove_api_v1_ai_sites__site_id__email_remove_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAddress"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Email Remove Api V1 Ai Sites  Site Id  Email Remove Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/email/off":{"post":{"tags":["ai"],"summary":"Ai Email Off","description":"Turn email off the dashboard way: it stops renewing and keeps working until the paid month ends.","operationId":"ai_email_off_api_v1_ai_sites__site_id__email_off_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiConfirm","default":{"confirm":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Email Off Api V1 Ai Sites  Site Id  Email Off Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/email/main-inbox":{"post":{"tags":["ai"],"summary":"Ai Email Main Inbox","description":"Off for AI callers [hotfix 2026-10-02]: it can send ALL mail of the domain (password resets too) to\nan outside address. It returns once it has confirm=true and a notice mail to the account email.","operationId":"ai_email_main_inbox_api_v1_ai_sites__site_id__email_main_inbox_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiMainInbox"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Email Main Inbox Api V1 Ai Sites  Site Id  Email Main Inbox Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/email/rename-main":{"post":{"tags":["ai"],"summary":"Ai Email Rename Main","description":"Rename the main inbox (e.g. hello@ to info@). Same mailbox, same mail, same price.","operationId":"ai_email_rename_main_api_v1_ai_sites__site_id__email_rename_main_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiRenameMain"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Email Rename Main Api V1 Ai Sites  Site Id  Email Rename Main Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/showcase-preference":{"post":{"tags":["ai"],"summary":"Ai Showcase Preference","description":"May this account's sites be considered for Site of the Month? (Permission is still asked before a\nsite is featured.)","operationId":"ai_showcase_preference_api_v1_ai_showcase_preference_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiFeatured"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Showcase Preference Api V1 Ai Showcase Preference Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/feedback":{"post":{"tags":["ai"],"summary":"Ai Feedback","description":"Send the DropTheHassle team a note (what is missing, what went wrong), about this site.","operationId":"ai_feedback_api_v1_ai_sites__site_id__feedback_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiFeedback"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Feedback Api V1 Ai Sites  Site Id  Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/sites/{site_id}/google-business":{"post":{"tags":["ai"],"summary":"Ai Google Business","description":"Ask the team to set up a Google Business Profile for this site (the dashboard's concierge request).","operationId":"ai_google_business_api_v1_ai_sites__site_id__google_business_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Google Business Api V1 Ai Sites  Site Id  Google Business Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/showcase/badge":{"get":{"tags":["showcase"],"summary":"Ai Showcase Badge","description":"Badge for an agent. site_id must be a site on this account. A host looks up any confirmed\nwinner (the badge is public). With neither, return every badge this account has earned.","operationId":"ai_showcase_badge_api_v1_ai_showcase_badge_get","parameters":[{"name":"site_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Site Id"}},{"name":"host","in":"query","required":false,"schema":{"type":"string","default":"","title":"Host"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ai Showcase Badge Api V1 Ai Showcase Badge Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/upload/{ticket}/manifest":{"post":{"tags":["upload"],"summary":"Upload Manifest","description":"Which files must travel: every path whose sha256 differs from the live file. Does not use the ticket.","operationId":"upload_manifest_api_v1_upload__ticket__manifest_post","parameters":[{"name":"ticket","in":"path","required":true,"schema":{"type":"string","title":"Ticket"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Manifest Api V1 Upload  Ticket  Manifest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/upload/{ticket}":{"post":{"tags":["upload"],"summary":"Upload With Ticket","description":"Publish with a ticket. Body: a zip (curl --data-binary), or multipart `file` plus `manifest` (the\nCLI's changed files only). One answer: {ok, live_url, version, ...} or {ok: false, error}.","operationId":"upload_with_ticket_api_v1_upload__ticket__post","parameters":[{"name":"ticket","in":"path","required":true,"schema":{"type":"string","title":"Ticket"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/upload-tickets":{"post":{"tags":["upload"],"summary":"Create Ticket","description":"A ticket for the curl route (no Node). Authorization: an account token updates or creates a site on\nthe account; a site token updates that site; none creates a new anonymous site (claim link in the answer).","operationId":"create_ticket_api_v1_upload_tickets_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Ticket Api V1 Upload Tickets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/tokens":{"get":{"tags":["tokens"],"summary":"List Tokens","description":"Live tokens, newest first. Never the token itself.","operationId":"list_tokens_api_v1_account_tokens_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Tokens Api V1 Account Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tokens"],"summary":"Create Token","description":"A new token with a name. The answer is the only time the token is shown.","operationId":"create_token_api_v1_account_tokens_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenNameBody","default":{"name":""}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Token Api V1 Account Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/tokens/{token_id}":{"patch":{"tags":["tokens"],"summary":"Rename Token","operationId":"rename_token_api_v1_account_tokens__token_id__patch","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rename Token Api V1 Account Tokens  Token Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tokens"],"summary":"Revoke Token","operationId":"revoke_token_api_v1_account_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Token Api V1 Account Tokens  Token Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/tokens/{token_id}/rotate":{"post":{"tags":["tokens"],"summary":"Rotate Token","description":"A new token with the same name. The old one is revoked now and stops working at once.","operationId":"rotate_token_api_v1_account_tokens__token_id__rotate_post","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rotate Token Api V1 Account Tokens  Token Id  Rotate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An account token (dth_...), or a site's site_token for that site."}},"schemas":{"AiAddress":{"properties":{"address":{"type":"string","maxLength":254,"title":"Address"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["address"],"title":"AiAddress"},"AiAnalyticsLevel":{"properties":{"level":{"type":"string","maxLength":16,"title":"Level","default":""},"audience":{"type":"string","maxLength":16,"title":"Audience","default":""},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","title":"AiAnalyticsLevel"},"AiAutorenew":{"properties":{"domain":{"type":"string","maxLength":253,"title":"Domain","default":""},"on":{"type":"boolean","title":"On"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["on"],"title":"AiAutorenew"},"AiBackendBody":{"properties":{"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"url":{"type":"string","maxLength":500,"title":"Url"},"paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Paths"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["url"],"title":"AiBackendBody"},"AiCheckoutLink":{"properties":{"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"name":{"type":"string","maxLength":253,"title":"Name"},"extras":{"items":{"type":"string"},"type":"array","title":"Extras","default":[]}},"type":"object","required":["name"],"title":"AiCheckoutLink"},"AiClaim":{"properties":{"claim_url":{"type":"string","maxLength":2000,"title":"Claim Url"}},"type":"object","required":["claim_url"],"title":"AiClaim"},"AiConfirm":{"properties":{"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","title":"AiConfirm"},"AiConnectDomain":{"properties":{"domain":{"type":"string","maxLength":253,"title":"Domain"}},"type":"object","required":["domain"],"title":"AiConnectDomain"},"AiDomainConfirm":{"properties":{"domain":{"type":"string","maxLength":253,"title":"Domain"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["domain"],"title":"AiDomainConfirm"},"AiEmailCheckout":{"properties":{"address":{"type":"string","maxLength":64,"title":"Address","default":"hello"}},"type":"object","title":"AiEmailCheckout"},"AiEmailForward":{"properties":{"local":{"type":"string","maxLength":64,"title":"Local"},"forward_to":{"type":"string","maxLength":254,"title":"Forward To","default":""}},"type":"object","required":["local"],"title":"AiEmailForward"},"AiFeatured":{"properties":{"featured":{"type":"boolean","title":"Featured"}},"type":"object","required":["featured"],"title":"AiFeatured"},"AiFeedback":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":3,"title":"Message"}},"type":"object","required":["message"],"title":"AiFeedback"},"AiImage":{"properties":{"kind":{"type":"string","maxLength":16,"title":"Kind"},"content_base64":{"type":"string","maxLength":28000000,"title":"Content Base64","default":""},"filename":{"type":"string","maxLength":200,"title":"Filename","default":"image.png"},"clear":{"type":"boolean","title":"Clear","default":false}},"type":"object","required":["kind"],"title":"AiImage"},"AiIndexing":{"properties":{"mode":{"type":"string","maxLength":16,"title":"Mode"}},"type":"object","required":["mode"],"title":"AiIndexing"},"AiLeadForm":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"confirm":{"anyOf":[{"type":"string","enum":["off","receipt","verify"]},{"type":"null"}],"title":"Confirm"}},"type":"object","required":["enabled"],"title":"AiLeadForm"},"AiMainInbox":{"properties":{"forward_to":{"type":"string","maxLength":254,"title":"Forward To","default":""}},"type":"object","title":"AiMainInbox"},"AiPoint":{"properties":{"domain":{"type":"string","maxLength":253,"title":"Domain"},"to_site_id":{"type":"integer","title":"To Site Id"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["domain","to_site_id"],"title":"AiPoint"},"AiRenameMain":{"properties":{"address":{"type":"string","maxLength":64,"title":"Address"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["address"],"title":"AiRenameMain"},"AiRollback":{"properties":{"confirm":{"type":"boolean","title":"Confirm","default":false},"deployment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deployment Id"}},"type":"object","title":"AiRollback"},"AiSettings":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Display Name"},"brand_color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Brand Color"},"serp_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Serp Title"},"serp_desc":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Serp Desc"},"share_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Share Title"},"share_desc":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Share Desc"},"domain":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Domain"}},"type":"object","title":"AiSettings"},"AiSubdomain":{"properties":{"site_id":{"type":"integer","title":"Site Id"},"name":{"type":"string","maxLength":64,"title":"Name"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["site_id","name"],"title":"AiSubdomain"},"AiTransferOut":{"properties":{"domain":{"type":"string","maxLength":253,"title":"Domain","default":""},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","title":"AiTransferOut"},"Body_ai_deploy_api_v1_ai_deploy_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"client":{"type":"string","title":"Client","default":""},"name":{"type":"string","title":"Name","default":""},"form":{"type":"string","title":"Form","default":""}},"type":"object","required":["file"],"title":"Body_ai_deploy_api_v1_ai_deploy_post"},"Body_create_site_api_v1_sites_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"client":{"type":"string","title":"Client","default":""},"source":{"type":"string","title":"Source","default":""},"email":{"type":"string","title":"Email","default":""},"email_confirmed":{"type":"string","title":"Email Confirmed","default":""},"name":{"type":"string","title":"Name","default":""},"form":{"type":"string","title":"Form","default":""}},"type":"object","required":["file"],"title":"Body_create_site_api_v1_sites_post"},"Body_redeploy_site_api_v1_sites__site_id__deploy_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"form":{"type":"string","title":"Form","default":""}},"type":"object","required":["file"],"title":"Body_redeploy_site_api_v1_sites__site_id__deploy_post"},"ClaimMailBody":{"properties":{"email":{"type":"string","title":"Email","default":""}},"type":"object","title":"ClaimMailBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ManifestBody":{"properties":{"files":{"title":"Files"}},"type":"object","title":"ManifestBody"},"OpenFeedbackBody":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":3,"title":"Message"},"reply_to":{"type":"string","maxLength":254,"title":"Reply To","default":""},"site":{"type":"string","maxLength":253,"title":"Site","default":""},"context":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Context"}},"type":"object","required":["message"],"title":"OpenFeedbackBody"},"PasswordBody":{"properties":{"password":{"type":"string","maxLength":200,"title":"Password","default":""},"username":{"type":"string","maxLength":100,"title":"Username","default":""}},"type":"object","title":"PasswordBody"},"TicketBody":{"properties":{"site":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Site"},"name":{"type":"string","title":"Name","default":""},"email":{"type":"string","title":"Email","default":""}},"type":"object","title":"TicketBody"},"TokenNameBody":{"properties":{"name":{"type":"string","maxLength":60,"title":"Name","default":""}},"type":"object","title":"TokenNameBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}