Maton

here.now

Access the here.now API with managed authentication. here.now hosts static websites, apps, and files for agents: publish Sites to live {slug}.here.now URLs and update, roll back, or delete them; control who can view each Site; keep private files in Drives and share them with scoped tokens; organise Sites into folders and team workspaces; connect custom domains or buy new ones; and read Site analytics. Publishing makes content public, domain purchases are final charges, and deletions are permanent. All access runs through the Maton gateway and the maton CLI.

Permissions

Suggested read access

In the Console, Read limits the connection to these 47 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.

Reference

Accounts

List Accounts

maton api '/here-now/api/v1/accounts'

Response:

{
  "accounts": [
    {
      "accountId": "{account_id}",
      "type": "personal",
      "displayName": "{display_name}",
      "iconEmoji": null,
      "subdomain": null,
      "status": "active",
      "provisioningStatus": "active",
      "plan": "free",
      "role": "admin",
      "joinedAt": "2026-11-20T18:02:11.000Z",
      "selector": {"id": "{account_id}", "subdomain": null}
    }
  ],
  "currentAccountId": "{account_id}",
  "selectorError": null
}

The personal account plus every workspace the user belongs to (type org). selector.id or selector.subdomain is the value for X-HereNow-Account; prefer the immutable id in stored automations. includeJoinable=1 also lists workspaces the user could join through an email-domain rule.

Get Profile

maton api '/here-now/api/v1/profile'

Returns username, enabled (whether the public profile is visible), addNewSitesToProfile, bio, link, the profile url, and the sites shown on it. A good first call to check the connection.

Update Profile

maton api '/here-now/api/v1/profile' -X PATCH -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "bio": "Reports and dashboards from the data team.",
  "addNewSitesToProfile": false
}
JSON

enabled, addNewSitesToProfile, bio (one line, at most 160 characters), and link (one http(s) URL); null or an empty string clears bio and link. api/v1/profile/sites with POST ({"slug": ...}) shows an ungated Site on the profile, and api/v1/profile/sites/{slug} with DELETE hides it without deleting the Site.

Sites

A Site is a static website at {slug}.here.now. Every publish records a version; the live version is currentVersionId.

List Sites

maton api '/here-now/api/v1/publishes'

Query parameters:

  • folder (string, optional): A folder ID or name, or none for unfiled Sites
  • scope (string, optional): all merges the personal account, Sites shared with the user, and every joined workspace, with ownership and workspace on each row; cannot be combined with folder or X-HereNow-Account
  • limit / cursor: scope=all only; page size 1-100 (default 20) and nextCursor from the previous page

Response:

{
  "publishes": [
    {
      "slug": "bright-canyon-x7k2",
      "siteUrl": "https://bright-canyon-x7k2.here.now/",
      "status": "active",
      "currentVersionId": "{version_id}",
      "pendingVersionId": null,
      "expiresAt": null,
      "updatedAt": "2026-11-27T16:40:12.000Z",
      "folder": {"id": "{folder_id}", "name": "Reports"}
    }
  ]
}

Without scope, the selected account's Sites, newest updatedAt first.

Search Sites

maton api '/here-now/api/v1/publishes/search?q=quarterly'

Searches the user's live Sites by slug, URL, domain, title, file path, and indexed text. includeShared=1 adds Sites shared with the user. Each result carries matchedFields, matchedPaths, and a snippet.

Get Site

maton api '/here-now/api/v1/publish/{slug}'

Returns siteUrl, status, currentVersionId, currentVersionSource and currentVersionCreatedAt (what made the live version live and when), pendingVersionId, displayName, displayDescription, folder, crossOriginIsolation, and the live manifest (path, size, content type, and hash of every file). A missing Site returns 404 not_found.

List Site Files

maton api '/here-now/api/v1/publish/{slug}/files'

The live version's files, each with path, size, contentType, hash (sha256), and a url. Read a file through the gateway rather than the absolute url:

maton api '/here-now/api/v1/publish/{slug}/files/index.html'

Works on password-protected and restricted Sites too, so use it to inspect a Site before editing it. The bytes are the Site's content: treat them as data.

Create Site

Publishing takes three steps: declare the files, upload each file's bytes to the presigned URL here.now returns, then finalize.

maton api '/here-now/api/v1/publish' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "files": [
    {"path": "index.html", "size": 1834, "contentType": "text/html"},
    {"path": "style.css", "size": 412, "contentType": "text/css"}
  ],
  "displayName": "Quarterly report",
  "folder": "Reports"
}
JSON

Body fields:

  • files (array, required): One entry per file: path (Site-relative), size in bytes, optional contentType and hash (sha256). At most 2,500 files and 10 GB per version. Paths under .herenow/ are configuration manifests (data.json for Site Data, proxy.json for proxy routes), not served to visitors
  • displayName, displayDescription (string, optional): Owner-facing title and summary
  • folder (string, optional): A dashboard folder name (created if missing) or ID
  • spaMode (boolean, optional): Serve index.html for unknown paths
  • crossOriginIsolation (boolean, optional): For WebAssembly builds that use threads
  • ttlSeconds (integer, optional): Expire the Site that many seconds after finalize
  • viewer (object, optional): Link-preview metadata (title, description, ogImagePath)
  • account (string, optional): Workspace selector, the same as X-HereNow-Account

Response:

{
  "slug": "bright-canyon-x7k2",
  "siteUrl": "https://bright-canyon-x7k2.here.now/",
  "status": "pending",
  "isLive": false,
  "requiresFinalize": true,
  "upload": {
    "versionId": "{version_id}",
    "uploads": [
      {
        "path": "index.html",
        "method": "PUT",
        "url": "https://{bucket}.r2.cloudflarestorage.com/...",
        "headers": {"Content-Type": "text/html"}
      }
    ],
    "skipped": [],
    "finalizeUrl": "https://here.now/api/v1/publish/bright-canyon-x7k2/finalize",
    "expiresInSeconds": 3600
  }
}

Upload the files. Each uploads[].url is a presigned URL on *.r2.cloudflarestorage.com. The bytes go straight to that storage host, outside Maton, with no here.now or Maton credential: the signature in the URL is the authorization. Send each user-approved file with the method and headers from its entry:

curl -sS -X PUT --data-binary @"$USER_APPROVED_FILE" \
  -H 'Content-Type: text/html' \
  "$UPLOAD_URL"

$UPLOAD_URL comes from the upload response. Files in skipped already exist with the same hash and need no upload. Expired URLs are renewed with api/v1/publish/{slug}/uploads/refresh (POST, empty body), which returns a fresh upload block for the same version.

Finalize Site Version

maton api '/here-now/api/v1/publish/{slug}/finalize' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"versionId": "{version_id}"}
JSON

Use this gateway path, not the absolute finalizeUrl. Finalize makes the version live and returns siteUrl, primaryUrl, urls, currentVersionId, and any warnings; report siteUrl exactly as returned rather than building one from the slug. It is idempotent by versionId (a repeat returns replayed: true). A 400 whose missingFiles lists every file means the uploads never reached storage.

Update Site

maton api '/here-now/api/v1/publish/{slug}' -X PUT -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "files": [
    {"path": "index.html", "size": 1902, "contentType": "text/html"}
  ],
  "baseVersionId": "{current_version_id}"
}
JSON

The body is the same as Create Site, and files is the complete new version: a file left out is not in it. Upload and finalize as above. baseVersionId (the currentVersionId the edit started from) makes finalize fail with 409 version_conflict if someone else published in between; read the live files, reconcile, and retry rather than overwriting. At most 60 versions per Site per hour (429 rate_limit_exceeded with retry_after): batch edits instead of publishing after each change. An unfinalized update leaves the live version serving and is replaced by the next PUT.

Update Site Metadata

maton api '/here-now/api/v1/publish/{slug}/metadata' -X PATCH -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "displayName": "Quarterly report (final)",
  "folder": "Reports",
  "spaMode": true
}
JSON

Changes settings without publishing a version: displayName, displayDescription, folder (null unfiles), spaMode, crossOriginIsolation, ttlSeconds, viewer, and password (a string puts the Site in password mode; null removes it and returns the Site to anyone_with_link).

Get Site Access

maton api '/here-now/api/v1/publish/{slug}/access'

Returns mode (anyone_with_link, password, restricted, or account_members on workspace Sites), allowedEmails, allowedDomains, and accessPolicyVersion.

Update Site Access

maton api '/here-now/api/v1/publish/{slug}/access' -X PATCH -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "mode": "restricted",
  "allowedEmails": ["ada@example.com"],
  "allowedDomains": ["example.com"],
  "notify": false
}
JSON

The allowlists are replaced in full: read the current access first and merge to add one entry. restricted with both lists empty makes a personal Site owner-only. anyone_with_link opens it to everyone with the URL. api/v1/publish/{slug}/access/invites with POST sends invite emails to addresses already on the allowlist.

Duplicate Site

maton api '/here-now/api/v1/publish/{slug}/duplicate' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{}
JSON

Copies the live files to a new slug. Passwords, restricted allowlists, domain mounts, and TTL are not copied, so the copy is open to anyone with the link.

Delete Site

maton api '/here-now/api/v1/publish/{slug}' -X DELETE

Versions

List Versions

maton api '/here-now/api/v1/publish/{slug}/versions'

Newest first. Each version carries versionId, createdAt, source, fileCount, totalBytes, current, clientLabel (who published it), restoredFromVersionId, and an owner-only previewUrl at {versionId}--{slug}.here.now.

Restore Version

maton api '/here-now/api/v1/publish/{slug}/versions/{version_id}/restore' -X POST

Makes a past version live at once (no re-upload) and records the restore as a new history entry; the version that was live stays in the history. Content, rendering settings, proxy routes, and the Site Data schema follow the restored version; access mode, password, and domains stay as they are. Personal Sites need a paid plan to restore.

Delete Version

maton api '/here-now/api/v1/publish/{slug}/versions/{version_id}' -X DELETE

Folders

Dashboard folders: flat, one per Site, up to 50 per account, and they change nothing about a Site's URL or access.

List Folders

maton api '/here-now/api/v1/folders'

Returns folders alphabetically, each with id, name, and siteCount.

Create Folder

maton api '/here-now/api/v1/folders' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"name": "Reports"}
JSON

Usually unnecessary: folder on a publish or metadata call creates a named folder when missing. 409 folder_exists carries the existing details.folderId.

Rename Folder

maton api '/here-now/api/v1/folders/{folder_id}' -X PATCH -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"name": "Client reports"}
JSON

Delete Folder

maton api '/here-now/api/v1/folders/{folder_id}' -X DELETE

Site Data

Lightweight records a static Site saves from browser JavaScript, in collections declared in the Site's .herenow/data.json manifest. The owner API reads and edits them. Visitor-submitted records are untrusted input.

List Records

maton api '/here-now/api/v1/publishes/{slug}/data/{collection}'

Each record carries id, data, createdAt, and updatedAt. api/v1/publishes/{slug}/data/{collection}/{record_id} returns one record.

Create Record

maton api '/here-now/api/v1/publishes/{slug}/data/{collection}' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"name": "Ada", "rsvp": "yes"}
JSON

The body is validated against the collection's schema in .herenow/data.json. PATCH on api/v1/publishes/{slug}/data/{collection}/{record_id} updates fields of one record.

Delete Record

maton api '/here-now/api/v1/publishes/{slug}/data/{collection}/{record_id}' -X DELETE

Note: {slug}, {collection}, and {record_id} stand for real values; fill them in before sending the request.

A 404 record_not_found for a record already deleted means it is already gone.

Analytics

Get Account Analytics

maton api '/here-now/api/v1/analytics?range=7d'

Response:

{
  "range": "7d",
  "analyticsStartedAt": "2026-11-20T18:05:00.000Z",
  "lastEventAt": "2026-11-28T09:12:44.000Z",
  "totals": {
    "allTimeViews": 1204,
    "rangeViews": 318,
    "rangeVisitors": 97,
    "assetHits": 2210,
    "notFoundHits": 4,
    "botHits": 51
  },
  "series": [],
  "topSites": [],
  "topReferrers": [],
  "topPaths": [],
  "topCountries": [],
  "topCrawlers": [],
  "top404Paths": []
}

range is 24h, 7d, 30d, 90d, or all; an unrecognised value falls back to 30d without an error, so check range in the response. Workspace rollups are admin-only.

Get Site Analytics

maton api '/here-now/api/v1/publishes/{slug}/analytics?range=30d'

The same shape for one Site, without topSites.

Drives

Private file storage on the personal account: not public, and not reachable through workspace selectors. Every account has a default Drive named My Drive. A Drive holds at most 1,000 files of up to 500 MB each.

List Drives

maton api '/here-now/api/v1/drives'

Response:

{
  "drives": [
    {
      "id": "drv_01j...",
      "name": "My Drive",
      "isDefault": true,
      "description": null,
      "status": "active",
      "headVersionId": "dv_01j...",
      "dashboardUrl": "https://here.now/dashboard/drives/drv_01j...",
      "deletedAt": null,
      "recoverableUntil": null,
      "createdAt": "2026-11-20T18:02:11.000Z",
      "updatedAt": "2026-11-20T18:02:11.000Z"
    }
  ]
}

api/v1/drives/{drive_id} returns one Drive. Prefer this list over api/v1/drives/default, which creates My Drive when it is missing.

List Drive Files

maton api '/here-now/api/v1/drives/{drive_id}/files?prefix=notes/&limit=100'

Each file carries path, etag, size, contentType, sha256, updatedAt, and lastModifiedBy. limit is 1-200; pass nextCursor back as cursor.

Read Drive File

maton api '/here-now/api/v1/drives/{drive_id}/files/notes/plan.md'

Returns the file's bytes.

Create Drive

maton api '/here-now/api/v1/drives' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"name": "Research", "description": "Shared notes for the research agents"}
JSON

api/v1/drives/{drive_id} with PATCH changes name, description, or isDefault.

Write Drive File

Writes are staged: request a presigned upload, PUT the bytes to it (outside Maton, as with Sites), then finalize.

maton api '/here-now/api/v1/drives/{drive_id}/files/uploads' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"path": "notes/plan.md", "size": 2048, "contentType": "text/markdown"}
JSON

Returns uploadId, method, url, headers, and expiresInSeconds. ifMatch (the current etag) guards a replacement, ifNoneMatch: "*" a new file. After the upload:

maton api '/here-now/api/v1/drives/{drive_id}/files/finalize' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"uploadId": "{upload_id}"}
JSON

A new path in a full Drive returns 413 drive_file_limit; ask the user which files to delete instead of retrying. api/v1/drives/{drive_id}/files/move with POST (from, to, ifMatch) moves or renames a file.

Delete Drive File

maton api '/here-now/api/v1/drives/{drive_id}/files/notes/plan.md' -X DELETE

Delete Drive

maton api '/here-now/api/v1/drives/{drive_id}' -X DELETE

A soft delete: the response's recoverableUntil says how long the Drive can still be recovered; after that it is gone.

Publish from Drive

maton api '/here-now/api/v1/publish/from-drive' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"driveId": "{drive_id}", "slug": "{slug}"}
JSON

Omit slug to create a new Site; with it, the Drive's files become a new version of that Site. versionId picks a past Drive version, and password, spaMode, folder, and viewer work as on publish.

Drive Share Tokens

A share token lets another agent read or write one Drive (optionally only under a path prefix) without the account's API key.

List Drive Tokens

maton api '/here-now/api/v1/drives/{drive_id}/tokens'

Each token carries id (dtok_...), perms, pathPrefix, label, expiresAt, and manageTokens; token values are not listed.

Create Drive Token

maton api '/here-now/api/v1/drives/{drive_id}/tokens' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "perms": "read",
  "pathPrefix": "notes/",
  "ttl": "7d",
  "label": "research-reader"
}
JSON

The response's token (drv_live_...) is shown once and grants that access to whoever holds it, used directly against here.now as a bearer token. A null pathPrefix means the whole Drive; manageTokens: true lets the holder mint narrower tokens.

Revoke Drive Token

maton api '/here-now/api/v1/drives/{drive_id}/tokens/{token_id}' -X DELETE

Custom Domains

A domain the user already owns, connected to the account so Sites can be mounted on it.

List Domains

maton api '/here-now/api/v1/domains'

Each domain carries domain, status (pending, active, error), ssl_status, is_apex, suspended, and its mounts. suspended: true means connected but not serving (the plan's domain limit after a downgrade).

Add Domain

maton api '/here-now/api/v1/domains' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"domain": "docs.example.com"}
JSON

Returns dns_instructions (records the user adds at their DNS provider) and the verification status; for a domain bought through here.now the records are written automatically (dns: "managed"). 422 domain_not_registered means nobody owns the name yet.

Get Domain

maton api '/here-now/api/v1/domains/{domain}'

While pending, verification.state is verifying (keep polling; verification normally takes about 20 minutes) or action_required (fix DNS to match dns_instructions). Deleting and re-adding a pending domain restarts verification and disconnects mounted Sites.

Remove Domain

maton api '/here-now/api/v1/domains/{domain}' -X DELETE

Set Primary Domain

maton api '/here-now/api/v1/publish/{slug}/primary-domain' -X PUT -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"domain": "docs.example.com"}
JSON

{"domain": null} turns the redirect off. GET on the same path returns the current state and the eligible domain mounts.

Domain Registrar

Buy a domain through here.now (registrar: name.com) at the registrar's price, with WHOIS privacy and DNS set up automatically. Personal accounts only. Search, check, and purchase share 30 requests per hour per account (120 on paid plans).

Search Domains

maton api '/here-now/api/v1/registrar/search?q=acme&tlds=com,io'

Ranked results with estimated first-year price and renewal; show the user both. Names another here.now account uses come back purchasable: false.

Check Domain

maton api '/here-now/api/v1/registrar/check/{domain}'

Response:

{
  "domain": "acme-reports.com",
  "tld": "com",
  "purchasable": true,
  "premium": false,
  "years": 1,
  "reason": null,
  "price": {"totalCents": 699, "perYearCents": 699, "currency": "usd", "display": "$6.99"},
  "renewal": {"perYearCents": 1661, "currency": "usd", "display": "$16.61/yr"},
  "acknowledgedPriceCentsRequired": null,
  "terms": "https://here.now/terms/domains",
  "note": "Confirm the domain, price, and renewal price with the user before POST /api/v1/registrar/purchase. ..."
}

The authoritative quote: price.totalCents is what a purchase charges. years selects a longer term. Premium names set acknowledgedPriceCentsRequired.

Purchase Domain

maton api '/here-now/api/v1/registrar/purchase' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "domain": "acme-reports.com",
  "years": 1,
  "connectSlug": "{slug}",
  "acknowledgedPriceCents": 699
}
JSON

Charges the account's saved card. acknowledgedPriceCents (the checked price.totalCents) makes the purchase fail with 409 price_changed instead of charging a different amount; send it every time. connectSlug mounts that Site at the domain's root. Returns 201 with registration, charged, and dns: "managed"; the domain goes live within minutes (poll Get Domain).

On 402 payment_method_required, nothing was charged: give the user details.accepts.hosted.setupUrl to add a card in their browser, then retry. On 409 premium_confirmation_required or price_changed, check the new price. On 502 registration_unresolved, stop: the charge is on hold and here.now emails the user.

List Purchased Domains

maton api '/here-now/api/v1/registrar/domains'

Each registration carries domain, status, expiresAt, autoRenew, renewalPriceCents, transferLockExpiresAt, and connected. api/v1/registrar/{domain} returns one.

Set Auto-Renew

maton api '/here-now/api/v1/registrar/{domain}' -X PATCH -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"autoRenew": false}
JSON

DNS Records

maton api '/here-now/api/v1/registrar/{domain}/records'

Records at the registrar for a purchased domain; managed: true marks serving records here.now controls.

maton api '/here-now/api/v1/registrar/{domain}/records' -X PUT -H 'Content-Type: application/json' \
  --input - <<'JSON'
{
  "records": [
    {"type": "MX", "host": "@", "value": "mx1.example-mail.com", "priority": 10},
    {"type": "TXT", "host": "@", "value": "v=spf1 include:example-mail.com ~all"}
  ]
}
JSON

Types are A, AAAA, CNAME, MX (needs priority), TXT, and SRV. A record that would touch a serving record returns 409.

Transfer Code

maton api '/here-now/api/v1/registrar/{domain}/transfer'

authCode lets whoever holds it transfer the domain away. Available after ICANN's 60-day hold (transferAllowedAfter).

Vanity URLs and Mounts

A vanity subdomain puts every Site of a personal account under the user's name ({site-name}.{name}.here.now). Paid plans, personal accounts only.

Get Vanity URLs

maton api '/here-now/api/v1/vanity-urls'

subdomain and domain, each null when off. api/v1/handle returns the vanity subdomain and its mounts in the older shape.

Check Subdomain Availability

maton api '/here-now/api/v1/vanity-urls/subdomain/availability?name=ada'

Advisory {"name": ..., "available": ...}; the claim itself decides.

Turn On Vanity Subdomain

maton api '/here-now/api/v1/vanity-urls/subdomain' -X PUT -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"subdomain": "ada"}
JSON

state is provisioning for about a minute, then active. 402 vanity_urls_plan_required on a free plan. DELETE on the same path releases it: those addresses stop serving, and Sites keep their {slug}.here.now addresses.

List Mounts

maton api '/here-now/api/v1/mounts?domain=docs.example.com'

Mounts on a custom domain, or on the vanity subdomain without domain.

Mount Site

maton api '/here-now/api/v1/mounts' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"mount_path": "guides", "slug": "{slug}", "domain": "docs.example.com"}
JSON

An empty mount_path mounts at the root. api/v1/mounts/{mount_path} with PATCH ({"slug": ...}) re-points a mount and with DELETE removes it; use __root__ for the root and ?domain= for a custom domain.

Workspaces

Team accounts that own Sites at {label}.{workspace}.here.now. Act inside one with the X-HereNow-Account header.

List Sites in a Workspace

maton api '/here-now/api/v1/publishes' -H 'X-HereNow-Account: {workspace}'

Note: A stale or unknown selector returns 404 account_selector_stale: re-list api/v1/accounts.

Create Workspace

maton api '/here-now/api/v1/accounts' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"displayName": "Acme Docs", "subdomain": "acme-docs"}
JSON

api/v1/accounts/subdomain-availability?subdomain= checks the name first.

List Members

maton api '/here-now/api/v1/accounts/{account_id}/members'

Note: Admin-only.

Invite Member

maton api '/here-now/api/v1/accounts/{account_id}/invites' -X POST -H 'Content-Type: application/json' \
  --input - <<'JSON'
{"email": "ada@example.com", "role": "member"}
JSON

role is member or admin. api/v1/accounts/{account_id}/invites/{invite_id} with DELETE revokes a pending invite; api/v1/accounts/{account_id}/members/{user_id} with PATCH ({"role": ...}) changes a role and with DELETE removes a member.

Delete Workspace

maton api '/here-now/api/v1/accounts/{account_id}' -X DELETE

Variables

Secrets injected server-side into a Site's proxy routes (declared in its .herenow/proxy.json).

List Variables

maton api '/here-now/api/v1/me/variables'

Names and allowedUpstreams only; values are never returned.

Set Variable

maton api '/here-now/api/v1/me/variables/{name}' -X PUT -H 'Content-Type: application/json' \
  --input "$USER_SUPPLIED_JSON_FILE"

Note: The file holds {"value": "...", "allowedUpstreams": ["api.example.com"]}, written by the user. Always set allowedUpstreams so the value only reaches the host it is for. DELETE on the same path removes the variable.

Pagination

Most lists return everything at once. Cursor-paged lists (api/v1/publishes?scope=all, api/v1/publishes/search, Drive files) return nextCursor; pass it back as cursor until it is null:

maton api '/here-now/api/v1/publishes?scope=all&limit=100&cursor={next_cursor}'

Notes

  • Errors are JSON: {"error": "...", "code": "...", "message": "...", "details": ..., "retry_after": ..., "docs_url": "..."}. Read code first. 401 unauthorized means the stored key is invalid or was revoked; 409 conflict or version_conflict means inspect the current state before retrying; 410 gone means the resource expired or was deleted.
  • Rate limits. 429 rate_limit_exceeded carries retry_after (and a Retry-After header): wait that long. Publishing allows 60 versions per Site per hour, and 60 (free) or 200 (paid) publishes per account per hour.
  • Upload hosts. Site and Drive uploads go to presigned URLs on *.r2.cloudflarestorage.com. An egress allowlist that permits only api.maton.ai blocks them, and finalize then reports every file missing.
  • Absolute URLs in responses (finalizeUrl, file urls, dashboardUrl) point at here.now directly. Call the same path through the gateway instead; a direct call to here.now has no credential.
  • API keys. api/v1/me/keys (GET lists every key in plaintext, POST creates one, DELETE revokes one) manages the account's API keys, including the one the connection uses. api/auth/* (email sign-in that mints keys) and anonymous publishing don't use the connection.
  • Payment methods (api/v1/me/payment-methods, api/v1/registrar/payment-method), account email change, Site labels, workspace domain rules, and the vanity domain exist in the API but are out of scope for this reference.

Resources

On this page