A space holds one static website. Each deploy uploads the whole site as one archive and publishes it atomically.
Commands use $API (https://api.heremyapp.com/v1) and $AUTH (the bearer token header) from the shell setup.
Create a space
The slug is part of the permanent URL, so use the product's name: 1-30 characters, lowercase letters, digits and
single hyphens (my-app, not My_App or my--app). For a name in another script, use the product's English name or
romanize it (달력메모 → dallyeok-memo); name keeps the original.
curl -sS -X POST "$API/spaces" -H "$AUTH" -H "content-type: application/json" \
-d '{"slug":"my-app","name":"My App"}' -w '\nHTTP %{http_code}\n'{"id":"spc_7t1v...","slug":"my-app","name":"My App","status":"active","active_deployment_id":null,
"contact_status":"unknown","public_url":"https://heremyapp.com/peter/my-app","site_url":"https://peter--my-app.heremyapp.app/",
"created_at":"2026-10-08T06:15:13.492Z"}409 space_exists means the space is already there: use it. GET $API/spaces lists your spaces.
Share public_url; site_url is the origin it redirects to and may change. Absolute URLs inside your pages
(og:image, og:url, canonical) use site_url; see Absolute URLs.
Deploy
Put the built site in a folder with index.html at its root and send the folder as a tar.gz body.
COPYFILE_DISABLE=1 stops macOS tar from adding ._* metadata files (other systems ignore it):
COPYFILE_DISABLE=1 tar -czf - -C dist . | curl -sS --fail-with-body -X POST "$API/spaces/my-app/deployments" \
-H "$AUTH" -H "content-type: application/gzip" --data-binary @-{"id":"dep_5adj...","space":"peter/my-app","status":"published","version":"1.0.0","build":1,"notes":null,
"file_count":12,"total_size":845120,
"public_url":"https://heremyapp.com/peter/my-app","site_url":"https://peter--my-app.heremyapp.app/",
"skipped":[".DS_Store"],"stripped_prefix":null,"created_at":"2026-10-08T06:15:15.476Z",
"advice":[{"code":"missing_terms","message":"No terms of use at /terms. ...","docs":"https://heremyapp.com/docs/legal"}]}- Every deploy gets the next build number and a version. Add
bump(major,minororpatch) andnotesto the deploy URL; see Releases and versioning. Withoutbump, the patch version goes up. - The response's
advicelist points out things people often miss (privacy policy, terms, link previews, page language, favicon, absolute URLs that redirect). It never blocks a deploy; see Privacy policy and terms. - Publishing is atomic. A failed deploy leaves the live site untouched.
- Redeploying keeps the same URL, and the change is visible immediately.
- The server detects tar or tar.gz from the bytes; send
content-type: application/gziporapplication/x-tar. - If the archive wraps everything in a single folder (for example
dist/), that folder is unwrapped.
File rules
index.htmlmust exist at the site root.- Allowed extensions: html, htm, css, js, mjs, json, map, webmanifest, txt, md, xml, pdf, wasm, png, jpg, jpeg, gif, webp, avif, svg, ico, woff, woff2, ttf, otf, mp4, webm.
- The only file allowed without an extension is
.well-known/apple-app-site-association(see .well-known files). - If any file has another extension, or no extension, the whole deploy fails with
unsupported_file_type, anddetails.fileslists the offending files. Remove or rename them and deploy again. - Files that only configure another host (
CNAME,_redirects,_headers,_config.yml,netlify.toml) are not site files: including one fails the deploy withunsupported_file_type, and heremyapp would not use them anyway (it has no custom domains or redirect rules). Leave them out of the archive instead of deleting them from the project, so the other host keeps working:COPYFILE_DISABLE=1 tar --exclude='CNAME' -czf - -C dist . | curl ... - Installers (.pkg, .dmg, .zip) are never site files. Publish them as installers.
- Files are checked by their content too: a program, installer, archive or disk image under an allowed extension (for
example a renamed
.exesaved aslogo.png) fails the deploy withexecutable_not_allowed, anddetails.fileslists each file and what it is. - Hidden files and folders (
.DS_Store,._*,.git/) and__MACOSX/are skipped and listed inskipped. The exception is a.well-known/folder at the site root, which is deployed; hidden files inside it, and a.well-known/folder anywhere else, are still skipped. - File names are stored in Unicode NFC. macOS tar writes names such as
한글.htmlin NFD; they are converted, and a URL finds the file whichever form the browser sends. Two names that are equal after conversion are rejected asduplicate_path. - Paths with
.., absolute paths, backslashes and duplicates are rejected (invalid_path,duplicate_path). Symlinks and other special files are rejected withunsupported_entry: copy the real files into the folder instead. - Limits: 20 MiB of files in total, 1,000 files, 25 MiB compressed upload.
Content checks
Every deploy is screened for signs of phishing. The check looks at the whole site, not page by page:
- a sign-in, payment card or wallet recovery form on any page, while any page title carries another company's name. Descriptive names count too ("Inbox Cleaner for Gmail"): the check cannot tell an add-on from an imitation;
- forms that send what visitors type to a chat bot;
- download pages that tell visitors to remove macOS's download protection with commands or to turn off Gatekeeper. Explaining how to open an unsigned app once (System Settings → Privacy & Security → Open Anyway) is fine.
details.signals uses these codes. Each names the first file where it matched; the same pattern in other files counts
too (for example every page title that carries the name):
| Code | Found |
|---|---|
password_field, card_field, seed_phrase_field |
A password, payment card or wallet recovery input in the HTML |
password_in_script |
A password input built by a script |
brand_in_title |
Another company's name in a page title (detail is the name) |
exfil_endpoint |
Form data sent to a chat bot (detail is the host) |
obfuscated_script |
Script that decodes and runs hidden code |
gatekeeper_bypass, terminal_command, file_sharing_link, windows_download_link, external_redirect |
Download-page patterns |
What happens:
- On a Free account in its first 30 days (
GET /me→account.planandaccount.created_at), a deploy that clearly looks like this fails with422 content_flagged, with or without?publish=false, and nothing is stored.details.signalslists each match with its file. The attempt counts toward the daily deploy limit. The space stays as it was; leave it. - Otherwise the deploy is published and may be reviewed by a person. Sites that turn out to be phishing or malware are suspended under the terms.
- On
content_flagged, stop and tell the user whatdetails.signalssays. Changing the site to get it published (for example dropping the sign-in page, or the other company's name from every title) is the user's decision; they can also ask support@heremyapp.com (details.support_email) to review the account. Never rename, encode or split content to get past the check. - Look for such a form and title before you create the space or build anything (Start here, step 1), so the question goes into your one message to the user instead of costing a deploy. There is no trial run: the check runs only on a deploy. If the user cannot be asked, do not deploy such a site; report the choices and stop.
How URLs map to files
The site is served at the root of its own origin, so relative (assets/app.css) and root-absolute
(/assets/app.css) paths both work.
| Request | File served |
|---|---|
/ |
index.html |
/style.css |
style.css (exact path first) |
/about |
about.html, otherwise about/index.html (redirects to /about/) |
/about/ |
about/index.html |
| anything missing | your 404.html with status 404, if it exists |
404.html is served at the address that was requested (for example /docs/old/page), so use root-absolute paths in
it (/style.css, /favicon.ico), not relative ones.
.well-known files
Put files that other services look up at fixed addresses in a .well-known/ folder at the site root. They are served
at their exact path with no redirect:
| File | Served as | Used for |
|---|---|---|
.well-known/apple-app-site-association (no extension) |
application/json |
iOS universal links and shared web credentials |
.well-known/assetlinks.json |
application/json; charset=utf-8 |
Android App Links |
.well-known/security.txt |
text/plain; charset=utf-8 |
Security contact (RFC 9116) |
Other files in .well-known/ follow the extension rules above. For setting up app links, see
App links.
An app-ads.txt at the site root is served like any other file, and its seller lines are also collected at
https://heremyapp.com/app-ads.txt and https://heremyapp.app/app-ads.txt, where ad networks look for it
(In-app ads).
Verify
curl -sIL https://heremyapp.com/ACCOUNT/my-app | grep -iE "^HTTP|^location" # 302 to the site origin, then 200Stage, inspect and roll back
- Stage without publishing: add
?publish=falseto the deploy URL, then publish it withPOST $API/deployments/DEPLOYMENT_ID/publish. GET $API/spaces/my-app/deploymentslists the 50 most recent deployments, newest first. The live one has"status":"published".GET $API/deployments/DEPLOYMENT_IDshows one deployment with its file list.GET $API/spaces/my-app/advicechecks the live deployment again with the current advice rules and returns it with anadvicelist, like a deploy response. Rules andsite_urlcan change after a deploy, so check it before a release of a site that has been live for a while.- Roll back by publishing an older deployment:
curl -sS --fail-with-body -X POST "$API/deployments/OLD_DEPLOYMENT_ID/publish" -H "$AUTH"Visitor stats
GET $API/spaces/my-app/stats returns how many people viewed the site's pages and downloaded its installers: the
same numbers the user sees in the dashboard (dashboard_url). ?days= is 7, 30 (default) or 90.
curl -sS --fail-with-body "$API/spaces/my-app/stats?days=7" -H "$AUTH"{"space":"my-app","days":7,"from":"2026-10-15","to":"2026-10-21",
"totals":{"page_views":758,"downloads":192},"previous_period":{"page_views":621,"downloads":173},
"daily":[{"day":"2026-10-15","page_views":96,"downloads":21}],
"sources":[{"source":"direct","count":258},{"source":"news.hada.io","count":167}],
"pages":[{"path":"/","count":538}],"countries":[{"country":"KR","count":349}],
"platforms":[{"platform":"macOS","count":394}],"files":[{"version":"1.4.0","filename":"App.dmg","count":155}],
"dashboard_url":"https://app.heremyapp.com/sites/my-app","note":"Counts people only: ..."}- People only: bots, link previews and prefetches are left out. No cookies or IP addresses are stored, so there is no unique-visitor count. Days are UTC, new visits appear within a minute, and data is kept for 90 days.
fromtotoare UTC days;tois today and still in progress.previous_periodcovers the same number of days just beforefrom.sources,pages,countriesandplatformscount page views;filescounts downloads. Each list holds the top 10, andsourcesleaves out moves between pages of the same site, so the lists can add up to less thantotals. Report them as counts, not as shares of the total.sourcesare the domains that linked to the site (directwhen there was no referrer).heremyapp.commeans a link on heremyapp's own pages; opening the public URL directly counts asdirect. When the user asks how a launch went, report the totals, the change fromprevious_periodand the top sources.GET $API/spaces/my-app/artifactshas all-time download counts per installer, including automated downloads.503 stats_unavailable: try again afterdetails.retry_after_seconds. On a local development server the numbers are made up and the response has"sample": true.