installs.apply / installs.list / installs.update / installs.context / installs.remove / installs.preview for the declaration a project is applied from and what its crew knows, artifacts.list for the catalog it is applied out of, companyTemplates.draft / companyTemplates.create / companyTemplates.list for a company saved as a private template, listings.list / listings.checks for the company’s marketplace listings and what a new one would send, profile.get / profile.update for the public profile its listings credit, freeSite.get / freeSite.update for the site Start puts live, and earnings.setUpPayouts for where its earnings are paid. API detail: Apps.
create
POST /v1/apps. AppCreate is { name, description?, type?, mcp? } — type is "frontend_only" (default) or "fullstack"; mcp is the path of the MCP endpoint a fullstack app serves ("/mcp"), refused on frontend_only. Idempotent on the name.
list
GET /v1/apps, cursor-paginated.
get
GET /v1/apps/{id}. A fullstack app’s backend advances on read — poll here until status is terminal.
update
PATCH /v1/apps/{id}. AppPatch is { description?: string | null, mcp?: string | null }. Setting mcp mints the app’s VETTA_MCP_TOKEN secret and connects every agent that can access the app to its tools as <app>.<tool>; null removes both. See Tools from your apps.
delete
DELETE /v1/apps/{id}. Tears down the hosting project and, for fullstack, the app database. Irreversible.
deploy
POST /v1/apps/{id}/deployments. files maps paths to base64 contents; the build runs asynchronously. content_hash is an opaque digest of files you compute (up to 128 characters). The platform stores it as sent, never checks it, and echoes it on every deployment read, so you can compare it against the newest deployment and skip uploading an unchanged site.
redeploy
POST /v1/apps/{id}/deployments with { from_deployment }. Ships one of the app’s earlier deployments again, as a new deployment, from the files the platform kept — nothing is uploaded, so a site of any deployable size comes back. Poll deployments as for deploy.
deploymentFiles
GET /v1/apps/{id}/deployments/{deployment_id}/files. The file map a deployment shipped: { object: "app_deployment_files", deployment_id, files }, path → base64. not_found for a build made before files were kept.
deployments
GET /v1/apps/{id}/deployments. Non-terminal builds advance on read.
setSecret
POST /v1/apps/{id}/secrets. Write-only: the value never comes back on any read. Overwrites an existing name. The names the platform manages itself — a fullstack app’s DATABASE_* variables and VETTA_MCP_TOKEN (set through update’s mcp) — are refused forbidden.
secrets
GET /v1/apps/{id}/secrets — names and timestamps only, never values.
deleteSecret
DELETE /v1/apps/{id}/secrets/{name}. A platform-managed name (see setSecret) is refused forbidden.
connectDomain
POST /v1/apps/{id}/domains. The domain must already exist at client.domains; connecting is pointing, never registering.
domains
GET /v1/apps/{id}/domains.
disconnectDomain
DELETE /v1/apps/{id}/domains/{domain} — by domain name.
entry
POST /v1/apps/{id}/entry. A one-click way into an app whose operator gate the platform generated. Answers a ticket valid for two minutes, never the app’s token: POST it to url as a form field from the operator’s browser, and never put it in a query string.
permissions
GET /v1/apps/{id}/permissions. What the app’s own key may do: its scopes, never the key.
access
GET /v1/apps/{id}/access. How a person gets into the app without the Studio: its URL and its generated DASHBOARD_PASSWORD — null until one is provisioned. An audited reveal; hand the value to a person, never put it in a URL or a log.
rotateAccess
POST /v1/apps/{id}/access. Regenerates the password and the DASHBOARD_TOKEN, and answers the new password. Rotating is revoking: every browser already signed in is signed out.
query
POST /v1/apps/{id}/db/query. fullstack apps only; a frontend_only app answers feature_not_configured. The database as a whole — tables, a REST facade over them, migrations, and this same query without naming the app — is client.database.
installs.apply
POST /v1/blueprints/installs. Records one applied declaration for a project — with what, by whom, and against which revision — and, when you name a published pair instead of sending one, performs the apply too.
Sending a declaration records only, and that is the right shape for this client: you reconciled it yourself, which is the upsert-by-name every other method here performs, so report comes back null. Omitting the declaration and naming a published blueprint and template asks the server to reconcile the catalog’s bytes for you, as you, and report is what that run did — one line per resource, refusals included.
expected_revision is expected_version copied: omit it for a deliberate unconditional apply, or send the revision you believe you are moving from and a mismatch is refused revision_conflict, whose message names the paths at which the stored declaration and yours disagree. Send 0 to create: a project that already exists is refused rather than re-applied.
selection: { agents: string[]; apps: string[] } names which of the template’s crew this apply provisions; omit it and the whole crew is. A deselected agent is not created, its schedules are not armed and its intake does not open; one that already exists is left running, and the report names it under deselected — apart from skipped, because a choice is not a failure. A selection that leaves out a required agent or app is refused validation_failed, naming every missing one. The install stores the selection it was applied with (null for everything, and for every install written before the field existed). See Templates.
installs.list
GET /v1/blueprints/installs. Every install in the organization, most recently applied first; project narrows it to one project’s.
installs.update
PATCH /v1/blueprints/installs/{id}. Rewrites the setup answers of an applied install — the whole map, not a merge, so send every answer you mean to keep. Each key must be a question the install’s artifact declares, and each value a string or a list of strings; anything else is refused validation_failed. The install’s context_updated_at moves and its revision does not: an answer edit is not an apply, re-provisions nothing and briefs no agent again. The crew reads the new answer through installs.context the next time it looks.
installs.context
GET /v1/blueprints/installs/{id}/context. What the crew of this install knows about the business: { object: "project_context", project, blueprint, template, artifact_version, answers: { key, label, value }[], apps: { name, url }[], agents: { name, role }[], updated_at }, derived from the install and its report — the answers as the artifact’s questions label them, the apps with the URL each is served at, the agents with the role each was declared with. It is the same object a template agent reads through its built-in project_context tool.
installs.remove
DELETE /v1/blueprints/installs/{id}. Takes a template out of the company: its agents are fired (their timers stop, their open cards lose their name), its unfinished board tasks and its mini apps go, and the install is deleted. Its apps, personas, skills, files and chats stay. Nothing is refunded or charged. Only the owner’s own sign-in may call it; an API key is refused forbidden. A second call is not_found.
installs.preview
GET /v1/blueprints/preview. What applying a published pair as a new project would call its agents, apps and personas here: { object: "install_preview", project, blueprint, template, artifact_version, name_prefix, agents, apps, identities }. name_prefix is "<project>-" when any declared name is already taken in the organization, and every name then carries it. Writes nothing.
artifacts.list
GET /v1/blueprints/artifacts. The published catalog, newest release first — every blueprint × template that can be run, carrying the setup questions to ask first, the crew and the apps it provisions, and the timers it runs.
The catalog belongs to no organization: it is the same list for everybody, and nothing a customer writes reaches it. Applying one of these rows sends its blueprint and template in place of a declaration, which the catalog holds server-side.
artifacts.get
GET /v1/blueprints/artifacts/{blueprint}/{template}. One listing, the newest listed release of that pair. It needs no key: a maker’s share link shows what it sells before the buyer signs up. A pair that is not listed is 404 not_found.
companyTemplates.draft
POST /v1/company_templates/draft. “Duplicate this company”: exports the crew and rewrites its company specifics into a draft declaration. A metered model call.
companyTemplates.create
POST /v1/company_templates. Saves a draft a person approved as a private template of this organization. Install it with installs.apply({ blueprint, template, project, expected_revision: 0 }); no other organization can.
companyTemplates.list
GET /v1/company_templates. This organization’s private templates, as catalog rows.
listings.checks
GET /v1/listings/checks. What listing the company in the marketplace would send — the changes made, anything refused, and every word that would be listed. Read only: a listing is posted from chat, not from the SDK.
listings.list
GET /v1/listings. The company’s own marketplace listings, newest first, each with its review status and whether it was taken_down. balance_micro_usd is what they earned and not yet paid out, and ready_micro_usd the part a payout would send now; both are null for a key without billing:read.
profile.get
GET /v1/listings/profile. The company’s public profile, which its listed templates credit: handle, name, description, avatar_url and verified.
profile.update
PATCH /v1/listings/profile. name is 1–60 characters and description at most 280. avatar is a base64 picture of at most 512 KiB, and null removes it. Only a signed-in owner or admin may update the profile; anyone else, an API key included, is forbidden.
freeSite.get
GET /v1/free-site. The site Start put live for free (ADR-2161): its app, whether it is up, whether its page shows an owner’s email, whether a change is pending (saved past today’s deploys before the plan, or still to land), and comes_down_at, when it comes down unless the team starts (null while the company is usable). A company with none answers app_id: null.
freeSite.update
PATCH /v1/free-site. Whether the built-in page shows the caller’s own email. Only a signed-in owner may change it; anyone else is forbidden, and a company with no free site is not_found. Before the plan a company gets 5 site deploys a day, in its own timezone; past that the change is saved and pending is true until it goes live.
earnings.setUpPayouts
POST /v1/earnings/payouts/account. Where the company’s marketplace earnings are paid. The owner, signed in, opens onboarding_url until ready is true.