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-instances-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: 3.2.0
info:
title: Lathe customer Instances 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:
- name: Instances
paths:
/instances:
get:
tags:
- Instances
summary: List instances
operationId: list_instances_instances_get
parameters:
- name: tag
in: query
required: false
schema:
type: string
description: Only instances carrying this tag.
default: ''
title: Tag
description: Only instances carrying this tag.
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
type: object
additionalProperties: true
title: Response List Instances Instances Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Instances
summary: Create an instance (starts a checkout)
operationId: create_instance_instances_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InstanceCreate'
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CreatedOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}:
get:
tags:
- Instances
summary: 'One instance in full: status, billing, usage, monitoring, backups, activity'
operationId: get_instance_instances__instance_id__get
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Instance Instances Instance Id Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- Instances
summary: Rename or retag (allowed while a job runs)
operationId: patch_instance_instances__instance_id__patch
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InstancePatch'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Patch Instance Instances Instance Id Patch
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Instances
summary: 'Delete: billing stops, the VM and its backups go, a final snapshot is kept 7…'
operationId: delete_instance_instances__instance_id__delete
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
- name: confirm
in: query
required: true
schema:
type: string
description: The instance id, typed exactly.
title: Confirm
description: The instance id, typed exactly.
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Accepted'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/connection:
get:
tags:
- Instances
summary: Connection strings, password included
operationId: connection_instances__instance_id__connection_get
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Connection Instances Instance Id Connection Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/backups:
get:
tags:
- Instances
summary: Daily backups and undo snapshots that can be restored
operationId: backups_instances__instance_id__backups_get
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
type: object
additionalProperties: true
title: Response Backups Instances Instance Id Backups Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/allowlist:
put:
tags:
- Instances
summary: Replace the IP allowlist
operationId: allowlist_instances__instance_id__allowlist_put
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AllowlistIn'
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Accepted'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/engines:
put:
tags:
- Instances
summary: Set the engines on the box and their memory budgets (a budget alone moves…
operationId: engines_instances__instance_id__engines_put
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnginesIn'
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Accepted'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/reallocation:
put:
tags:
- Instances
summary: 'Automatic reallocation on or off: whether memory moves between the engines on…'
operationId: reallocation_instances__instance_id__reallocation_put
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ReallocationIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Reallocation Instances Instance Id Reallocation Put
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/engines/{engine}/settings:
put:
tags:
- Instances
summary: Replace one engine's settings (the keys and bounds are in GET /plans under…
operationId: engine_settings_instances__instance_id__engines__engine__settings_put
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
- name: engine
in: path
required: true
schema:
type: string
title: Engine
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EngineSettingsIn'
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Accepted'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Instances
summary: What one engine's settings are set to, defaults filled in and secrets masked…
operationId: engine_settings_get_instances__instance_id__engines__engine__settings_get
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
- name: engine
in: path
required: true
schema:
type: string
title: Engine
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Engine Settings Get Instances Instance Id Engines Engine Settings Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- Instances
summary: Change some of one engine's settings and leave the rest as they are; an empty…
operationId: engine_settings_patch_instances__instance_id__engines__engine__settings_patch
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
- name: engine
in: path
required: true
schema:
type: string
title: Engine
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EngineSettingsPatchIn'
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Accepted'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/sql-console:
put:
tags:
- Instances
summary: Turn the browser SQL console off, read-only or read-write; rw answers 200…
operationId: sql_console_instances__instance_id__sql_console_put
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SqlConsoleIn'
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Accepted'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/instances/{instance_id}/disk:
get:
tags:
- Instances
summary: 'Where the disk has gone, read from the machine now: a row per engine''s data…'
operationId: disk_breakdown_instances__instance_id__disk_get
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
Accepted:
properties:
status:
type: string
enum:
- queued
- already_queued
- removed
- updated
title: Status
default: queued
job_id:
anyOf:
- type: string
- type: 'null'
title: Job Id
instance_id:
type: string
title: Instance Id
message:
type: string
title: Message
job_url:
anyOf:
- type: string
- type: 'null'
title: Job Url
checkout_url:
anyOf:
- type: string
- type: 'null'
title: Checkout Url
description: 'A free instance''s upgrade: open in a browser and pay the plan''s first month; the upgrade follows the payment.'
verified:
anyOf:
- type: boolean
- type: 'null'
title: Verified
description: 'Registry credentials only: whether the registry took them. Null when there was no image of yours there to try them on.'
warning:
anyOf:
- type: string
- type: 'null'
title: Warning
description: 'Registry credentials only: why the registry refused them, when it did. They are saved either way.'
cidrs:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Cidrs
description: The allowlist as normalised (allowlist only).
settings:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Settings
description: 'Engine settings only: the whole engine as it will be once the job has run, secrets masked. A read before the job finishes still answers the previous values, so an `add` reads its result here.'
type: object
required:
- job_id
- instance_id
- message
title: Accepted
CreatedOut:
properties:
instance_id:
type: string
title: Instance Id
tier:
type: string
title: Tier
status:
type: string
enum:
- awaiting_payment
- pending
title: Status
checkout_url:
anyOf:
- type: string
- type: 'null'
title: Checkout Url
description: Open in a browser and pay (or, for a trial, verify the card). Present for paid purchases.
trial:
type: boolean
title: Trial
description: The checkout verifies the card and starts a free trial; the first month is charged when it ends.
default: false
free:
type: boolean
title: Free
description: 'A free instance: no checkout, nothing to pay now or later. One per person.'
default: false
job_id:
anyOf:
- type: string
- type: 'null'
title: Job Id
url:
type: string
title: Url
message:
type: string
title: Message
type: object
required:
- instance_id
- tier
- status
- url
- message
title: CreatedOut
SqlConsoleIn:
properties:
mode:
type: string
enum:
- 'off'
- ro
- rw
title: Mode
database:
anyOf:
- type: string
- type: 'null'
title: Database
type: object
required:
- mode
title: SqlConsoleIn
AllowlistIn:
properties:
cidrs:
items:
type: string
type: array
title: Cidrs
description: Source CIDRs allowed on 5432/6432. Empty = anywhere (TLS + password still required).
confirm:
type: string
title: Confirm
description: The exact change string returned by a refused unconfirmed call. Binds the instance, action, resource and submitted values.
default: ''
type: object
required:
- cidrs
title: AllowlistIn
EngineSettingsIn:
properties:
settings:
additionalProperties: true
type: object
title: Settings
description: Keys from the engine's settings schema; omit a key or send its default to reset it.
confirm:
type: string
title: Confirm
description: The exact change string returned by a refused unconfirmed call. Binds the instance, action, resource and submitted values.
default: ''
type: object
required:
- settings
title: EngineSettingsIn
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
EngineSettingsPatchIn:
properties:
settings:
additionalProperties: true
type: object
title: Settings
description: Keys from the engine's settings schema; every key you leave out stays as it is.
default: {}
add:
additionalProperties:
anyOf:
- items:
type: string
type: array
- type: string
type: object
title: Add
description: Entries to append to a list-valued key (GET the settings for `lists`); an entry already there is not added twice.
default: {}
remove:
additionalProperties:
anyOf:
- items:
type: string
type: array
- type: string
type: object
title: Remove
description: 'Entries to drop from a list-valued key. Applied before `add`, and an entry that is not there is not an error: the answer says what the key became.'
default: {}
confirm:
type: string
title: Confirm
description: The exact change string returned by a refused unconfirmed call. Binds the instance, action, resource and submitted values.
default: ''
type: object
title: EngineSettingsPatchIn
InstanceCreate:
properties:
tier:
type: string
title: Tier
description: free | mini | starter | plus | pro (see GET /plans; Free only where offered)
engines:
anyOf:
- items:
type: string
type: array
- additionalProperties:
additionalProperties:
type: integer
type: object
type: object
- type: 'null'
title: Engines
description: 'Engines on the box: a list of names (budgets split by default) or {name: {memory_mb}}; omit for Postgres alone. GET /plans lists what is available.'
name:
type: string
title: Name
description: A label shown instead of the id; free text, not unique.
default: ''
tags:
items:
type: string
type: array
title: Tags
description: 'Lowercase tokens for grouping: letters, digits, . _ : -'
location:
type: string
title: Location
description: Location code from GET /locations; empty = the default.
default: ''
coupon:
type: string
title: Coupon
description: A discount code for the first month.
default: ''
type: object
required:
- tier
title: InstanceCreate
ReallocationIn:
properties:
automatic:
type: boolean
title: Automatic
description: 'true: memory moves between the engines on its own from what each holds (the default); false: the advice is kept for you to apply.'
type: object
required:
- automatic
title: ReallocationIn
EnginesIn:
properties:
engines:
additionalProperties:
additionalProperties:
type: integer
type: object
type: object
title: Engines
description: '{name: {"memory_mb": n}} for every engine the box should run; omit memory_mb to split what is left.'
type: object
required:
- engines
title: EnginesIn
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
InstancePatch:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Omit to keep; empty string clears.
tags:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Tags
description: Omit to keep; empty list clears.
type: object
title: InstancePatch