autessa.app
Custom App source files, builds, environment variables, and publishing.
autessa.app.accessTokens.createMUTATE
autessa.app.accessTokens.create({ appId, people })Issue personal access links (one per person, up to 500 per call) for a TOKEN-hosted app.
ADMIN only. Each person needs a name; email, expiresAt (UTC ISO-8601) and values for columns added to the access-links table are optional. The batch is validated first, so one bad entry creates nothing. Returns each link and token (XXXX-XXXX-XXXX-XXXX); anyone holding a link can open the app as that person.
Request fields
- Name
appId- Type
- string
- Description
- Name
people- Type
- AccessTokenPerson[]
- Description
Response fields
- Name
tokens- Type
- CreatedAccessToken[]
- Description
autessa.app.accessTokens.getLinkREAD
autessa.app.accessTokens.getLink({ appId, rowId })Show one person's current access link and token again, for copying.
ADMIN only.
Request fields
- Name
appId- Type
- string
- Description
- Name
rowId- Type
- string
- Description
Response fields
- Name
token- Type
- string
- Description
- Name
link- Type
- string
- Description
autessa.app.accessTokens.listREAD
autessa.app.accessTokens.list({ appId, pageSize, pageToken })List everyone who has a personal access link for a TOKEN-hosted app: name, email, active, expiry, last used.
ADMIN only. The tokens themselves are not listed; use accessTokens.getLink to copy one.
Request fields
- Name
appId- Type
- string
- Description
- Name
pageSize- Type
- number
- Description
- Name
pageToken- Type
- string
- Description
Response fields
- Name
tokens- Type
- AccessTokenSummary[]
- Description
- Name
nextPageToken- Type
- string
- Description
autessa.app.accessTokens.restoreMUTATE
autessa.app.accessTokens.restore({ appId, rowId })Turn a revoked access link back on; the person's existing link works again.
ADMIN only.
Request fields
- Name
appId- Type
- string
- Description
- Name
rowId- Type
- string
- Description
Response fields
No fields.
autessa.app.accessTokens.revokeMUTATE
autessa.app.accessTokens.revoke({ appId, rowId })Turn one person's access link off; it stops working and they are signed out immediately.
ADMIN only. accessTokens.restore turns the same link back on.
Request fields
- Name
appId- Type
- string
- Description
- Name
rowId- Type
- string
- Description
Response fields
No fields.
autessa.app.accessTokens.rotateMUTATE
autessa.app.accessTokens.rotate({ appId, rowId })Replace one person's access link with a new one; the old link and its sessions stop working immediately.
ADMIN only. Use it when a link reached the wrong person.
Request fields
- Name
appId- Type
- string
- Description
- Name
rowId- Type
- string
- Description
Response fields
- Name
token- Type
- string
- Description
- Name
link- Type
- string
- Description
autessa.app.allREAD
autessa.app.all({ pageSize, pageToken })List every custom app you can access in the current company.
Returns each accessible app with its latest/published version numbers, hosting mode, slug, and your access level. Not paginated.
Request fields
- Name
pageSize- Type
- number
- Description
- Name
pageToken- Type
- string
- Description
Response fields
- Name
apps- Type
- CustomAppV2Dto[]
- Description
- Name
nextPageToken- Type
- string
- Description
autessa.app.checkSlugREAD
autessa.app.checkSlug({ appId, publicSlug })Check whether a public URL slug is available and validly formatted, returning {available, reason}.
Pass appId so the app's own current slug counts as available. Call before app.share with a non-default hosting mode, which requires a valid slug.
Request fields
- Name
appId- Type
- string
- Description
- Name
publicSlug- Type
- string
- Description
Response fields
- Name
available- Type
- boolean
- Description
- Name
reason- Type
- string
- Description
autessa.app.cloneMUTATE
autessa.app.clone({ appId, appName })Create a new private app you own by copying another app's draft source files.
Copies only the draft source; versions, publish state, hosting config, and custom domains are not carried over — the clone starts unpublished and private. Requires READ access to the source app.
Request fields
- Name
appId- Type
- string
- Description
- Name
appName- Type
- string
- Description
Response fields
- Name
app- Type
- CustomAppV2Dto
- Description
- Name
files- Type
- string[]
- Description
autessa.app.createMUTATE
autessa.app.create({ appName, description, templateType })Create a new custom web app from a starter template and bootstrap its draft files.
Required: appName. ALWAYS pass templateType explicitly, chosen by the app's purpose for good out-of-the-box styling: LANDING_PAGE for a marketing/informational page, SAAS_APP for an interactive multi-screen product app (email client, CRM, portal), DASHBOARD for a data/analytics view; use bare BOOTSTRAP only for an intentionally empty canvas. The app's files are then edited outside the script (app editor, the autessa CLI, or the copilot's app-file tools); publish with app.publish and poll app.publishStatus until terminal.
Request fields
- Name
appName- Type
- string
- Description
- Name
description- Type
- string
- Description
- Name
templateType- Type
- "BOOTSTRAP" | "LANDING_PAGE" | "SAAS_APP" | "DASHBOARD"
- Description
Response fields
- Name
app- Type
- CustomAppV2Dto
- Description
- Name
files- Type
- string[]
- Description
autessa.app.deleteMUTATE
autessa.app.delete({ appId })Permanently delete an app: its custom domains, all draft/version/build files, and database rows.
Irreversible. Requires ADMIN access. Any open server-side workspaces for the app are reaped along with it.
Request fields
- Name
appId- Type
- string
- Description
Response fields
- Name
success- Type
- boolean
- Description
autessa.app.domains.addMUTATE
autessa.app.domains.add({ appId, domainName })Attach a customer-owned custom domain to a PUBLIC-hosted app and get the CNAME (and possibly TXT verification) records the domain owner must create.
ADMIN only. Provisioning is asynchronous and can take minutes to days: poll domains.status (PENDING_TXT/PENDING_DNS to PROVISIONING to ACTIVE), and use domains.verify to force a recheck.
Request fields
- Name
appId- Type
- string
- Description
- Name
domainName- Type
- string
- Description
Response fields
- Name
domain- Type
- CustomAppDomainDto
- Description
autessa.app.domains.removeMUTATE
autessa.app.domains.remove({ appId, domainId })Detach a custom domain from an app and tear down its CDN tenant.
ADMIN only. The domain stops serving the app immediately.
Request fields
- Name
appId- Type
- string
- Description
- Name
domainId- Type
- string
- Description
Response fields
- Name
success- Type
- boolean
- Description
autessa.app.domains.statusREAD
autessa.app.domains.status({ appId, pageSize, pageToken })List an app's custom domains with status, CNAME target, live URL when ACTIVE, and the TXT verification record when PENDING_TXT.
The place to poll while a domain provisions.
Request fields
- Name
appId- Type
- string
- Description
- Name
pageSize- Type
- number
- Description
- Name
pageToken- Type
- string
- Description
Response fields
- Name
domains- Type
- CustomAppDomainDto[]
- Description
- Name
cnameTarget- Type
- string
- Description
- Name
nextPageToken- Type
- string
- Description
autessa.app.domains.verifyMUTATE
autessa.app.domains.verify({ appId, domainId })Synchronously run one step of domain provisioning (DNS check, tenant creation, certificate attach) instead of waiting for the next scheduled poll; also resets a FAILED domain for retry.
Call after the domain owner has created the requested DNS records to advance provisioning immediately.
Request fields
- Name
appId- Type
- string
- Description
- Name
domainId- Type
- string
- Description
Response fields
- Name
domains- Type
- CustomAppDomainDto[]
- Description
- Name
cnameTarget- Type
- string
- Description
autessa.app.getREAD
autessa.app.get({ appId })Fetch one app's full details (versions, hosting mode, slug, public URL, your access level) plus its draft file listing.
Reading an app also refreshes its read-only src/autessa/** library files to the platform's current versions, so files reflects the up-to-date draft tree.
Request fields
- Name
appId- Type
- string
- Description
Response fields
- Name
app- Type
- CustomAppV2Dto
- Description
- Name
files- Type
- string[]
- Description
autessa.app.getSharingDetailsREAD
autessa.app.getSharingDetails({ appId })Get an app's sharing level, company permission, hosting mode, per-user grants, and your own access level.
Read-only view of exactly what app.share would modify.
Request fields
- Name
appId- Type
- string
- Description
Response fields
- Name
sharingLevel- Type
- "PRIVATE" | "SPECIFIC_MEMBER" | "COMPANY"
- Description
- Name
companyPermissionLevel- Type
- "READ" | "WRITE" | "PUBLISH" | "ADMIN"
- Description
- Name
hostingMode- Type
- "DEFAULT" | "PUBLIC" | "AUTH_CODE" | "CUSTOM_AUTH" | "TOKEN"
- Description
- Name
sharedWith- Type
- UserShareWrapper[]
- Description
- Name
userAccessLevel- Type
- "READ" | "WRITE" | "PUBLISH" | "ADMIN"
- Description
autessa.app.previewUrlREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Generate a short-lived signed preview URL for the app's latest published version.
Errors until a publish has completed and been observed as SUCCESS via app.publishStatus. The URL expires; read expiresAt (epoch seconds).
autessa.app.publishMUTATE
autessa.app.publish({ appId })Snapshot the draft into a new immutable version and start an asynchronous build; returns {version, buildId, buildStatus: BUILDING} immediately.
This publishes the current saved DRAFT as-is; edits still sitting in an unsaved editing workspace are NOT included. Publishing is finalized only by polling app.publishStatus until terminal — the first poll that observes success is what marks the version published and flushes CDN caches. Requires PUBLISH or ADMIN access. Errors in this response mean the build trigger failed and the version was rolled back.
Request fields
- Name
appId- Type
- string
- Description
Response fields
- Name
app- Type
- CustomAppV2Dto
- Description
- Name
version- Type
- number
- Description
- Name
buildId- Type
- string
- Description
- Name
buildStatus- Type
- string
- Description
- Name
publishJobId- Type
- string
- Description
autessa.app.publishStatusMUTATE
autessa.app.publishStatus({ appId, publishJobId })Poll a publish's progress across every phase (QUEUED | SYNCING | SNAPSHOTTING | TRIGGERING | BUILDING | SUCCESS | FAILED); polling after publish is mandatory, because the first poll that sees the build succeed finalizes the publish (marks the version published, pins the lockfile, invalidates the CDN).
Covers the backend phases as well as the build itself, so one endpoint reports the whole lifecycle. Omit publishJobId to report on the app's most recent publish attempt. Poll until terminal is true rather than testing phase names. On FAILED the response carries error — the actual vite/npm failure — so you can fix the offending file and re-publish without a separate log fetch.
Request fields
- Name
appId- Type
- string
- Description
- Name
publishJobId- Type
- string
- Description
Response fields
- Name
publishJobId- Type
- string
- Description
- Name
phase- Type
- string
- Description
- Name
terminal- Type
- boolean
- Description
- Name
version- Type
- number
- Description
- Name
buildId- Type
- string
- Description
- Name
filesTotal- Type
- number
- Description
- Name
filesDone- Type
- number
- Description
- Name
message- Type
- string
- Description
- Name
error- Type
- string
- Description
- Name
startedAt- Type
- string
- Description
autessa.app.rollbackMUTATE
autessa.app.rollback({ appId, version })Reset the app's draft to a previously published version's source files (a restore, not a re-publish).
Copies versions/vN/source back into the draft: files the version had are written, draft files it did not have are removed (read-only src/autessa/** library files are left intact). This does NOT publish — review the restored draft, then app.publish to make it live. version must be an existing version number (see app.versions). Requires PUBLISH or ADMIN access.
Request fields
- Name
appId- Type
- string
- Description
- Name
version- Type
- number
- Description
Response fields
- Name
app- Type
- CustomAppV2Dto
- Description
- Name
version- Type
- number
- Description
- Name
files- Type
- string[]
- Description
autessa.app.updateMUTATE
autessa.app.update({ appId, appName, description, seoTitle, seoDescription, seoOgImageUrl })Update an app's metadata: appName, description, and public SEO fields.
Only the fields you send are changed; omitted fields are left as-is. Changing SEO fields on a PUBLIC-hosted app automatically rebuilds the published version, because SEO is baked in at build time. Requires WRITE access.
Request fields
- Name
appId- Type
- string
- Description
- Name
appName- Type
- string
- Description
- Name
description- Type
- string
- Description
- Name
seoTitle- Type
- string
- Description
- Name
seoDescription- Type
- string
- Description
- Name
seoOgImageUrl- Type
- string
- Description
Response fields
- Name
app- Type
- CustomAppV2Dto
- Description
autessa.app.versionsREAD
autessa.app.versions({ appId, pageSize, pageToken })List all versions of an app, newest first, with state, buildId, and live build status.
Use a version's number with app.rollback to reset the draft to that version's source.
Request fields
- Name
appId- Type
- string
- Description
- Name
pageSize- Type
- number
- Description
- Name
pageToken- Type
- string
- Description
Response fields
- Name
versions- Type
- VersionDto[]
- Description
- Name
nextPageToken- Type
- string
- Description
autessa.customAppsV2.buildFilesREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
List all files of a built version with presigned download URLs.
Each file carries a presigned URL valid for expiresInSeconds (about one hour). A null version serves the latest published build.
autessa.customAppsV2.files.createMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Create or overwrite a single draft file at filePath with content (an unconditional upsert, identical to files.update).
autessa.customAppsV2.files.deleteMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Delete a single draft file by filePath.
autessa.customAppsV2.files.listREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
List all draft file paths of an app, plus the separate read-only platform library files under src/autessa/.
autessa.customAppsV2.files.readREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Read one draft file's content by its app-root-relative filePath (for example src/App.tsx).
autessa.customAppsV2.files.readBatchREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Read multiple draft files in one call; the response maps each found path to its content (missing paths are simply absent).
autessa.customAppsV2.files.renameMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Move or rename a draft file from oldPath to newPath.
autessa.customAppsV2.files.saveBatchMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Create or overwrite many draft files in one call via a filePath-to-content map — the preferred way to write app code.
autessa.customAppsV2.files.updateMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Overwrite a single draft file's content at filePath (an unconditional upsert, identical to files.create).
autessa.customAppsV2.refreshLibrariesMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Force-refresh the read-only Autessa SDK library files (src/autessa/) in the app's draft to the platform's current versions.
Rarely needed explicitly — app.get and files.list refresh them automatically.
autessa.customAppsV2.tableSecurityMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Replace the app's runtime AutessaDB security policies (row/column security applied to the app's end-users) with the given tablePolicies.
Wholesale replace, never a merge — send the complete desired policy set; omitted tables lose their policies. Requires WRITE on the app and ADMIN on every AutessaDB table referenced.
autessa.customAppsV2.workspace.applyChangeSetMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Apply many workspace edits atomically in one call: writes (upserts), deletes, and renames, in that order, under a single lock.
The whole change set lands as one autosave, so a concurrent reader never sees it half-applied. Paths under src/autessa/ and package-lock.json are rejected (read-only). Requires WRITE access.
autessa.customAppsV2.workspace.checkoutMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Check an app out into an ADDITIONAL private server-side workspace and get its workspaceId handle, editable files, and read-only files. START HERE only if you need a fresh/extra working copy — app.create already returns an initial one.
START HERE only if you need a fresh/extra workspace — app.create already returns an initial one. Returns a workspaceId handle (e.g. ws-2) and the file list; all subsequent edits pass this handle to workspace.files.* / workspace.applyChangeSet. Checkout copies the app's current draft into an isolated working copy that is yours alone; edit it with the autosaving workspace.files.* ops (every write/delete/rename is saved immediately into the working copy — there is no explicit save step); inspect pending changes with workspace.status; then workspace.publish to flush and publish in one step (or workspace.flush to project onto the draft with a base-hash conflict check, so concurrent draft edits are never silently clobbered), or workspace.discard to throw the working copy away leaving the draft untouched. Workspaces live only on the server, never affect the browser editor mid-edit, and are reaped automatically after ~24h idle. Requires WRITE access. Pass the returned workspaceId handle to every subsequent workspace call.
autessa.customAppsV2.workspace.discardMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Throw a workspace away: delete its working copy, leaving the app's draft untouched.
Use when abandoning an experiment. The draft is never modified by discard. Requires WRITE access.
autessa.customAppsV2.workspace.files.deleteMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Delete one file from the working copy by filePath — autosaved immediately.
Paths under src/autessa/ and package-lock.json are rejected (read-only). The deletion reaches the draft only when you flush. Requires WRITE access.
autessa.customAppsV2.workspace.files.listREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
List the working copy's editable file paths plus the read-only src/autessa/ library files.
Reads within the workspace, not the shared draft.
autessa.customAppsV2.workspace.files.readREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Read one file's content from the working copy by its app-root-relative filePath.
Reads within the workspace, so it reflects your autosaved edits, not the shared draft.
autessa.customAppsV2.workspace.files.readBatchREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Read multiple working-copy files in one call; the response maps each found path to its content (missing paths are simply absent).
Reads within the workspace. Fewer round-trips than reading one at a time.
autessa.customAppsV2.workspace.files.renameMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Move or rename one file within the working copy from oldPath to newPath — autosaved immediately.
Both paths are rejected if under src/autessa/ or equal to package-lock.json (read-only). Update any imports and route entries referencing the moved file. Requires WRITE access.
autessa.customAppsV2.workspace.files.writeMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Create or overwrite one file in the working copy — autosaved immediately (no separate save step).
Paths under src/autessa/ and package-lock.json are rejected (read-only). The change lands only in the working copy until you flush. Requires WRITE access.
autessa.customAppsV2.workspace.files.writeBatchMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Create or overwrite many working-copy files in one call via a filePath-to-content map — autosaved immediately.
The preferred way to write several files at once into the workspace. Paths under src/autessa/ and package-lock.json are rejected (read-only). Requires WRITE access.
autessa.customAppsV2.workspace.flushMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Project the workspace's changes onto the app's shared draft (writes + deletes + renames) and sync the draft, then tear the workspace down.
With the default onConflict=FAIL, the flush is refused and returns conflicts[] when the draft has drifted on a path the workspace also changed — re-checkout or reconcile, do not clobber. Pass onConflict=OVERWRITE_DRAFT to force the workspace's versions over the drifted draft. On success the workspace is consumed (its working copy is deleted). Requires WRITE access.
autessa.customAppsV2.workspace.listForAppREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
List the app's currently open server-side workspaces — who opened each, when, its last activity, and how many pending changes it has relative to checkout.
Only OPEN workspaces are returned (the ones with a live working copy); flushed, discarded, and expired workspaces are omitted. This is a read: it never bumps a workspace's idle TTL, so listing does not keep a workspace alive. dirtyFileCount counts added + modified + deleted + renamed paths versus checkout, or is null when that count could not be computed. Requires READ access.
autessa.customAppsV2.workspace.publishMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Flush the workspace onto the draft, then publish — a new version starts building; returns {version, buildId, buildStatus: BUILDING}. Poll app.publishStatus for the outcome.
The normal way an agent ships work built in a workspace: flush + app.publish in one call. Honors the same onConflict semantics as workspace.flush: with FAIL (default) a drifted draft aborts before publishing. Requires PUBLISH access. After it returns, poll app.publishStatus (the FAILED response carries error) until terminal or FAILED.
autessa.customAppsV2.workspace.statusREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Show what the workspace has changed relative to checkout (added/modified/deleted/renamed), whether the draft has drifted underneath it, and whether it is clean.
draftDrifted is true when someone edited the shared draft since checkout; a subsequent workspace.flush with the default onConflict=FAIL will refuse if the drift collides with the workspace's own changes. clean is true when the workspace has no pending changes.