Base URL: https://api.heremyapp.com/v1. Requests and responses are JSON, except site uploads (tar or tar.gz) and installer
uploads (raw bytes). Authenticate with Authorization: Bearer hma_....
Endpoints
| Method | Path | Purpose | Token |
|---|---|---|---|
| GET | /plans |
Plans (monthly price_usd, price_yearly_usd), included amounts and overage prices |
none |
| POST | /auth/device |
Start a device login {client_name?}; show the user verification_uri_complete |
none |
| POST | /auth/token |
Poll with {device_code} until the user approves; returns an account token once |
none |
| GET | /me |
Account (with created_at), plan, token scope and notices to pass on to the user (Account notices) |
any |
| GET | /usage |
This usage period's usage, included amounts, estimated overage, spending_limit, paused (whole account), paused_spaces, notices |
any |
| POST | /spaces |
Create a space {slug, name?} |
account |
| DELETE | /spaces/{slug} |
Delete a space with its deployments, installers and space tokens. Site files no other deployment uses are removed from storage | account |
| GET | /spaces |
List spaces | any |
| GET | /spaces/{slug} |
Space details, including active_deployment_id |
any |
| POST | /spaces/{slug}/deployments |
Deploy a tar or tar.gz body. ?bump=major|minor|patch or ?version=, ?notes=, ?publish=false stages it. The response's advice lists non-blocking suggestions and notices account news for the user |
any |
| GET | /spaces/{slug}/deployments |
50 most recent deployments, newest first | any |
| GET | /spaces/{slug}/versions |
Live and latest versions, next build and version suggestions, contact_status, paused |
any |
| GET | /spaces/{slug}/advice |
The live deployment checked again with today's deploy advice rules; check it before a release | any |
| POST | /spaces/{slug}/domains |
Connect a custom domain {hostname} (Pro); the response lists the DNS records to add and next_step (Custom domains) |
any |
| GET | /spaces/{slug}/domains |
Custom domains with status (pending, issuing, active, misconfigured, disabled, failed) |
any |
| DELETE | /spaces/{slug}/domains/{hostname} |
Disconnect a custom domain | any |
| GET | /spaces/{slug}/stats |
People's page views and installer downloads for ?days=7|30|90 (default 30), by day, source, page, country, platform and file (Visitor stats) |
any |
| GET | /spaces/{slug}/contact |
Contact details (status: unknown, provided, skipped) |
any |
| PUT | /spaces/{slug}/contact |
Save contact fields, or {"status":"skipped"} |
any |
| GET | /deployments/{id} |
Deployment details and file list | any |
| POST | /deployments/{id}/publish |
Make a deployment live (also rolls back) | any |
| DELETE | /deployments/{id} |
Delete an old deployment to free storage (not the live or most recent one). Its files no other deployment uses are removed from storage | any |
| POST | /spaces/{slug}/artifacts |
Register an installer {filename, version, build?, notes?, size, sha256, ed_signature?, minimum_system_version?}; 201 with upload and appcast_url |
any |
| GET | /spaces/{slug}/artifacts |
Installers with downloads and bytes_served |
any |
| GET | /artifacts/{id} |
Installer details, with upload while pending |
any |
| PATCH | /artifacts/{id} |
Set or clear ed_signature and minimum_system_version for the Sparkle feed (null clears) |
any |
| PUT | /artifacts/{id}/content |
Upload an installer of up to 95 MiB in one request; the response's advice covers signing |
any |
| PUT | /artifacts/{id}/parts/{n} |
Upload part n (from 1) of a larger installer |
any |
| POST | /artifacts/{id}/complete |
Finish a multipart upload; the response's advice covers signing |
any |
| DELETE | /artifacts/{id} |
Remove an installer version (its URL returns 410) | any |
| POST | /tokens |
Create a token {name, space?}; space limits it to one space |
account |
| GET | /tokens |
List tokens (values are never shown again) | account |
| DELETE | /tokens/{id} |
Revoke a token | account |
"any" means an account token, or a space token for that space. GET https://api.heremyapp.com/ without a token returns links to
these docs.
Errors
{"error":{"code":"unsupported_file_type","message":"Unsupported file types: notes.docx. ...",
"details":{"files":["notes.docx"]},"docs":"https://heremyapp.com/docs/sites.md#file-rules"}}docs links to the page about the error (site archive errors link to the file rules), or to the full guide
(https://heremyapp.com/llms-full.txt) when no single page covers it.
| Code | Status | Meaning |
|---|---|---|
unauthorized |
401 | Missing, wrong, expired or revoked token; without a token, use POST /auth/device |
plan_limit |
402 | Over a plan limit (spaces, installer size); details.upgrade_url |
quota_exceeded |
402 | Free plan storage or monthly writes used up; details.upgrade_url |
account_suspended |
403 | The account is suspended; the user must contact support |
https_required |
403 | The request used plain http://; use https:// (the token may have been exposed, so consider revoking it) |
forbidden |
403 | Space token used for another space, or for an account-only action |
space_suspended |
403 | The space has been suspended |
space_paused |
403 | The space is over the plan's site limit (after a downgrade); the user chooses which sites stay live on the dashboard's Sites page or upgrades; details.dashboard_url |
spending_limit_reached |
402 | The user chose to pause at their spending limit and reached it; deploys and uploads wait for the next usage period; details.billing_url |
space_not_found, deployment_not_found, artifact_not_found, token_not_found |
404 | Wrong slug or ID, not yours, or deleted (also when a deployment is deleted while you publish it) |
not_found |
404 | No such endpoint |
not_published |
404 | GET /spaces/{slug}/advice: nothing is published in the space yet; deploy first (the deploy response has the advice) |
space_exists |
409 | The space already exists; use it |
invalid_hostname |
400 | POST /spaces/{slug}/domains: not a domain that can be connected; message says why |
domain_exists, domain_taken, too_many_domains |
409 | The domain is already on this space, on another heremyapp site, or the space has 3 domains |
domain_not_found |
404 | DELETE /spaces/{slug}/domains/{hostname}: not connected to this space |
domains_unavailable |
503 | Custom domains could not be reached; retry after details.retry_after_seconds |
invalid_days |
400 | GET /spaces/{slug}/stats: days must be 7, 30 or 90 |
stats_unavailable |
503 | Visitor stats could not be read right now; retry after details.retry_after_seconds |
invalid_slug, invalid_json, invalid_artifact |
400 | Fix the request body; message says how |
empty_body, invalid_archive, invalid_path, duplicate_path |
400 | Fix the site archive; message names the file |
unsupported_entry |
400 | The archive contains a symlink or special file; include real files instead |
unsupported_file_type |
400 | Site contains files it cannot contain; see details.files |
executable_not_allowed |
400 | A site file is a program, installer, archive or disk image under a web extension; details.files lists them |
content_flagged |
422 | Free account in its first 30 days: the site looks like phishing and nothing was stored; details.signals. Stop and tell the user (Content checks) |
installer_rejected |
422 | Free plan: the .zip contains Windows programs, password-protected files or an unreadable file list; it was discarded |
missing_index |
400 | No index.html at the site root |
site_too_large, too_many_files, upload_too_large |
413 | Over the site limits |
checksum_mismatch, invalid_file_content |
400 | Installer failed verification and was discarded; register again |
size_mismatch, invalid_part |
400 | The upload sent a different number of bytes than expected |
length_required |
411 | Send Content-Length (curl -T does) |
missing_parts |
400 | Send the parts in details.missing, then complete again |
use_multipart, use_single_upload |
400 | Wrong upload mode; details.upload has the right one |
artifact_exists, already_uploaded |
409 | That version is already published; use a new version |
artifact_deleted |
409 | That version was removed; register a new version |
version_not_increasing, build_not_increasing |
409 | Use a higher version or build; details has suggestions |
invalid_release |
400 | Bad bump or version on a deploy |
deploy_conflict |
409 | Another deploy finished at the same moment; deploy again. With details.retry_after_seconds: some files are identical to files of a deployment, space or account deleted in the last 15 minutes, which are being removed from storage; deploy the same archive again after that many seconds |
deployment_active, deployment_latest |
409 | The live deployment and the most recent one cannot be deleted. A deployment published while the delete runs is kept and returns deployment_active |
deploy_limit |
429 | Daily deploy limit of the plan reached (resets 00:00 UTC) |
rate_limited |
429 | Too many device login requests; wait a minute |
authorization_pending, slow_down |
400 | Device login: the user has not approved yet; keep polling every details.interval seconds |
expired_token, access_denied, invalid_device_code |
400 | Device login ended: start again (after asking the user, for access_denied) |
invalid_contact |
400 | Unknown field or invalid value; details.allowed_fields lists the fields |
internal_error |
500 | Unexpected server error; retry later |
Limits
| Resource | Limit |
|---|---|
| Site | 20 MiB of files, 1,000 files, 25 MiB compressed upload, paths up to 512 bytes |
| Installer | Per file: set by the plan (Plans and billing, "Largest installer"); single upload up to 95 MiB, larger files in 50 MiB parts |
| Plan limits | Spaces, storage, monthly requests, reads and writes, deploys per day: see Plans and billing |
| Installer types | .pkg, .dmg, .zip. On the Free plan a .zip may contain only a macOS app (Installers) |
| Space slug | 1-30 characters: lowercase letters, digits, single hyphens |
| Account name | 3-30 characters: lowercase letters, digits, single hyphens |