Lathe Engines API

The engines API from Lathe — 22 operation(s) for engines.

GitHub OpenAPI

Operations 28

GET /instances/{instance_id}/postgres/databases Postgres databases on the instance with size and open connections #
POST /instances/{instance_id}/postgres/databases Create a Postgres database owned by the instance's role #
DELETE /instances/{instance_id}/postgres/databases/{name} Drop a Postgres database (confirm = its name; open sessions are terminated) #
GET /instances/{instance_id}/postgres/databases/{name}/extensions Extensions installed in a database and the ones this instance offers #
PUT /instances/{instance_id}/postgres/databases/{name}/extensions/{extension} Install an extension from the offered list #
DELETE /instances/{instance_id}/postgres/databases/{name}/extensions/{extension} Remove an extension from a database #
PUT /instances/{instance_id}/redis/console The Redis console the portal runs: off, ro or rw (also gates the endpoints… #
GET /instances/{instance_id}/redis/keys Scan keys (type, TTL, size); page with cursor #
GET /instances/{instance_id}/redis/keys/{name} One key's value (first 200 members of a collection) #
POST /instances/{instance_id}/redis/command Run one Redis command (read-only or read-write per the console mode; server… #
GET /instances/{instance_id}/couchdb/databases CouchDB databases with document counts and size #
POST /instances/{instance_id}/couchdb/databases Create a CouchDB database #
DELETE /instances/{instance_id}/couchdb/databases/{name} Delete a CouchDB database (confirm = its name) #
GET /instances/{instance_id}/nats/streams JetStream streams with subjects, messages, bytes and consumers #
POST /instances/{instance_id}/nats/streams Create a JetStream stream #
POST /instances/{instance_id}/nats/streams/{name}/actions/purge Purge every message from a stream (confirm = its name) #
DELETE /instances/{instance_id}/nats/streams/{name} Delete a stream (confirm = its name) #
GET /instances/{instance_id}/s3/buckets Object storage buckets #
POST /instances/{instance_id}/s3/buckets Create a bucket #
DELETE /instances/{instance_id}/s3/buckets/{name} Empty a bucket and delete it (confirm = its name) #
GET /instances/{instance_id}/auth/users The app's users: address, how they sign in, when they were created and last… #
POST /instances/{instance_id}/auth/users Create a user (optionally with a password; confirmed unless you say otherwise) #
POST /instances/{instance_id}/auth/users/actions/invite Mail an invitation: the server makes the user and sends them a link that signs… #
POST /instances/{instance_id}/auth/users/actions/send-link Mail somebody who already has an account a sign-in link or a password reset #
PUT /instances/{instance_id}/auth/users/{user_id}/ban Ban a user or lift a ban. Nothing of theirs is lost either way #
DELETE /instances/{instance_id}/auth/users/{user_id} Delete a user from the sign-in engine (confirm = their email address) #
POST /instances/{instance_id}/engines/postgres/query Run one SQL statement and get the rows; the SQL console's mode decides whether… #
GET /instances/{instance_id}/engines/postgres/connections Who holds a Postgres connection: by role, application_name and state, against… #

Specifications

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-engines-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-engines-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lathe customer Engines 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 (32 KB total) ---
# Full source: https://artifacts.apis.io/lathe-live/openapi/lathe-live-engines-api-openapi.yml