Share a computer's app

Share a computer's app

Shares the computer's app at {scheme}://{slug}.{publicDomain}, or updates the app it already shares: the app restarts from a fresh copy of the computer at the same address, and changed fields apply when the new copy runs. A first deploy needs slug and visibility; startCommand defaults to the control plane's own choice (a Next app that builds serves its build, any other runs npm run dev). An update keeps the app's value for each omitted field, and pending lists the requested changes that apply when the new copy goes live. Snapshots the computer into a persistent app box, runs startCommand there and serves port. The deploy runs in the background: 202 with the app in status publishing; poll the list for the outcome (lastError when it failed). The app's start command gets a read-only TRICKEST_TOKEN for the tables the computer declares in .trickest/datasets.json, and TRICKEST_BASE_URL. Requires write access to the computer's space, Enterprise and available spend. 409 SLUG_TAKEN when the address is in use; 400 INVALID_SLUG when the control plane refuses it.

POST/api/apps
Body
computerIdstringrequired
slugobject
visibilityobject
portobject
startCommandobject
cwdobject

Request

curl
curl -X POST https://trickest.io/api/apps \
  -H "Authorization: Token $TRICKEST_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ }'

Responses

202The shared app, deploying, with its pending changes
idstringrequired
slugstringrequired
urlstringrequired
visibilityenumrequired

One of: vault, trickest, public

vaultIdstringrequired
sourceSandboxIdstringrequired
sandboxIdstringrequired
portnumberrequired
startCommandstringrequired
cwdstringrequired
statusenumrequired

One of: running, stopped, publishing, failed

createdBystringrequired
createdAtstringrequired
updatedAtstringrequired
publishedAtstringrequired
lastErrorobject

codestringrequired
messagestringrequired
detailstring
phaseenum

One of: install, build, start, probe

reasonstring
exitCodeinteger
deployIdstring
logUrlstring
pendingobject

slugstring
visibilityobject
portnumber
startCommandstring
cwdstring
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.