Lathe Apps API

The apps API from Lathe — 21 operation(s) for apps.

GitHub OpenAPI

Operations 27

GET /instances/{instance_id}/apps The apps on the box: image, port, domains, memory and the names of their… #
PATCH /instances/{instance_id}/apps Split the apps engine's budget again between the apps, in one job: {memory… #
PUT /instances/{instance_id}/apps/{name} Add an app or change one: the box pulls the image, starts it beside the running… #
PATCH /instances/{instance_id}/apps/{name} Change some of an app's settings and leave the rest: send only the fields you… #
DELETE /instances/{instance_id}/apps/{name} Stop an app and remove it; its data directory on the box stays, its environment… #
POST /instances/{instance_id}/apps/import An app from a GitHub repository, in one step: read the repository, add what it… #
PUT /instances/{instance_id}/apps/{name}/env Replace an app's environment; the app restarts with it #
PATCH /instances/{instance_id}/apps/{name}/env Add, overwrite or remove some of an app's variables, leaving the rest; the app… #
GET /instances/{instance_id}/apps/{name}/logs The last lines of an app's log, read from the machine now #
PUT /instances/{instance_id}/registry The registry credentials every app on the box pulls with #
POST /instances/{instance_id}/apps/{name}/actions/deploy Pull the app's image again, tag unchanged or not, and restart it #
POST /instances/{instance_id}/apps/{name}/actions/restart Restart one app's container on the image it is already running; nothing is… #
GET /guides/apps Hosting an app on a box and deploying it from GitHub Actions, as markdown #
GET /github/installations The GitHub accounts connected to this Lathe account, and for each one any… #
PUT /github/installations/{installation_id}/repos Narrow the repositories this account may use on a GitHub installation it shares… #
GET /github/repos The repositories the Lathe app can see for this account: what an import can take #
GET /github/repos/{owner}/{name} What importing a repository would do: the workflow that builds its image, the… #
GET /instances/{instance_id}/apps/{name}/github What this app is connected to on GitHub: the repository, who builds it and that… #
PUT /instances/{instance_id}/apps/{name}/github Connect this app to a workflow of yours or to a build of ours, and move it… #
DELETE /instances/{instance_id}/apps/{name}/github Disconnect this app from GitHub; it keeps running exactly what it runs #
GET /builds What this account's builds are doing: the ones in flight and the step each is… #
GET /instances/{instance_id}/apps/{name}/builds Every build of this app, newest first, each with how it was built: the failed… #
GET /instances/{instance_id}/apps/{name}/builds/{run_id} One build, with everything it printed: what failed, what was installed, and… #
POST /instances/{instance_id}/apps/{name}/github/actions/deploy Deploy the newest green build of the connected workflow now #
POST /instances/{instance_id}/apps/{name}/github/actions/retry Deploy a green build again after its deploy failed: the build stands, so no new… #
POST /instances/{instance_id}/apps/{name}/github/actions/rebuild Build a commit again on Lathe's builder, named by the run of the build that… #
POST /instances/{instance_id}/apps/{name}/github/actions/rollback Go back to a build this app deployed before, by the digest it ran then #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lathe-live:lathe-live-apps-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lathe-live-apps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lathe customer Apps API
  description: 'Manage your Lathe instances from code or from an AI agent.


    **Authentication.** Create an API key on the Access page of the portal and send it as

    `Authorization: Bearer lathe_…`. Keys act as the customer who created them; they cannot create or

    revoke other keys.


    **Creating an instance.** Where `GET /plans` offers Free, `POST /instances` with `tier: "free"` creates a $0 instance immediately, with no card or checkout; it returns `checkout_url: null`. Free has 1000 GB outbound traffic per month and no daily backups. A paid plan returns `checkout_url`:

    open it in a browser and pay; the instance is provisioned as soon as the payment page returns and

    the response''s `instance_id` is valid from the start (poll `GET /instances/{id}` - its `status` goes

    `awaiting_payment` → `pending` → `creating` → `running`; `payment_failed` if the card was declined,

    `error` if creation failed). A coupon that covers the whole first month skips the page. Every paid

    purchase goes through the hosted page, card on file or not. Where the trial is offered (`GET /plans` →

    `trial`), a customer''s first Mini starts with a 14-day free trial and the response says `trial: true`.

    With `trial.card = "later"` the instance is created at once (`status: pending`, no `checkout_url`) and it is kept

    from the portal''s billing page before the trial ends; without that it pauses and is deleted a week later. What

    keeping it costs depends on the gateway: where a card can be verified and held, adding one charges nothing and the

    first month is charged when the trial ends; where the provider holds the subscription itself there is no such page,

    so keeping the instance is the purchase and the first month is charged at once, ending the trial there. With

    `trial.card = "start"`, `checkout_url` verifies the card first (a temporary $1 authorisation that is released) and

    the first month is charged when the trial ends.


    **Slow operations are jobs.** Reset, restore, rotate, allowlist, upgrade, SQL console and delete

    answer `202` with a `job_id`; one job runs per instance at a time and the instance answers `409`

    while one is queued or running. Destructive actions (reset, restore, delete) require

    `confirm` to equal the instance id. (The portal asks for the instance''s name instead, since that is what a

    person knows; either is accepted.)


    The same operations are available to AI agents over MCP: the server is the MCP host itself, no path.'
  version: '1.0'
servers:
- url: /api/v1
tags:


# --- truncated at 32 KB (67 KB total) ---
# Full source: https://artifacts.apis.io/lathe-live/openapi/lathe-live-apps-api-openapi.yml