Xuda Development Platform API Reference
Xuda Development Platform API Reference
This reference covers the full published method surface of the Xuda Development Platform: 136 CPI methods across app_module, data_module, build_module and api_module that create a project, author its Studio programs, read and write its tables, check and build a numbered release, and issue the developer API keys that let an external tool or an AI agent do the same work from outside. It is written for developers calling Xuda from their own code, for AI agents authoring Studio documents over MCP, and for anyone who needs to know exactly which methods a developer API key can reach and which ones only a signed-in dashboard session can. Every method key, parameter name, type and required flag below is copied from the shipped method contract.
How To Call These Methods
Every method here is a CPI method. CPI methods are dispatched by name over the Xuda API and MCP layer, and the normal credential for that layer is the account API key. You call one as POST /cpi/<method_name> with the key in the request body. For the transport-level detail, including how requests are framed and how the MCP layer exposes methods, see /api-mcp-integration.
Three things decide whether a given call succeeds.
1. The private flag. In this codebase private: true means the method is not reachable with a developer API key at all. It is a dashboard-session method. A full-access key is refused on any private method, and a custom key's allowlist is only consulted for non-private methods. Of the 136 methods here, 71 are API-key reachable and 65 are dashboard-session only. No key mode, no plan and no domain setting crosses that wall.
2. The clearance. Clearance is the session requirement checked on every call:
| Clearance | What it requires |
|---|---|
public |
Nothing. No session and no key. |
user |
A signed-in account. |
user_access |
The owner of the app, or any active team share on it. |
developer |
The owner, or a developer or admin share. |
admin |
The owner, or an admin share. |
Superuser accounts pass every clearance. A handful of methods carry an empty clearance string in the method contract, which makes the access check throw "clearance is a mandatory field" for any caller; those are internal and are marked as such below.
3. The plan floor. A min_plan value is a membership-plan rank floor. Only three methods in this product carry one, all pro. See ## Plan Gates at the end for the full picture, including the deploy methods that are the real Pro gate for most accounts.
Key modes. A developer API key is either account-scoped or app-scoped, and comes in two access modes. Full access means every non-private method, evaluated at call time, so methods added after the key was issued are covered automatically. Custom access means an explicit api_allow_methods allowlist, and new methods are not included until you add them. Keys can also be restricted to a list of allowed domains, and each key carries a status of draft, active, suspended or delete.
MCP. The same key doubles as an MCP credential. An MCP session built from a key registers every non-private method that key may call as a tool, deriving each tool's input schema from the method's declared fields, and proxies the call back through /cpi/<method>. MCP traffic is tagged channel: 'mcp' in the account log, so it can be told apart from plain REST.
What The Availability Labels Mean
Every method below carries one explicit availability line. Read it first, because it tells you whether you can call the method from your own code today.
- Availability: API key means an external developer API key or the MCP layer can call it, and so can a signed-in dashboard session.
privateis not set on the method. This is the label on 70 of the 136 methods. - Availability: Dashboard session means a signed-in user in the Xuda dashboard can call it and an API key cannot, because the method is flagged
private: true. The account identity comes from the session. This is the label on 58 methods. - Availability: Public endpoint means the method's clearance is
public, so no session and no key is required. Four methods carry it. Note the nuance:get_app_configis public and in the API-key catalog, whileget_metrics,get_public_projectsandget_studio_resourcesare public but alsoprivate: true, so they answer an unauthenticated call yet are still never exposed as an API-key or MCP tool. - Availability: Operator only means Xuda staff or the platform itself, listed for completeness. Four methods carry it:
search_apps, which additionally refuses anyone outside the superuser account list, and the three schema-conversion methods whose empty clearance makes them unreachable through the normal dispatcher.
The Method Surface At A Glance
The 136 methods fall into nine groups. The first five are the Development Platform proper. The last four live in app_module for historical reasons but are surfaced by adjacent products; they are documented here because they are part of the same catalog and a key with full access will see them.
| Group | Methods | API key | Dashboard session | Public | Operator |
|---|---|---|---|---|---|
| Studio authoring API | 8 | 8 | 0 | 0 | 0 |
| Project, app and operations API | 54 | 22 | 27 | 4 | 1 |
| Data API | 12 | 6 | 3 | 0 | 3 |
| Build and release API | 6 | 4 | 2 | 0 | 0 |
| API key management | 8 | 0 | 8 | 0 | 0 |
| Server files, SSH and firewall | 33 | 30 | 3 | 0 | 0 |
| Website lifecycle | 4 | 0 | 4 | 0 | 0 |
| Advertising campaigns | 8 | 0 | 8 | 0 | 0 |
| External app embedding | 3 | 0 | 3 | 0 | 0 |
| Total | 136 | 70 | 58 | 4 | 4 |
The 56 deploy_module methods that publish a project (deploy_spa, deploy_vps, deploy_datacenter and the rest) are not part of this surface. They belong to the Deployment and Cloud Hosting products and every one of them is private: true.
Method Index
Studio Authoring API
| Method | What It Does |
|---|---|
| get_studio_guide | Serves the Studio authoring guide for AI agents, generated from the server's live registries. |
| get_prog_examples | Lists and fetches curated working example programs to pattern a build on. |
| get_progs | Lists a project's studio nodes, as summaries or as complete documents. |
| get_prog | Fetches one studio node by id as full JSON. |
| create_prog | Creates a studio node using the same factory Studio itself uses. |
| validate_prog | Runs the checker plus an AI-mistake landmine scan on a candidate or existing document. |
| save_prog | Saves a full studio document, compiling JavaScript nodes on the way in. |
| delete_prog | Soft-deletes a studio node. |
Project, App And Operations API
| Method | What It Does |
|---|---|
| create_project | Creates a project, its own database and its default plugins and folders. |
| get_app_info | Reads one application's information. |
| get_app_config | Reads an application's runtime config. |
| turn_app_on | Resumes a suspended application. |
| turn_app_off | Suspends an application. |
| validate_destroy_app | Checks whether an application can be permanently deleted. |
| pre_destroy_app | Internal pre-dispatch hook that stamps the termination timestamp before a destroy. |
| destroy_app | Permanently deletes an application. |
| get_public_projects | Lists the public projects available as boilerplates. |
| get_account_items_grid | Paginated list of everything the account owns or shares, for the items grid. |
| search_apps | Superuser search across apps by name, website, email, owner or replicate. |
| update_app_property_object | Merges many keys into one whitelisted app property object. |
| update_app_single_property | Sets one key inside a whitelisted app property object. |
| copy_properties_from_parent | Copies a whitelisted property object from the app's replicate parent. |
| enable_app_branding | Turns app branding on and attaches its billing line. |
| disable_app_branding | Turns app branding off. |
| app_visibility_on | Makes the application publicly listed. |
| app_visibility_off | Makes the application private. |
| create_instance_visibility_on | Lets others create instances of this project. |
| create_instance_visibility_off | Stops others creating instances of this project. |
| save_deploy_settings | Saves the project's deploy settings. |
| get_studio_docs_by_type | Returns studio or deployed-build documents filtered by type, status and build. |
| list_studio_doc_versions | Lists version-history snapshots of one studio document. |
| checkout_items_for_user | Releases every studio node the caller currently has checked in. |
| run_programs_checker | Runs the program checker across the whole project. |
| clear_program_checks | Deletes every stored check result for the project. |
| get_studio_resources | Returns the shared Studio resources catalog. |
| get_app_tables | Returns the project's studio table documents, excluding local pouchdb tables. |
| update_npm_dependencies | Writes the dependency map, rewrites package.json and runs npm install. |
| compact_database | Deletes archived documents and compacts the project database. |
| clear_traffic_logs | Deletes the application's visit log documents. |
| resize_server | Resizes the application's hosting server. |
| set_runtime_user_assist | Turns runtime user assist on or off. |
| set_runtime_utility_screen | Turns the runtime utility screen on or off. |
| change_under_attack_mode | Toggles Cloudflare under-attack mode for the application. |
| destroy_backup | Permanently deletes a backup. |
| get_app_cron_jobs | Lists the cron jobs deployed for the project. |
| get_project_instances | Lists the project's instances. |
| disconnect_instance_maintainer | Disconnects the instance maintainer process. |
| reconnect_instance_maintainer | Reconnects the instance maintainer process. |
| configure_datacenter_replication | Configures cross-datacenter replication for the app. |
| update_domain_setup | Updates the application's domain setup. |
| validate_domain_setup_subdomain | Validates a requested subdomain. |
| verify_app_dns_info | Looks up WHOIS data and verifies the SSL certificate for the custom domain. |
| get_app_csr_certificate | Retrieves the application's CSR certificate. |
| save_app_ca_certificate | Stores a certificate authority for the application. |
| get_app_firewall | Reads the application's firewall configuration. |
| configure_app_firewall | Updates the application's firewall configuration. |
| get_app_traffic_overview | Reads the application's traffic overview. |
| get_app_traffic_metrics | Reads the application's traffic metrics. |
| get_db_activity | Reads database activity for the application. |
| get_dashboard_metrics | Reads dashboard metrics, usage and pricing summaries for the caller. |
| get_metrics | Reads high-level platform metrics. |
| get_app_users | Returns the user ids attached to an app and its team apps. |
Data API
| Method | What It Does |
|---|---|
| dbs_read | Reads table records with range, single-row, sort, filter and archive options. |
| dbs_create | Creates a record in a table. |
| dbs_update | Replaces the data of one record. |
| dbs_delete | Soft-deletes or permanently deletes records by id. |
| dbs_restore | Restores soft-deleted records. |
| get_table_counts | Returns active and archived record counts for a table. |
| repair_table | Recasts every value to its declared type and rebuilds the table's indexes. |
| copy_table | Copies a table's structure and data from one app to another. |
| convert_db | Runs all pending schema conversions for the app. |
| add_conversion | Records a pending schema conversion. Internal. |
| get_pending_conversions | Lists pending schema conversions. Internal. |
| update_conversion_completion_status | Marks a conversion completed. Internal. |
Build And Release API
| Method | What It Does |
|---|---|
| build_app | Checks the project, freezes every live studio document and publishes a numbered release. |
| get_app_releases | Lists the project's releases. |
| get_release_note_info | Reads the release note for one build. |
| delete_release | Soft-deletes a release and removes its build folder when unused. |
| install_instance_build | Installs a specific build into an instance app. |
| update_instance_build | Replicates the master app's build to an instance. |
API Key Management
| Method | What It Does |
|---|---|
| create_account_api_key | Creates an account-scoped API key. |
| update_account_api_key | Updates an account API key's name, status, methods and domains. |
| get_account_api_keys | Lists the account's API keys. |
| get_account_system_api_methods | Lists the account-level methods a key may be allowed to call. |
| create_app_api_key | Creates an application-scoped API key. |
| update_app_api_key | Updates an application API key's name, status, methods and domains. |
| get_app_api_keys | Lists the application's API keys. |
| get_app_system_api_methods | Lists the application-level methods a key may be allowed to call. |
Server Files, SSH And Firewall
| Method | What It Does |
|---|---|
| agent_firewall_list | Lists the inbound firewall rules for the current app. |
| agent_firewall_open | Opens inbound TCP ports on the current app's firewall. |
| agent_firewall_close | Closes inbound TCP ports on the current app's firewall. |
| vps_fs_list | Lists a directory on the project's VPS over SFTP. |
| vps_fs_read | Reads a file on the VPS. |
| vps_fs_write | Creates or overwrites a file on the VPS. |
| vps_fs_write_batch | Writes many files over a single SFTP session. |
| vps_fs_mkdir | Creates a directory recursively on the VPS. |
| vps_fs_rename | Renames or moves a file or directory. |
| vps_fs_delete | Deletes a file or directory recursively. |
| vps_fs_search | Searches a directory subtree by filename or by contents. |
| vps_fs_tail | Returns the tail of a file, with an offset for incremental polling. |
| vps_fs_disk_usage | Returns one-level disk usage of a directory. |
| vps_fs_service_action | Runs a bounded service action on the VPS. |
| vps_ssh_access_create | Creates a named SSH developer access and mints its one-time token. |
| vps_ssh_access_list | Lists every SSH developer access for a VPS. |
| vps_ssh_access_update | Edits an access label or expiry. |
| vps_ssh_access_rotate | Regenerates an access token. |
| vps_ssh_access_set_status | Suspends or re-activates an access. |
| vps_ssh_access_delete | Deletes an access and kills its token. |
| vps_ssh_command_log | Lists commands run over SSH, from the server's own log. |
| vps_ssh_command_log_set | Turns the in-server command log on or off. |
| vps_ssh_session_events | Lists SSH and SFTP session envelopes for the server. |
| vps_enable_ssh | Enables SSH and SFTP over WebSocket for the VPS. |
| vps_disable_ssh | Disables SSH over WebSocket, keeping the subdomain. |
| vps_rotate_ssh_token | Issues a fresh one-time SSH bearer token. |
| vps_enable_web_url | Gives the VPS a public xuda.app URL proxied to its web server. |
| vps_disable_web_url | Stops serving the VPS's public URL. |
| vps_set_web_port | Changes the upstream port the public URL proxies to. |
| get_vps_diagnose_report | Returns the last stored Auto Diagnose report for the app. |
| create_external_vps | Registers a third-party VPS as an external_vps app. |
| verify_external_vps_ssh | Verifies SSH reachability of an external VPS and activates it. |
| scan_vps_image_secrets | Reports credential-shaped files before a VPS is published as an image. |
Website Lifecycle
| Method | What It Does |
|---|---|
| create_static_website | Provisions a static-website app and deploys its first version. |
| deploy_static_website | Publishes a new version of a website from a drive folder. |
| change_static_website_plan | Moves a website to another hosting plan. |
| update_static_website_embeds | Saves the profile chat and contact-form embed options for a site. |
Advertising Campaigns
| Method | What It Does |
|---|---|
| create_ad_campaign | Creates a campaign app and charges its prepaid budget. |
| cancel_ad_campaign | Cancels a campaign and stops its recurring billing. |
| set_ad_campaign_status | Sets a campaign's status. |
| set_ad_campaign_card | Points a campaign's subscription at a different saved card. |
| update_ad_campaign_budget | Changes a recurring campaign's daily budget. |
| update_ad_campaign_creative | Saves edited ad copy for a campaign. |
| update_ad_campaign_settings | Saves campaign settings such as schedule, alerts and UTM naming. |
| get_ad_campaign_billing | Reads a campaign's billing summary and invoice history. |
External App Embedding
| Method | What It Does |
|---|---|
| create_external_app | Registers an external web app by URL for embedding in the dashboard. |
| verify_external_app_embed | Pre-checks the URL for frame-blocking headers. |
| confirm_external_app_visible | Confirms the embedded iframe rendered and activates the app. |
Group: Studio Authoring API
Eight methods that let an external tool or an AI agent read and write a project's Studio documents. None of them is private, so a developer API key reaches all eight over POST /cpi/<method> and an MCP session registers all eight as tools. Every one is ownership-gated by the same guard: it resolves a deployment id up to its project, verifies that the caller's uid owns the app, and refuses any app that has no project database.
The intended order of work is fixed and worth following: read get_studio_guide, fetch a pattern with get_prog_examples, build your candidate document, run validate_prog on it, then create_prog or save_prog.
get_studio_guide
Get Studio Guide
The Xuda Studio authoring guide for AIs. Read this first before creating or editing studio progs. Call it without a topic for the primer, the required workflow and the topic index, then read the topic matching what you are building (components, tables, programs, javascript, attributes, anatomy, gotchas). Enumerable facts such as menu types, xu- attributes and workflow actions are merged from the server's live registries, so the guide always matches the deployed runtime rather than a stale copy of it.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
topic |
string | No | Guide topic to read. Omit for the primer (instructions) which lists all topics. Common topics: instructions, anatomy, components, attributes, tables, programs, javascript, gotchas. |
Notes
- Clearance
user. No plan floor. Runs synchronously. - The guide is backed by eight markdown topics shipped with the runtime: anatomy, attributes, components, gotchas, instructions, javascript, programs and tables.
- Unlike
get_prog_examples, this method has no environment dependency and answers on every environment.
get_prog_examples
Get Prog Examples
Curated, working example progs from the Xuda kitchen-sink project. Call without example_id to list them (name, type, tags, one-liner), then fetch one by example_id and pattern your build on it. Examples are sanitized reference documents. Create your own progs with create_prog; never save an example verbatim.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pattern |
string | No | Case-insensitive substring matched against example names, tags and descriptions. |
menu_type |
string | No | Filter by prog type. |
example_id |
string | No | Fetch this example's full sanitized doc (from the list call). |
limit |
number | No | Max list entries (default 100, cap 500). |
Notes
- Clearance
user. No plan floor. Runs synchronously. - The example library depends on an environment setting that names the examples project. That setting is currently present on the development environment only, so on any environment without it the method answers
-404with "no examples project is configured on this environment". Write your integration so a missing example library degrades to usingget_studio_guidealone.
get_progs
Get Progs
Lists the studio nodes (programs, tables, components, routes and the rest) of a studio project. Returns summaries by default; pass full=true for complete documents.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The studio project's application id. |
menu_type |
string | No | Filter by node type. |
name_contains |
string | No | Case-insensitive substring filter on the node name. |
full |
boolean | No | Return the complete docs instead of summaries. |
include_deleted |
boolean | No | Also include soft-deleted (stat 4) nodes. |
limit |
number | No | Max nodes to return (default 500, cap 5000). |
Notes
- Clearance
user. The caller's uid must own the app and the app must have a project database. No plan floor. Runs synchronously. - Live nodes carry
stat: 3; soft-deleted ones carrystat: 4and are excluded unless you ask for them.
get_prog
Get Prog
Fetches one studio node as full JSON by its id. This is the call that gives you the _rev you must send back in save_prog.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The studio project's application id. |
prog_id |
string | Yes | The studio node id (doc _id). |
Notes
- Clearance
user. Ownership gated. No plan floor. Runs synchronously.
create_prog
Create Prog
Creates a new studio node (program, table, component, folder and so on) using the same factory Studio itself uses, so a node created over the API is identical to one created in the editor. Returns the created document.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The studio project's application id. |
menu_type |
string | Yes | The node type to create. |
menu_name |
string | Yes | Display name for the new node (1-100 chars). |
parent_id |
string | No | Optional parent studio node id; defaults to the type's standard tree section. |
properties_json |
string | No | Optional extra properties as a JSON-encoded string (e.g. {"renderType":"form"} for components). |
Notes
- Clearance
user. Ownership gated. No plan floor. Runs synchronously. - There are exactly 12 valid node types: globals, table, get_data, set_data, batch, alert, javascript, folder, route, api, component, ai_agent.
- The new document is written into the project's own database with
docType: 'studio'andstat: 3, and Studio picks it up through normal replication, so an open editor session sees it appear.
validate_prog
Validate Prog
Validates a studio prog with Xuda's own checker (structure, cross-references, workflow actions, expressions) plus a landmine scan for AI-typical mistakes: quotes inside xu-script or xu-style, unknown xu- attributes, leftover designer state $-keys, and malformed nodes. Run this before every save_prog and fix all errors; warnings are real problems too. Pass prog_json for a candidate document before saving, or prog_id to validate an existing node.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The studio project's application id. |
prog_json |
string | No | The full candidate doc as a JSON-encoded string (validate BEFORE saving). |
prog_id |
string | No | Validate an existing studio node instead of a candidate doc. |
Notes
- Clearance
user. Ownership gated. No plan floor. Runs synchronously. - The landmine scan exists because of specific, repeatable failure modes: a quote character inside
xu-scriptorxu-stylecorrupts the designer canvas, anxu-on:handler that is not an array is silently inert, andxu-bindwritten with a leading@does not bind. - The underlying checker recognizes 18
xu-UI attributes, 24 workflow actions, 9 program event types and 4 authoring tags, and carries 220 distinct check codes. - Validation does not write anything. It is safe to call as often as you like.
save_prog
Save Prog
Updates an existing studio node with a full document. The document must include _id, and _rev is checked for conflicts. Pass the document as prog_json, a JSON-encoded string. Identity and audit fields (docType, created, createdByUid) are server-owned. JavaScript progs are compiled on save, exactly as Studio's own save does: on success scriptData.dependencies is refreshed, and on failure the document is still saved with a build_error and the response carries compile.error.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The studio project's application id. |
prog_json |
string | Yes | The full studio node as a JSON-encoded string, including _id and the _rev you fetched. |
Notes
- Clearance
user. Ownership gated. No plan floor. Runs synchronously. - Conflict rule. The write is a strict insert against the
_revyou supply. A stale_revreturns a-409conflict rather than being silently merged. Re-fetch withget_prog, reapply your change, and save again. - A failed compile is not a failed save. That is deliberate, and it matches Studio's "saved without compiling" contract, so you never lose work to a syntax error.
- Run
validate_progfirst. The compiler catches JavaScript problems, not structural ones.
delete_prog
Delete Prog
Soft-deletes a studio node, using Studio's own stat: 4 convention. The globals node cannot be deleted.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The studio project's application id. |
prog_id |
string | Yes | The studio node id (doc _id). |
rev |
string | No | Optional expected _rev; the delete fails with a conflict if the node changed since. |
Notes
- Clearance
user. Ownership gated. No plan floor. Runs synchronously. - Soft-deleted nodes stay in the project database and are returned by
get_progswheninclude_deletedis set.compact_databaseis what removes them for good.
Group: Project, App And Operations API
Fifty-four methods covering project lifecycle, configuration, operational actions and read-only telemetry. This is the core Development Platform surface outside Studio authoring. Twenty-two are API-key reachable, twenty-seven are dashboard-session only, four are public endpoints and one is superuser-only.
Most of these methods take a single app_id and most carry clearance admin, which means the caller must be the app's owner or hold an admin share on it. Where a method starts a long-running job rather than answering inline, the notes say so.
create_project
Create Project
Creates a project. Behind the single call the platform creates the app document, provisions a dedicated CouchDB database for the project, pins it to a region, installs the built-in database plugin and the Tailwind framework plugin, and creates the project's Drive folders. Passing a source project makes the new project a clone of it.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_name |
string | Yes | Name of the application to create or update. |
Notes
- Clearance
user. No plan floor on the method itself, but the account's project cap is enforced here: creation is refused with "Number of projects () exceeds to the plan limits" once the plan's project allowance is used up. See ## Plan Gates. - Free-plan accounts always get a public project. Visibility is forced to public at creation time on that plan.
- Plugin installation and Drive folder creation are deliberately best-effort, so a hiccup in either never leaves you with an orphaned project.
- Cloning is a seven-step, progress-tracked operation covering plugins, plugin setup documents, studio documents, data rows, drive documents, drive files on disk and npm dependencies. The app document carries a
clone_progress_stepfrom 0 to 7 while it runs, and the project shows a clone-in-progress status until it finishes.
get_app_info
Get App Info
Retrieves application information.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | This unique identifier specifies the application whose data will be retrieved. |
Notes
- Clearance
user_access, so the owner or anyone holding an active team share on the project can call it. No plan floor. Runs synchronously.
get_app_config
Get App Config
Retrieves application config. This is the one method in the product that answers with no credential at all, because a deployed application has to be able to read its own configuration at runtime.
Availability: Public endpoint
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
domain |
string | No | Domain name associated with this request. |
liv_token |
string | No | Live session token used to scope or authorize this request. |
Notes
- Clearance
public: no session and no key is required. It is also non-private, so it appears in the API-key catalog and is registered as an MCP tool. No plan floor. Runs synchronously. - Every parameter is optional, but you need to identify the app somehow, by
app_idor bydomain.
turn_app_on
Turn App On
Turns on (resumes) the specified application.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs as a background job.
turn_app_off
Turn App Off
Turns off (suspends) the specified application.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. - Suspending is reversible and destroys nothing. It is the safe way to take an application out of service.
validate_destroy_app
Validate Destroy App
Validates whether the specified application can be permanently deleted. The dashboard calls this before it will show the destroy confirmation.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true, so an API key cannot call it. No plan floor. - Destroying is offered only to the project's owner, and never for the automatic account project.
pre_destroy_app
Pre-Destroy App
Internal synchronous hook invoked by the HTTP layer's pre-dispatch mechanism before destroy_app is queued. It stamps app_cost.terminated_ts on the deploy document so the billing view reflects the termination immediately rather than when the destruction job finishes. It replaces the standalone mark_app_terminated endpoint.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application to mark as terminated. |
Notes
- Clearance
admin.private: true. No plan floor. Runs synchronously. - You do not call this yourself. It fires as part of the
destroy_appdispatch and is listed here so the method appears in the catalog you will see.
destroy_app
Destroy App
Permanently deletes the specified application.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application to permanently delete. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. Usage enforcement is on for this method (enforce_usage: true), so it is routed through the usage and billing enforcement path. - This is not reversible. Backups and child assets are not removed with the project; delete those separately.
- The pre-dispatch hook stamps the termination timestamp synchronously before the job is queued.
get_public_projects
Get Public Projects
Retrieves public projects, the list the create wizard offers as boilerplates to clone.
Availability: Public endpoint
Parameters
This method takes no parameters.
Notes
- Clearance
public, so no session is required, but the method is alsoprivate: true, which means it is excluded from the API-key catalog and never registered as an MCP tool. No plan floor. Runs synchronously.
get_account_items_grid
Get Account Items Grid
Flat paginated list of all the account's items, owned and shared, for the dashboard items-grid view, with sort, filter, search and pinned-first support.
Availability: Dashboard session
Parameters
This method takes no parameters.
Notes
- Clearance
user.private: true. No plan floor. Runs synchronously.
search_apps
Search Apps
Searches apps by name, website, email, owner or replicate, optionally filtered by owner user ids.
Availability: Operator only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
search |
string | Yes | Text matched case-insensitively against app name, website, email, owner UID, and replicate. |
Notes
- Clearance
adminandprivate: true, and on top of that the method throws unless the caller is on the platform's superuser account list. It is a Xuda staff tool and is listed here only for completeness.
update_app_property_object
Update App Property Object
Updates multiple fields within a whitelisted app property object and syncs mirrored top-level fields like app name, icon and splash.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
property_obj |
string | Yes | Name of the whitelisted app property object to update (e.g. app_general_prop, app_icon_prop). |
data |
object | Yes | Object of key-value pairs to merge into the target property object. |
Notes
- Clearance
admin.private: true. No plan floor. - Eight property objects are whitelisted:
app_general_prop,app_icon_prop,app_splash_prop,app_firebase_prop,app_custom_prop,app_admin_prop,app_branding_propandapp_social_media_links_prop. Anything else is refused. - The merge is shallow, and mirrored top-level fields on the app document are rewritten to match.
update_app_single_property
Update App Single Property
Updates a single key within a whitelisted app property object and syncs mirrored top-level fields like app name, icon and splash.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
property_obj |
string | Yes | Name of the whitelisted app property object that contains the key to update. |
property_item |
string | Yes | Key within the property object to set to the provided value. |
Notes
- Clearance
admin.private: true. No plan floor. - The same eight-object whitelist applies as for
update_app_property_object.
copy_properties_from_parent
Copy Properties From Parent
Copies a whitelisted property object from the app's replicate parent into the app and syncs the mirrored top-level app name.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
property_obj |
string | Yes | Name of the whitelisted app property object to copy from the parent app. |
Notes
- Clearance
admin.private: true. No plan floor. - Only meaningful for a child app that has a replicate parent, such as an instance or a deployment of a project.
enable_app_branding
Enable App Branding
Enables application branding: brand colors, auth layout and logo.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. Minimum plan: pro. This is one of only three methods in the product that carries a plan floor. - Branding is a paid add-on at $80 per month, attached as a billing segment when it is switched on. Cost segments carry a one-hour minimum billable duration, so switching it on and straight back off still bills an hour.
disable_app_branding
Disable App Branding
Disables application branding.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. No plan floor: turning a paid add-on off is never gated.
app_visibility_on
App Visibility On
Marks an application as visible (publicly listed) by setting its visibility flag on.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. No plan floor. - A publicly visible project can be picked as a boilerplate by other accounts, and marketplace listing visibility follows the app's visibility.
app_visibility_off
App Visibility Off
Marks an application as hidden (not publicly listed) by setting its visibility flag off.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. Minimum plan: pro. - Free accounts are refused twice over: projects are forced to public visibility at creation on the free plan, and this method rejects free accounts by name with "free plan user cannot change app visibility to private".
create_instance_visibility_on
Create Instance Visibility On
Sets the application's create-instance visibility to public, so other accounts can create instances from it.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application whose create-instance visibility is set to public. |
Notes
- Clearance
admin.private: true. No plan floor.
create_instance_visibility_off
Create Instance Visibility Off
Sets the application's create-instance visibility to private.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application whose create-instance visibility is set to private. |
Notes
- Clearance
admin.private: true. No plan floor at the method level, but the call is rejected for free-plan accounts.
save_deploy_settings
Save Deploy Settings
Saves deploy settings for the application.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs as a background job.
get_studio_docs_by_type
Get Studio Docs By Type
Returns studio, or deployed-build, documents for an app filtered by menuType, status and optional build id. Passing a build id reads the frozen snapshot that belongs to that build instead of the live tree.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
type |
string | No | Item type to process, usually file or directory. |
build |
number | No | Value for the build field. |
stat |
number | No | Status value to apply or filter by. |
Notes
- Clearance
user_access, so the owner or an active team share can call it. No plan floor. Runs synchronously. - Status values across the platform are 1 draft, 2 active with notice, 3 active, 4 archived.
list_studio_doc_versions
List Studio Doc Versions
Lists version-history snapshots for a studio document from the app's history database. The snapshots are captured server side, and each entry is a full document, not a diff.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The application whose history database is queried. |
doc_id |
string | Yes | The studio doc whose version snapshots are listed. |
Notes
- Clearance
user_access. Access is granted to the owner, a superuser, or a holder of an active team share. No plan floor. Runs synchronously. - History lives in a separate database per project, named
<app_db>_history. - This is per-document history, not project-wide version control. Project-level history is the numbered build ladder in
## Group: Build And Release API. There are no branches and no merges.
checkout_items_for_user
Checkout Items For User
Checks out all studio nodes currently checked in by the requesting user across the app tree, clearing their check-in metadata.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
team_app_id |
string | Yes | Team app ID used in place of app_id when operating on a team app's node tree. |
Notes
- Clearance
admin.private: true. No plan floor. - Studio's multi-maker model is check-in and check-out: a studio document records who holds it, and this method releases everything one user is holding. It is the recovery path when a session ends without releasing its nodes.
run_programs_checker
Run Programs Checker
Runs the programs checker job that validates the application's studio programs. The checker loads every live studio document plus every active deployment, walks the tree in a fixed order (database, then programs, then globals, then routes), and writes one check document per program holding its errors, warnings, dependency list and the program revision it checked.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
developer, so the owner or a developer or admin share can run it.private: true. No plan floor. Runs as a background job. - Because each result stores the revision it checked, an unchanged program is skipped on the next run. Re-checking a large project is cheap.
- The checker is also run automatically at the start of
build_app, in check-only mode. - Honest caveat: the checker currently swallows exceptions and returns nothing on failure, so a crash inside the checker looks the same as a clean run. Treat a completely empty result on a project you know has problems as suspicious rather than as a pass.
- Checking costs nothing on any plan.
clear_program_checks
Clear Program Checks
Bulk-deletes every check document from the app's database, clearing all program validation results.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
developer.private: true. No plan floor. - Clearing results also clears the revision stamps, so the next
run_programs_checkerre-checks every program instead of skipping unchanged ones.
get_studio_resources
Get Studio Resources
Retrieves studio resources.
Availability: Public endpoint
Parameters
This method takes no parameters.
Notes
- Clearance
public, so no session is required, but the method isprivate: trueand therefore never reachable with an API key or as an MCP tool. No plan floor. Runs synchronously.
get_app_tables
Get App Tables
Returns the app's studio table documents, excluding pouchdb-backed local tables.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
stat |
array | No | An array of numeric status codes to filter records by: 1 = Draft records 2 = Active records with notice 3 = Active records 4 = Archived records |
Notes
- Clearance
admin. No plan floor. Runs synchronously. - Tables on the local
pouchdbdriver are deliberately invisible here, and to the whole data API. They live in the end user's browser, not in the project database. - This is the call that gives you the
table_idvalues the Data API needs.
update_npm_dependencies
Update Npm Dependencies
Updates npm dependencies for the project. The call writes the dependency map onto the app document and into the project's package.json in the studio drive, runs npm install in that folder, and syncs the drive to the servers.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
dependencies |
object | Yes | Value for the dependencies field. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. - If the project has no
package.jsonyet, the first save initializes one and asks you to save again. Two calls, not one, on a brand new project. - Both the public npm registry and the private
@xuda.ioscope are reachable from the install.
compact_database
Compact Database
Launches a background job that deletes stat-4 documents and compacts the application's database.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs as a background job, registered on demand rather than on a schedule. - Compaction is what finally removes soft-deleted studio nodes and archived rows. Anything you soft-deleted and have not yet compacted is still recoverable; after compaction it is not.
clear_traffic_logs
Clear Traffic Logs
Launches a background job that deletes the application's visit log documents.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. - Traffic metrics read from these documents, so clearing them resets what
get_app_traffic_overviewandget_app_traffic_metricscan report.
resize_server
Resize Server
Resizes the application's hosting server to the requested server type.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_hosting.app_server_type |
string | No | Value for the app hosting app server type field. |
Notes
- Clearance
admin.private: true. No plan floor. - Server sizes and their prices belong to the Cloud Hosting product, not to this one. Cost segments carry a one-hour minimum billable duration.
set_runtime_user_assist
Set Runtime User Assist
Sets runtime user assist, the live end-user session monitoring and assistance feature.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
enable |
boolean | Yes | Boolean flag that turns the feature on or off. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. - User assist is a paid add-on at $45 per month, billed once per project no matter how many sessions you watch.
set_runtime_utility_screen
Set Runtime Utility Screen
Sets runtime utility screen.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
enable |
boolean | Yes | Boolean flag that turns the feature on or off. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. - The utility screen was merged into user assist on 2026-08-02. The method is kept for callers that still use it.
change_under_attack_mode
Change Under Attack Mode
Toggles Cloudflare under-attack mode for the application.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. Minimum plan: pro. The third and last of the product's plan-gated methods. - The Cloudflare side is defense in depth and only applies when the app is fronted by Cloudflare and the corresponding bot-protection setting is on.
destroy_backup
Destroy Backup
Permanently deletes a backup.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
backup_id |
string | Yes | Value for the backup id field. |
Notes
- Clearance
admin.private: true. No plan floor. Usage enforcement is on (enforce_usage: true). - Not reversible. Destroying a project does not destroy its backups, so this is the call you need for the rest of the cleanup.
get_app_cron_jobs
Get App Cron Jobs
Lists the cron jobs deployed for the specified project, filtered by status. Read only.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the project whose cron jobs are listed. |
stat |
number | No | Deployment status to filter by: 1=off, 2=in progress, 3=active, 4=cancelled. Defaults to 3. |
Notes
- Clearance
admin.private: true. No plan floor. Runs synchronously. - Cron jobs are created by the Deployment product's cron deploy type, not here. This method only reads them.
get_project_instances
Get Project Instances
Retrieves project instances, the deployable copies of a project that carry a clean database.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs synchronously. - Instances are an Agency-plan and above capability. The plan gate sits on the deploy method that creates them, not on this read.
disconnect_instance_maintainer
Disconnect Instance Maintainer
Disconnects the instance maintainer process for the application.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. No plan floor.
reconnect_instance_maintainer
Reconnect Instance Maintainer
Reconnects the instance maintainer process for the application.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. No plan floor.
configure_datacenter_replication
Configure Datacenter Replication
Configures cross-datacenter data replication for the app, setting the replication type, source and direction.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
replicate_data.app_datacenter_replication.replicate_type |
string | Yes | Value for the replicate data app datacenter replication replicate type field. |
replicate_data.app_datacenter_replication.replicate_from |
string | Yes | Value for the replicate data app datacenter replication replicate from field. |
replicate_data.app_datacenter_replication.replicate_direction |
string | No | Value for the replicate data app datacenter replication replicate direction field. |
apply |
boolean | No | When false, the replication configuration is saved WITHOUT running it. Use this when editing an existing setup, so re-saving a completed one-time seed does not re-copy the datacenter's data. Omitted or true keeps the original behaviour: save and run immediately. |
Notes
- Clearance
admin.private: true. No plan floor at the method level. Datacenter sync is an Enterprise-tier capability on the plan ladder. - Read
applycarefully. Leaving it out means save and run. If you are only editing the configuration of a completed one-time seed, passapply: falseor you will re-copy the datacenter's data.
update_domain_setup
Update Domain Setup
Updates domain setup for the application.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain_setup |
object | Yes | Value for the domain setup field. |
domain_setup.type |
string | Yes | Value for the domain setup type field. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. - A custom domain is a paid add-on at $10 per month, and a Xuda subdomain at $15 per month.
validate_domain_setup_subdomain
Validate Domain Setup Subdomain
Validates a requested subdomain before it is claimed.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
subdomain |
string | Yes | Value for the subdomain field. |
Notes
- Clearance
admin.private: true. No plan floor.
verify_app_dns_info
Verify App Dns Info
Looks up WHOIS data and verifies the SSL certificate for the app's configured custom domain.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs as a background job. - This is a read against public DNS and the live certificate. It changes nothing, so it is safe to poll while a domain is propagating.
get_app_csr_certificate
Get App Csr Certificate
Retrieves the application's CSR certificate.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | This unique identifier specifies the application whose data will be retrieved. |
Notes
- Clearance
admin.private: true. No plan floor. Runs synchronously.
save_app_ca_certificate
Save App Ca Certificate
Saves an application CA certificate.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | This unique identifier specifies the application whose data will be retrieved. |
ca_certificate |
string | Yes | Certificate authority content to store for the application. |
Notes
- Clearance
admin.private: true. No plan floor.
get_app_firewall
Get App Firewall
Retrieves the application firewall configuration.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs synchronously.
configure_app_firewall
Configure App Firewall
Updates the application's firewall configuration.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. No plan floor. - Reading the firewall is API-key reachable, changing it is not. If you need to open a port from your own code, the per-app methods
agent_firewall_openandagent_firewall_closeare the API-key path.
get_app_traffic_overview
Get App Traffic Overview
Retrieves the application traffic overview.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs synchronously. - Reads the project's visit log documents, which
clear_traffic_logsdeletes.
get_app_traffic_metrics
Get App Traffic Metrics
Retrieves application traffic metrics.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs synchronously.
get_db_activity
Get Db Activity
Retrieves database activity for the application.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin. No plan floor. Runs synchronously.
get_dashboard_metrics
Get Dashboard Metrics
Retrieves dashboard metrics, usage data and pricing-related summaries for the current user.
Availability: Dashboard session
Parameters
This method takes no parameters.
Notes
- Clearance
user.private: true. No plan floor. Runs synchronously. - The identity comes from the session, which is why there is no
uidparameter and why an API key cannot stand in for one.
get_metrics
Get Metrics
Retrieves high-level metrics and global platform information.
Availability: Public endpoint
Parameters
This method takes no parameters.
Notes
- Clearance
public, so no session is required, but the method isprivate: trueand therefore never reachable with an API key or as an MCP tool. No plan floor. Runs synchronously.
get_app_users
Get App Users
Returns the list of user IDs associated with an app, including its owner and all replicate (team) apps.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
app_id_query |
string | Yes | Master app ID whose owner and replicate apps are queried to collect associated user IDs. |
Notes
- Clearance
admin.private: true. No plan floor. - Both parameters are mandatory:
app_idis the app the request is made against,app_id_queryis the master app whose tree is walked.
Group: Data API
Twelve methods for a project's table records and its schema maintenance. Six are API-key reachable and are the ones you will actually integrate against, three are dashboard-session only, and three are internal.
Two rules apply to the whole group. Every write validates the table first, and tables on the local pouchdb driver are refused: they live in the end user's browser, not in the project database, so they are invisible to this API and to the dashboard's Data tab. And every call routes through the datasource plugin layer, so the same six methods work whichever database plugin backs the table, with server-side translation of the filter object.
Get your table_id values from get_app_tables.
dbs_read
DBS Read
Reads records from an app table with optional row range, single-row lookup, sorting, filtering and archived-record selection.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
table_id |
string | Yes | The table_id refers to the specific table that needs to be query, as outlined in the Xuda Studio database repository. |
from |
number | No | The starting row number (0-based index) from which to begin reading records. |
to |
number | No | The ending row number (0-based index) up to which records should be read. The range includes rows from 'from' to 'to' (inclusive). |
row_id |
string | No | The unique identifier of a specific row to retrieve. When provided, only this row will be returned. |
sortModel |
array | No | An array of sorting rules, where each item defines a column ID (colId) and direction (sort). Used to sort the results based on one or more fields. |
query |
object | No | A dynamic object representing field-based filters. Each key corresponds to a column ID, and its value defines the filter type, operator, and filter value. |
archived |
boolean | No | Whether to include only archived records. If false or not provided, only active records will be returned. |
Notes
- Clearance
user_access, the most permissive clearance in the data group: the owner or any active team share can read. No plan floor. - Reads on the built-in
@xuda.io/xuda-dbs-plugin-xudadriver go through a memcached read cache, so a read immediately after a write may be served from cache. - Filtering is translated server side into the backing database's own query language. Indexes are built per table from its declared index list.
dbs_create
DBS Create
Creates a new record in the specified app table from the provided key-value table data.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
table_id |
string | Yes | The table_id refers to the specific table that needs to be updated, as outlined in the Xuda Studio database repository. |
table_data |
object | Yes | Key-value pairs, such as {'user_name': 'John', 'last_name': 'Smith'} |
Notes
- Clearance
admin. No plan floor. - The table's datasource may carry a row interceptor, a piece of code defined in the program that runs against the values in the request. If a table behaves unexpectedly on write, check its interceptor before blaming the call.
- There is no idempotency key. A repeated create makes a second record.
dbs_update
DBS Update
Replaces the data of an existing record, identified by row_id, in the specified app table.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
table_id |
string | Yes | The table_id refers to the specific table that needs to be updated, as outlined in the Xuda Studio database repository. |
row_id |
string | Yes | The row ID uniquely identifies the document to be updated. |
table_data |
object | Yes | Key-value pairs, such as {'user_name': 'John', 'last_name': 'Smith'}, will replace the current data in the document. |
Notes
- Clearance
admin. No plan floor. - This replaces the record's data. It is not a partial merge. Read the row first if you only mean to change one field.
dbs_delete
DBS Delete
Soft-deletes, or permanently deletes when permanent is set, the listed record IDs from an app table.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
table_id |
string | Yes | The table_id refers to the specific table that needs to be updated, as outlined in the Xuda Studio database repository. |
ids |
array | Yes | Array of document IDs marked for deletion |
permanent |
boolean | No | Irreversible deletion of the documents (restoration not possible). |
Notes
- Clearance
admin. No plan floor. - A soft delete archives the rows and
dbs_restorebrings them back.permanent: truecannot be undone by any call. - Deleting ids that are already deleted is harmless.
dbs_restore
DBS Restore
Restores previously soft-deleted records, identified by their IDs, in the specified app table.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
table_id |
string | Yes | The table_id refers to the specific table that needs to be restored, as outlined in the Xuda Studio database repository. |
ids |
array | Yes | Array of document ids to restore |
Notes
- Clearance
admin. No plan floor. - Only rows that were soft-deleted can be restored, and only until
compact_databasehas run.
get_table_counts
Get Table Counts
Returns the active and archived record counts for a given table in an app's database.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
table_id |
string | Yes | The table_id refers to the specific table that needs to be query, as outlined in the Xuda Studio database repository. |
Notes
- Clearance
admin. No plan floor. Runs synchronously. - Counts are cached alongside the read cache, so a count taken straight after a bulk write can lag slightly.
repair_table
Repair Table
Rebuilds and refreshes a table's records and indexes for the given app, recasting field values to their defined types.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
table_id |
string | Yes | The table_id refers to the specific table that needs to be refreshed, as outlined in the Xuda Studio database repository. |
Notes
- Clearance
admin.private: true. No plan floor. - Repair is offered only for tables on the built-in Xuda driver.
- It walks every row, recasts each value to the field's declared type, and rebuilds the table's indexes from its declared index list. On a large table this is not a quick call.
copy_table
Copy Table
Copies a table's structure and data from a source app to a target app.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
table_id |
string | Yes | Identifier of the table to copy, as defined in the Xuda Studio database. |
app_id_source |
string | Yes | Identifier of the application to copy the table from. |
app_id_target |
string | Yes | Identifier of the application to copy the table into. |
Notes
- Clearance
admin.private: true. No plan floor. - The caller needs the right clearance on both apps.
convert_db
Convert DB
Runs all pending schema conversions (field renames and table refreshes) for the given app.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
developer.private: true. No plan floor. - Conversions are recorded automatically when you rename a field or change a table in Studio. This method replays the pending ones against the stored data.
add_conversion
Add Conversion
Adds a pending schema-conversion record (rename or table_change) for an app's table, derived from the supplied data payload.
Availability: Operator only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- The method's clearance field is an empty string in the method contract, which makes the access check throw "clearance is a mandatory field" for any caller. It is internal plumbing invoked inside the platform, not a callable endpoint. Listed for completeness.
get_pending_conversions
Get Pending Conversions
Returns the list of pending schema-conversion records for the given app.
Availability: Operator only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Empty clearance, same as
add_conversion: internal only, and not reachable through the normal dispatcher by any caller. Listed for completeness.
update_conversion_completion_status
Update Conversion Completion Status
Marks a pending schema-conversion record as completed for the given app.
Availability: Operator only
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
conversion_id |
string | Yes | Identifier of the conversion record to mark as completed. |
Notes
- Empty clearance, same as the other two conversion methods: internal only. Listed for completeness.
Group: Build And Release API
Six methods that package a project into a numbered, immutable release, list what has been built, and install a build into an instance. Four are API-key reachable, which means a continuous-integration script or an agent can build a project without a browser.
A build is the unit of release. It freezes every live studio document into a snapshot keyed by build id, writes a release document with the version and notes, copies the project's Drive assets and the platform runtime into the build folder, and syncs the result to the servers. Nothing about a build changes afterwards; the next build gets the next number.
build_app
Build App
Builds a new release version of an application, running the program checker and publishing release notifications. In order, the call runs the checker in check-only mode, increments the project's last-build number, snapshots every live studio document into build-scoped documents, writes the release document with the note and version, copies the Drive assets and the platform runtime into the build folder, and syncs the build to the remote servers.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application to build. |
version |
string | Yes | Version number for the new build. |
Notes
- Clearance
developer, so the owner or a developer or admin share can build. No plan floor. Runs as a background job. Building is free on every plan; publishing the result is what needs Pro. - Side effect on every live deployment. After a successful build, every deployment replicating from this project receives a
new_version_availablenotification and is stamped as needing an update. Nothing is rolled out automatically; each deployment updates on its own schedule. - A failing check does not stop the build. The dashboard makes you opt in through a "Build and bypass errors" button, but at the API level the checker result is recorded on the build rather than used as a gate. Run
run_programs_checkeryourself and read the result if you want a hard gate. - Honest caveat: when the checker returns nothing, the error count stamped into the build's information payload can be empty rather than zero. Do not treat a missing error count as proof of a clean build.
- The build number comes from the project, not from you. The
versionyou pass is the human-readable label that goes on the release document.
get_app_releases
Get App Releases
Retrieves application releases.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
limit |
number | No | Maximum number of releases to return. Defaults to the full build history. |
Notes
- Clearance
admin. No plan floor. - Each release carries its build id, version, release note and creation date. Deleted releases are marked archived rather than removed.
get_release_note_info
Get Release Note Info
Retrieves the release note for a specific application build.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application whose release note is requested. |
build_id |
number | Yes | Build number identifying which release note to retrieve. |
Notes
- Clearance
admin. No plan floor. Runs synchronously. build_idis the numeric build, not the release document id.
delete_release
Delete Release
Soft-deletes an application release and removes its build folder if no deployments use it.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application owning the release. |
app_release_id |
string | Yes | Identifier of the release document to delete. |
Notes
- Clearance
admin. No plan floor. - A release a live deployment is currently running cannot be deleted. The call fails with "unable to remove build releases currently in use". Move the deployment to another build first.
- The release document is marked archived and the build folder is removed only when nothing references it.
install_instance_build
Install Instance Build
Installs a specific build into an instance app, optionally rebuilding and installing dependent apps.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
developer.private: true. No plan floor.
update_instance_build
Update Instance Build
Replicates the master app build to the given instance app.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
module_app_id |
string | Yes | Identifier of the instance app to update from its master app. |
Notes
- Clearance
developer.private: true. No plan floor. - Note the parameter name. This method takes
module_app_id, the instance to update, notapp_id.
Group: API Key Management
Eight methods for issuing and listing developer API keys, four account-scoped and four app-scoped. Every one of them is private: true, so a key can never mint or edit another key. This is deliberate: key management is a dashboard-session operation, and the only way to create your first key, or to widen an existing one, is by signing in.
Keys are stored with a name, a scope of account or app, an access mode of full or custom, an optional allowed-methods list, an optional allowed-domains list, and a status of 1 draft, 2 suspended, 3 active or 4 delete. The two "system API methods" reads are what populate the method picker when you build a custom key.
create_account_api_key
Create Account Api Key
Creates an account-scoped API key document for the given account.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uid |
string | Yes | Unique identifier of the account that owns this API key. |
Notes
- Clearance
user.private: true. No plan floor. - An account-scoped key can act across the account's apps, subject to the clearance of each method it calls.
update_account_api_key
Update Account Api Key
Updates an existing account API key: name, status, allowed methods and allowed domains.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
api_key |
string | Yes | Identifier of the API key document to update. |
Notes
- Clearance
user.private: true. No plan floor. - Suspending a key by setting its status takes effect on the next call. There is no separate revoke method.
- Widening a custom key's allowlist only ever adds non-private methods. Private methods stay unreachable no matter what the list says.
get_account_api_keys
Get Account Api Keys
Retrieves the account's API keys, filtered by status and sorted by creation date.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uid |
string | Yes | Unique identifier of the account whose API keys are listed. |
Notes
- Clearance
user.private: true. No plan floor. Runs synchronously.
get_account_system_api_methods
Get Account System Api Methods
Retrieves the account-level system API methods available to the caller. This is the catalog the custom-access method picker is built from.
Availability: Dashboard session
Parameters
This method takes no parameters.
Notes
- Clearance
user.private: true. No plan floor. Runs synchronously. - The catalog it returns is the non-private set. That is why you will never see a private method offered in the picker.
create_app_api_key
Create App Api Key
Creates an application-scoped API key document for the given app.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application that owns this API key. |
Notes
- Clearance
admin.private: true. No plan floor. - An app-scoped key is the right choice for an AI agent or an integration that should only ever touch one project.
update_app_api_key
Update App Api Key
Updates an existing application API key: name, status, allowed methods and allowed domains.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
api_key |
string | Yes | Identifier of the API key document to update. |
Notes
- Clearance
admin.private: true. No plan floor.
get_app_api_keys
Get App Api Keys
Retrieves the application's API keys, filtered by status and sorted by creation date.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application whose API keys are listed. |
Notes
- Clearance
admin.private: true. No plan floor. Runs synchronously.
get_app_system_api_methods
Get App System Api Methods
Retrieves the application-level system API methods available for the specified app.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Unique identifier of the application this request targets. |
Notes
- Clearance
admin.private: true. No plan floor. Runs synchronously.
Group: Server Files, SSH And Firewall
Thirty-three methods that live in the same module as the Development Platform but are surfaced by the Cloud Hosting, Full Stack VPS and External VPS products. They act on a server, not on a Studio project. They are documented here because they are part of the same 136-method catalog: a full-access key sees all thirty of the non-private ones, and an MCP session registers them as tools, so an agent pointed at your account will find them.
All thirty non-private methods carry clearance user, no plan floor, and run synchronously. Every one is owner-gated on the target app, so a key can only reach servers the account owns. The file methods work over SFTP against the project's VPS.
agent_firewall_list
Firewall: list open ports
List the inbound firewall rules (open ports) for the current app. Check what is reachable from outside before opening or closing ports.
Availability: API key
Parameters
This method takes no parameters.
Notes
- Clearance
user. No plan floor. Flagged as an MCP tool. - It acts on the current app only; there is no way to point it at a different one.
agent_firewall_open
Firewall: open ports
Open inbound TCP port(s) on the current app's firewall so the service becomes reachable from outside. Use when a service is up locally but times out from outside. Acts only on the current app.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ports |
array | Yes | TCP ports to open, as an array of strings e.g. ["80","443"]. Ranges like "8000-8100" are allowed. |
Notes
- Clearance
user. No plan floor. Flagged as an MCP tool. - Ports are strings, not numbers, and ranges are written as a single string.
agent_firewall_close
Firewall: close ports
Close inbound TCP port(s) on the current app's firewall. Acts only on the current app.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ports |
array | Yes | TCP ports to close, as an array of strings e.g. ["9090"]. |
Notes
- Clearance
user. No plan floor. Flagged as an MCP tool.
vps_fs_list
VPS Files: list directory
Lists a directory on the project's VPS over SFTP. Returns typed entries (file or dir, size, mtime, mode).
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
path |
string | No | Absolute directory path to list. Defaults to /root. |
Notes
- Clearance
user, owner-gated on the target app. No plan floor. Runs synchronously.
vps_fs_read
VPS Files: read file
Reads a file on the project's VPS over SFTP. Detects text, image and binary content and caps the inline size.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
path |
string | Yes | Absolute path of the file to read. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - Large files are truncated rather than streamed. Use
vps_fs_tailto follow a log.
vps_fs_write
VPS Files: write file
Creates or overwrites a file on the project's VPS over SFTP.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
path |
string | Yes | Absolute path of the file to write. |
content |
string | No | File contents. |
encoding |
string | No | Content encoding: utf8 (default) or base64. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - It overwrites without asking. There is no append mode and no backup copy.
vps_fs_write_batch
VPS Files: batch upload
Writes many files to the project's VPS over a single SFTP session, creating parent directories as needed. This is what a folder upload uses.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
files |
array | Yes | Array of { path, content, encoding } objects to write. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - One session for the whole array, which is markedly faster than a loop of single writes.
vps_fs_mkdir
VPS Files: create directory
Creates a directory, recursively, on the project's VPS over SFTP.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
path |
string | Yes | Absolute directory path to create. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_fs_rename
VPS Files: rename / move
Renames or moves a file or directory on the project's VPS over SFTP.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
from |
string | Yes | Absolute source path. |
to |
string | Yes | Absolute destination path. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_fs_delete
VPS Files: delete
Deletes a file or directory, recursively, on the project's VPS over SFTP.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Unique identifier of the application this request targets. |
path |
string | Yes | Absolute path of the file or directory to delete. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - Recursive and irreversible. There is no trash.
vps_fs_search
VPS Files: search
Searches a directory subtree on the VPS by filename or by file contents.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
path |
string | No | Directory to search under. |
query |
string | Yes | Search text. |
mode |
string | No | 'name' or 'content'. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_fs_tail
VPS Files: tail file
Returns the tail of a file on the VPS, with an offset for incremental polling, which is how a live log follow is built.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
path |
string | Yes | File to tail. |
from_offset |
number | No | Byte offset from a previous poll. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - Keep the byte offset the previous call returned and pass it back to read only what is new.
vps_fs_disk_usage
VPS Files: disk usage
Returns one-level disk usage of a directory on the VPS, largest children first.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
path |
string | No | Directory to measure. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_fs_service_action
VPS Files: service action
Runs a bounded service action on the VPS: an nginx test or reload, apache, caddy, a systemd daemon-reload, or a systemctl verb against a named unit.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
action |
string | No | Fixed action key (e.g. nginx_reload). |
verb |
string | No | systemctl verb (status/reload/restart/start/stop). |
unit |
string | No | systemd unit name. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - The action set is deliberately bounded. This is not a shell, and it will not run an arbitrary command.
vps_ssh_access_create
VPS SSH: add developer access
Creates a new named SSH-over-WebSocket developer access, mints a one-time connection token, and returns the plaintext token and connect commands once. Only the token's hash is stored. An expiry is optional.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
label |
string | No | Human-friendly name for the access (for example a developer name). |
expires_at |
number | No | Optional expiry as an epoch-milliseconds timestamp. The router refuses the token after this time. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - The plaintext token is returned exactly once. It is stored only as a hash, so if you lose it you must rotate the access rather than read it back.
vps_ssh_access_list
VPS SSH: list developer accesses
Lists every SSH and SFTP over WebSocket developer access for a VPS: label, creation date, expiry, active or suspended status, and live online state. Read only.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - It never returns the token itself.
vps_ssh_access_update
VPS SSH: edit developer access
Edits a named SSH developer access: change its label or its expiry. It does not change the token.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
id |
string | Yes | Identifier of the access to edit. |
label |
string | No | New label. |
expires_at |
number | No | New expiry as epoch-milliseconds, or null to clear it. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_ssh_access_rotate
VPS SSH: regenerate access token
Regenerates the connection token for an existing named SSH developer access, invalidating the previous one, and returns the new plaintext token and connect commands once.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
id |
string | Yes | Identifier of the access to regenerate. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - The old token stops working immediately. Anyone still using it is disconnected on their next attempt.
vps_ssh_access_set_status
VPS SSH: suspend or activate access
Suspends or re-activates a named SSH developer access.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
id |
string | Yes | Identifier of the access. |
status |
string | Yes | Either active or suspended. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - A suspended access is refused by the router immediately, and re-activating restores the same token.
vps_ssh_access_delete
VPS SSH: delete developer access
Deletes a named SSH developer access.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
id |
string | Yes | Identifier of the access to delete. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - Its token stops working immediately.
vps_ssh_command_log
VPS SSH: command history
Lists the commands run over SSH on this server, read live from the server's own command log. Read only.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
limit |
number | No | Maximum number of commands to return (default 300). |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - It requires the command log to be switched on for the server first, and it only covers interactive shell sessions.
vps_ssh_command_log_set
VPS SSH: switch command history on or off
Turns the in-server command log on or off. When it is on, every command typed in an interactive SSH session is recorded on the server itself so the owner can review it.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
enabled |
boolean | No | True to start recording commands, false to stop. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. Off by default.
vps_ssh_session_events
VPS SSH: session history
Lists every SSH and SFTP session opened against this server through the secure tunnel: which access was used, the client address, when it started and ended, how long it lasted, and how much data moved each way. Read only.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Application identifier. |
limit |
number | No | Maximum number of sessions to return (default 100, max 500). |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - Session envelopes only. The tunnel is end-to-end encrypted, so commands and file names are never visible to the platform.
vps_enable_ssh
VPS: enable SSH
Enables SSH and SFTP over WebSocket access for the VPS. Returns the connect commands with a token on first enable.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - Idempotent. Calling it again on an already-enabled VPS is safe and does not mint a second token. Use
vps_rotate_ssh_tokenwhen you actually want a new one.
vps_disable_ssh
VPS: disable SSH
Disables SSH-over-WebSocket access for the VPS, so the router stops resolving the tunnel. The subdomain is kept.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_rotate_ssh_token
VPS: rotate SSH token
Issues a fresh one-time SSH and SFTP over WebSocket bearer token for the VPS, invalidating any previous one, and returns the ready-to-paste connect commands.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - The token authorizes the tunnel, not the login. The server's own SSH credentials are still required.
vps_enable_web_url
VPS: enable web URL
Gives the VPS a public https://<sub>.xuda.app URL that reverse-proxies to its web server, on port 80 by default. A subdomain is allocated if the VPS does not already have one.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
port |
number | No | Upstream web port on the VPS to proxy to (default 80). |
https |
boolean | No | Proxy to https on the upstream instead of http (default false). |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_disable_web_url
VPS: disable web URL
Stops serving the VPS's public xuda.app URL. The subdomain stays reserved so you can re-enable it later.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
vps_set_web_port
VPS: set web port
Changes the upstream port, and optionally the scheme, that the public xuda.app URL proxies to on the VPS.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | No | Application identifier. |
port |
number | Yes | Upstream web port on the VPS (1-65535). |
https |
boolean | No | Proxy to https on the upstream instead of http. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously.
get_vps_diagnose_report
Get VPS Diagnose Report
Returns the last stored Auto Diagnose report for the app, or null. Read only: it reads the report already saved on the app document and performs no SSH or file access of its own.
Availability: API key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | The VPS/app whose stored Auto Diagnose report to return. |
Notes
- Clearance
user, owner-gated. No plan floor. Runs synchronously. - The report is produced by a daily operational job, so it can be up to a day old.
create_external_vps
Create External VPS
Registers a third-party VPS the user already owns as an external VPS app. It creates the app document in a pending state and returns a one-line bootstrap command that authorizes Xuda's platform public key on the target server. No password and no private key is stored.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_name |
string | Yes | Display name for the external VPS. |
data.host |
string | Yes | Hostname or IP address of the external server. |
data.port |
number | No | SSH port (default 22). |
data.ssh_user |
string | No | Login user on the target server (default root). |
data.provider_label |
string | No | Optional free-text label for the server's provider. |
Notes
- Clearance
user.private: true. No plan floor. - The app stays pending until
verify_external_vps_sshsucceeds.
verify_external_vps_ssh
Verify External VPS SSH
Verifies SSH reachability of an external VPS app using Xuda's platform key, in batch mode with accept-new host key handling and a bounded timeout. On success it captures the host fingerprint plus basic server information and marks the app active; on failure it leaves the app pending with the reason recorded.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Id of the external_vps app to verify. |
Notes
- Clearance
user.private: true. No plan floor. - Safe to repeat. A failed verification records why and changes nothing else.
scan_vps_image_secrets
Scan VPS Image For Secrets
Reports, and never deletes, credential-shaped files and secret-looking contents on a seller's VPS before it is published as a Managed VPS marketplace image.
Availability: Dashboard session
Parameters
This method takes no parameters.
Notes
- Clearance
user.private: true. No plan floor. Runs synchronously. - A clean result is not a guarantee. It checks common locations and patterns only.
Group: Website Lifecycle
Four methods that live in the same module but belong to the Websites product. All four are private: true, so none of them is reachable with a developer API key, and all four carry clearance user with no plan floor.
create_static_website
Create Website
Provisions a static-website app through the generic deploy flow: it validates the hosting tier, attaches the plan as a billing line, creates the app document and its site record, then deploys the files from the supplied drive reference.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_name |
string | Yes | Display name for the website. |
data.static_website_hosting_plan |
string | Yes | Plan tier: free, starter, pro, or business. |
data.drive_reference |
object | Yes | Source location in the user's drive, e.g. { folder_path: '/my-site' }. |
Notes
- Clearance
user.private: true. No plan floor.
deploy_static_website
Deploy Website
Reads the files at a user-drive folder reference and publishes them as a new version of the app's site, as an atomic upload followed by a pointer flip.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Id of the static-website app to deploy. |
drive_reference |
object | Yes | Source location in the user's drive, e.g. { folder_path: '/my-site' }. |
label |
string | No | Label |
version_semver |
string | No | Version Semver |
build_type |
string | No | Build Type |
Notes
- Clearance
user.private: true. No plan floor. - The switch to the new version is atomic, so visitors never see a half-uploaded site.
change_static_website_plan
Change Website Plan
Moves a website to a different hosting plan tier. No description is set for this method in the method contract.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | (no description in the method contract) |
plan |
string | Yes | (no description in the method contract) |
Notes
- Clearance
user.private: true. No plan floor.
update_static_website_embeds
Update Website Embeds
Saves the website embed options: add the profile chat widget to the site, use the profile contact form, or both. It validates that the selected profile belongs to the caller, stores the options on the app document and mirrors them onto the site document so the serving router injects the loaders.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Id of the static-website app. |
profile_chat |
object | No | { enabled, profile_id } or null to remove. Adds the profile's chat widget to every page of the site. |
profile_contact_form |
object | No | { enabled, profile_id } or null to remove. Adds the profile's contact form to the site (inline where the page has a data-xuda-contact-form container, otherwise as a floating button). |
Notes
- Clearance
user.private: true. No plan floor.
Group: Advertising Campaigns
Eight methods that live in the same module but belong to the AI Advertising product. All eight are private: true, all carry clearance user with no plan floor, and all are owner-scoped to the campaign app. Note that they take their arguments under a data object.
These methods move money. A key cannot reach them, and that is intentional.
create_ad_campaign
Create Ad Campaign
Creates an advertising campaign app and charges the prepaid budget plus a 10% automation fee to the user's saved card. It persists the full campaign configuration; the ad-platform plugin later launches it to the networks and reports metrics back.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_name |
string | Yes | Display name for the campaign. |
data.providers |
array | Yes | Ad networks to run on, e.g. ['google','meta']. |
data.budget |
object | Yes | Budget object, e.g. { amount_cents, currency, mode }. |
data.card_id |
string | Yes | Stripe card / payment-method id to charge. |
data.terms_accepted |
boolean | Yes | User accepted the advertising terms. |
Notes
- Clearance
user.private: true. No plan floor. - The charge happens as part of the create. There is no draft state that costs nothing.
cancel_ad_campaign
Cancel Ad Campaign
Cancels a campaign: it stops the recurring billing and marks the campaign cancelled.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | The campaign app to cancel. |
Notes
- Clearance
user.private: true. Owner-scoped. No plan floor.
set_ad_campaign_status
Set Ad Campaign Status
Sets a campaign's status: active, paused, pending review or cancelled.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | The campaign app to update. |
data.status |
string | Yes | New ad_status value. |
Notes
- Clearance
user.private: true. Owner-scoped. No plan floor.
set_ad_campaign_card
Set Ad Campaign Card
Points a campaign's recurring subscription at a different saved card, updating both the subscription's default source and the app document.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | The campaign app to update. |
data.card_id |
string | Yes | Stripe card / payment-method id to bill going forward. |
Notes
- Clearance
user.private: true. Owner-scoped. No plan floor.
update_ad_campaign_budget
Update Ad Campaign Budget
Changes a recurring campaign's daily budget and reprices the subscription. The monthly cap is the daily budget times 30.4 plus the 10% fee, and the new amount bills at the next cycle.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | The campaign app to update. |
data.amount_cents |
number | Yes | New daily budget in cents. |
Notes
- Clearance
user.private: true. Owner-scoped. No plan floor. - The change is not prorated into the current cycle. It applies from the next one.
update_ad_campaign_creative
Update Ad Campaign Creative
Persists edited ad copy for a campaign. Per-platform creative is stored per network slug, and the first provider mirrors to the shared creative.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | The campaign app to update. |
data.creative |
object | Yes | Creative object {headline, primary_text, description, cta, image_b64}. |
Notes
- Clearance
user.private: true. Owner-scoped. No plan floor.
update_ad_campaign_settings
Update Ad Campaign Settings
Persists campaign settings: budget rules and alerts, schedule and dayparting, UTM and naming.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | The campaign app to update. |
data.settings |
object | Yes | Settings object to shallow-merge into doc.settings. |
Notes
- Clearance
user.private: true. Owner-scoped. No plan floor. - The merge is shallow, so a nested object you send replaces the stored one rather than merging into it.
get_ad_campaign_billing
Get Ad Campaign Billing
Returns a campaign's billing summary: subscription status and next charge, the current card, and invoice and payment history.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | The campaign app to read billing for. |
Notes
- Clearance
user.private: true. Owner-scoped. No plan floor.
Group: External App Embedding
Three methods that live in the same module but belong to the External App product, which embeds a third-party web app in the dashboard for on-demand scanning and AI assistance. All three are private: true with clearance user and no plan floor.
The activation sequence matters: create_external_app registers the URL in a pending state, verify_external_app_embed is the backend pre-check, and confirm_external_app_visible is the authoritative signal that activates the app.
create_external_app
Create External App
Registers an external web app by URL as an external app, embedded in the dashboard iframe for on-demand DOM scanning and AI assistance. It creates the app document in a pending state, and stores no credentials, because the user signs in inside the embedded view. The app is activated once the iframe is confirmed visible.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_name |
string | Yes | Display name for the external app. |
data.url |
string | Yes | Full http(s) URL of the external app to embed. |
data.session_mode |
string | No | 'ephemeral' (drop the proxied session on disconnect) or 'persist' (keep it). Default ephemeral. |
Notes
- Clearance
user.private: true. No plan floor.
verify_external_app_embed
Verify External App Embed
Backend pre-check of the visibility gate: it fetches the external app's URL and detects frame-blocking headers such as X-Frame-Options and CSP frame-ancestors. It records what it found and returns a tier hint.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
app_id |
string | Yes | Id of the external_app to pre-check. |
Notes
- Clearance
user.private: true. No plan floor. - It does not activate the app. The client render confirmation is authoritative.
- Note that this method takes a top-level
app_id, notdata.app_idlike its two siblings.
confirm_external_app_visible
Confirm External App Visible
The source of truth for the visibility gate: the dashboard reports whether the proxied iframe actually rendered, and at which capability tier. On a visible render it marks the app active and stamps the tier; otherwise the app stays pending with the reason recorded.
Availability: Dashboard session
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data.app_id |
string | Yes | Id of the external_app being confirmed. |
data.visible |
boolean | Yes | Whether the iframe rendered visible content. |
data.tier |
string | No | 'drive' (same-origin proxy, scan + control) or 'view' (capture-only, read-only). |
data.detail |
string | No | Optional reason/diagnostic when not visible. |
Notes
- Clearance
user.private: true. No plan floor.
Errors
Codes returned on the CPI envelope.
| Code | Where it comes from |
|---|---|
-409 |
Write conflict. save_prog is a strict insert against the _rev you supplied, and delete_prog fails the same way when the optional rev no longer matches. Re-fetch with get_prog and retry. |
-404 |
Not found. get_prog_examples answers this with "no examples project is configured on this environment" on any environment that has no examples project configured. |
-428 |
Email not verified. An account whose email is still unverified can only call read-style methods plus a short allowlist; anything else is refused and the dashboard shows a verify-your-email prompt. Calls into a deployed app or a user group are exempt. |
Refusals that arrive as a message rather than a distinct code.
| Message you will see | What caused it |
|---|---|
| "Number of projects ( |
create_project when the account is at its plan's project cap. There is an equivalent message for the team-member cap. |
| "free plan user cannot change app visibility to private" | app_visibility_off on a free-plan account. |
| "unable to remove build releases currently in use" | delete_release on a release a live deployment is still running. |
| "clearance is a mandatory field" | Any call to one of the three schema-conversion methods, whose clearance field is empty. They are internal. |
| "couch-replication backups are retired; enable backup_node for file-export backups" | The retired replication-backup path. File-export backups through the backup node are the supported route. |
| A sentence naming the feature and the plan it needs | The plan-rank floor on app_visibility_off, enable_app_branding and change_under_attack_mode. |
Errors you should expect but that carry no special code: an ownership refusal on any Studio authoring method when the caller's uid does not own the app or when the app has no project database, and a refusal on any data method aimed at a table on the local pouchdb driver.
Plan Gates
The Development Platform is sold on the account-level membership plan ladder, not on a per-product ladder. Studio authoring itself is included on every plan.
| Plan | Price / month | Projects | Team members | Instances | Drive (GB) | AI credits | Deploy | Marketplace |
|---|---|---|---|---|---|---|---|---|
| Free | $0 | 5 | 1 | 0 | 15 | 30 | Not available | Not available |
| Pro | $49 | 50 | 2 | 0 | 50 | 600 | Available | Not available |
| Team | $149 | 250 | 100 | 0 | 250 | 1600 | Available | Not available |
| Agency | $399 | 1000 | 1000 | 500 | 1000 | 3500 | Available | Available |
| Enterprise T1 | $1999 | 5000 | 5000 | 2000 | 5000 | 10000 | Available | Available |
| Enterprise T2 | $4999 | 10000 | 10000 | 5000 | 10000 | 50000 | Available | Available |
| Enterprise T3 | Call | Unlimited | Unlimited | Unlimited | Unlimited | Unlimited | Available | Available |
Enterprise T1 adds datacenter sync and the load balancer, T2 adds outsourced servers, and T3 adds the Xuda SDK and on-prem deployment.
Where the gates actually fire.
- Only three of this product's 136 methods carry a plan floor, and all three require Pro:
app_visibility_off,enable_app_brandingandchange_under_attack_mode. Everything else, including all of Studio authoring, the whole Data API and the whole build pipeline, has no plan floor at the method level. - Publishing is the real gate. The adjacent deploy methods that put a project in front of users are gated by plan: SPA, MPA, embed, PWA, preview, API, cron, emitter, user group, datacenter, load balancer and additional deploys all require Pro; instance and marketplace deploys require Agency; the mini-app deploy requires only Free; and the VPS, full-stack VPS and web-server deploys carry no floor. Building and checking are free on every plan. Publishing a web app is not.
- Counted caps are enforced at creation time, not at call time.
create_projectrefuses once the project cap is used up, and the team-share cap is checked the same way. The automatic account project is exempt from the project cap, so an account sitting at its limit can never be locked out of its own login. - Free-plan visibility. Projects created on the free plan are forced public, and
app_visibility_offrejects free accounts by name. - Usage enforcement is switched on for
destroy_appanddestroy_backup, which routes both through the usage and billing enforcement path. - Email verification gates writes account-wide until the address is confirmed.
Add-ons a project owner can trigger from these methods. These are per-project monthly charges, not plan features:
| Add-on | Price | Method that turns it on |
|---|---|---|
| App branding | $80 / month | enable_app_branding |
| User assist | $45 / month | set_runtime_user_assist |
| Custom domain | $10 / month | update_domain_setup |
| Xuda subdomain | $15 / month | update_domain_setup |
| Auto backup | $10 / month | Backup settings |
| Deployment offline mode | $10 / month | Deployment settings |
| Backup storage | $0.05 / GB / month | Metered |
| Drive storage | $0.27 / GB / month | Metered |
Cost segments carry a one hour minimum billable duration, and hourly conversion uses an average month of 730.5 hours. Turning an add-on on and immediately off still bills an hour.
There is no per-build, per-check or per-API-call fee anywhere in this product. AI-drafted release notes consume AI credits from the account's AI Workspace balance, and that call belongs to the AI product rather than to this one.
Rate Limits And Result Caps
The method contract for this product declares no per-method rate limit. What constrains a caller instead is the plan caps above and a handful of per-method result caps:
| Method | Cap |
|---|---|
get_progs |
limit defaults to 500 nodes, capped at 5000 |
get_prog_examples |
limit defaults to 100 entries, capped at 500 |
vps_ssh_command_log |
limit defaults to 300 commands |
vps_ssh_session_events |
limit defaults to 100 sessions, maximum 500 |
get_app_releases |
limit defaults to the full build history |
Two practical notes for high-volume callers. Reads on the built-in database driver are served through a cache, so a read taken immediately after a write may be a beat behind. And a developer API key can be restricted to a list of allowed domains, which is the closest thing to a throttle the key model offers.
Idempotency And Conflicts
| Operation | Behavior on a repeat |
|---|---|
save_prog |
Not idempotent by replay. The write is a strict insert against the _rev you sent, and a stale revision answers -409 rather than merging. Re-fetch, reapply, save. |
delete_prog |
Pass rev to make the delete conditional. Without it, a repeat on an already soft-deleted node is harmless. |
create_prog |
Not idempotent. A repeat creates a second node. |
dbs_create |
Not idempotent. There is no idempotency key; a repeat writes a second record. |
dbs_delete |
Safe to repeat. Ids that are already deleted are simply skipped. permanent: true cannot be undone. |
dbs_restore |
Safe to repeat, but only works until compact_database has run. |
build_app |
Never idempotent by design. Every call takes the next build number and freezes a new snapshot. The version string you pass is a label, not the identity. |
delete_release |
Refused while a live deployment runs that build. Otherwise the release is archived and its folder removed when nothing references it. |
create_project |
Not idempotent. Each call is a new project and counts against the plan's project cap. |
vps_enable_ssh |
Idempotent. It does not mint a second token; use vps_rotate_ssh_token when you want a new one. |
vps_ssh_access_create and vps_ssh_access_rotate |
Return the plaintext token exactly once. Only its hash is stored, so a lost token means a rotate, not a re-read. |
verify_external_vps_ssh |
Safe to repeat. A failure records the reason and changes nothing else. |
Documents are revision-controlled, not locked. Studio's multi-maker model is check-in and check-out, and checkout_items_for_user is the recovery path when a session ends holding nodes. There is no cross-document transaction: a batch of save_prog calls can half-succeed, so validate everything first and be ready to resume.
Jobs And Long-Running Calls
Where a method note above says it runs as a background job, the call returns as soon as the job is queued and the work continues on the server with its own steps. build_app, run_programs_checker, compact_database, clear_traffic_logs, update_npm_dependencies, destroy_app and the on and off toggles all behave this way. Methods marked as running synchronously answer with their result inline.
Poll the resource itself to learn the outcome. A build is finished when it shows up in get_app_releases; a check run is finished when the project's check documents carry a fresh timestamp.
Webhooks
This product publishes no webhooks of its own. The DigitalOcean webhook belongs to the Deployment product, and the Stripe webhooks that maintain the consolidated subscription belong to billing.
What it does emit are in-platform notifications:
- After a successful
build_app, every deployment replicating from the project receives anew_version_availablenotification and is stampedupdate_required. Nothing is rolled out automatically. - Checker failures raised by an AI agent path also surface as notifications.
There is no cron behind builds, checks or project creation. Those are all user-triggered jobs. compact_database and clear_traffic_logs register their own background jobs on demand rather than running on a schedule.
What This Surface Does Not Cover
- The 56 deploy methods. Publishing a project to an SPA, a PWA, an API, a cron, a VPS, a datacenter or anything else belongs to the Deployment and Cloud Hosting products, and every one of those methods is
private: true, so no developer API key reaches them. Note also that eight deploy types, including iOS, Android, Windows, macOS and Linux, are currently marked beta in configuration and are refused by the deploy call, whatever their documentation and pricing may suggest. - Plugins. Installing, configuring, uninstalling, uploading and archiving plugins runs through the plugins module. This product only reads the result.
- AI release notes. The "Generate with AI" draft comes from the AI module and spends AI credits.
- Logs and request counters. The API tab's request, success and failure counts come from the logs module.
- Branching and merging. There is no branch and no merge anywhere in this code. Project-level history is the numbered, immutable build ladder, and document-level history is the snapshot list from
list_studio_doc_versions. Plan your workflow around builds and snapshots rather than around a Git model. - Broker-only internals. Beyond the 136 published methods, these modules export functions used only by other Xuda modules over the internal broker. No HTTP route reaches them, they are not part of any supported surface, and they are not listed here.