Smol Machines tenants API

Customer accounts (product-backend)

Operations 6

GET /v1/tenants #
POST /v1/tenants #
GET /v1/tenants/{id} #
PATCH /v1/tenants/{id} #
POST /v1/tenants/{id}/reactivate #
POST /v1/tenants/{id}/suspend #

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/smol-machines-tenants-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

smol-machines-tenants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: smolfleet apikeys Tenants API
  description: Control plane for smolvm — deploy and run machines across a cluster.
  license:
    name: Apache-2.0
  version: 0.1.0
servers:
- url: https://api.smolmachines.com
  description: Hosted smolfleet
tags:
- name: tenants
  description: Customer accounts (product-backend)
paths:
  /v1/tenants:
    get:
      tags:
      - tenants
      operationId: tenant_list
      responses:
        '200':
          description: List tenants
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TenantInfo'
    post:
      tags:
      - tenants
      operationId: tenant_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTenantRequest'
        required: true
      responses:
        '201':
          description: Tenant created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantInfo'
  /v1/tenants/{id}:
    get:
      tags:
      - tenants
      operationId: tenant_get
      parameters:
      - name: id
        in: path
        description: Tenant id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Tenant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantInfo'
        '404':
          description: Not found
    patch:
      tags:
      - tenants
      operationId: tenant_update
      parameters:
      - name: id
        in: path
        description: Tenant id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTenantRequest'
        required: true
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantInfo'
  /v1/tenants/{id}/reactivate:
    post:
      tags:
      - tenants
      operationId: tenant_reactivate
      parameters:
      - name: id
        in: path
        description: Tenant id
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Reactivated
  /v1/tenants/{id}/suspend:
    post:
      tags:
      - tenants
      operationId: tenant_suspend
      parameters:
      - name: id
        in: path
        description: Tenant id
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Suspended
components:
  schemas:
    CreateTenantRequest:
      type: object
      required:
      - name
      properties:
        id:
          type:
          - string
          - 'null'
        name:
          type: string
        planId:
          type:
          - string
          - 'null'
    UpdateTenantRequest:
      type: object
      description: Partial update — only present fields change.
      properties:
        externalBillingId:
          type:
          - string
          - 'null'
        planId:
          type:
          - string
          - 'null'
        status:
          type:
          - string
          - 'null'
    TenantInfo:
      type: object
      description: 'A tenant (customer account). Quota override fields are `None` when inherited

        from the plan. See docs/product-backend-layer.md.'
      required:
      - id
      - name
      - status
      - createdAt
      properties:
        createdAt:
          type: string
        externalBillingId:
          type:
          - string
          - 'null'
        id:
          type: string
        maxApps:
          type:
          - integer
          - 'null'
          format: int32
          minimum: 0
        maxCpus:
          type:
          - integer
          - 'null'
          format: int32
          minimum: 0
        maxMemoryMb:
          type:
          - integer
          - 'null'
          format: int64
          minimum: 0
        maxSandboxPools:
          type:
          - integer
          - 'null'
          format: int32
          minimum: 0
        name:
          type: string
        planId:
          type:
          - string
          - 'null'
        status:
          type: string
        updatedAt:
          type:
          - string
          - 'null'