4chems Infrastructure API

The infrastructure API from 4chems — 4 operation(s) for infrastructure.

Operations 4

GET /infra/nodes List Nodes #
GET /infra/whoami Whoami #
GET /infra/kill-switches List Kill Switches #
PATCH /infra/kill-switches/{name} Set Kill Switch #

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/4chems-com:4chems-com-infrastructure-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

4chems-com-infrastructure-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: platform-api Infrastructure API
  description: 'Platform API: infrastructure, operational, and customer tiers.'
  version: 0.12.1
tags:
- name: Infrastructure
paths:
  /infra/nodes:
    get:
      tags:
      - Infrastructure
      summary: List Nodes
      description: 'Return the infrastructure nodes known to the platform. Call this when an

        operator needs an inventory of nodes before acting on one.'
      operationId: list_nodes
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  additionalProperties:
                    type: string
                  type: object
                type: array
                title: Response List Nodes
      security:
      - HTTPBearer: []
  /infra/whoami:
    get:
      tags:
      - Infrastructure
      summary: Whoami
      description: 'Return the caller''s own infra-admin roles. Call this to confirm which

        privileges the current token carries before attempting a privileged action.'
      operationId: whoami
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  items:
                    type: string
                  type: array
                type: object
                title: Response Whoami
      security:
      - HTTPBearer: []
  /infra/kill-switches:
    get:
      tags:
      - Infrastructure
      summary: List Kill Switches
      description: 'List all registered kill switches with their env default, override, and effective value.

        Call this before flipping a switch, to see its current state.'
      operationId: list_kill_switches
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/KillSwitchOut'
                type: array
                title: Response List Kill Switches
      security:
      - HTTPBearer: []
  /infra/kill-switches/{name}:
    patch:
      tags:
      - Infrastructure
      summary: Set Kill Switch
      description: 'Set or clear *name*''s override and return the switch''s new effective state.

        Call this to flip a glass-break kill switch during an incident, or to clear an

        override once resolved; audited before commit, 404 on unknown name.'
      operationId: set_kill_switch
      security:
      - HTTPBearer: []
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
          title: Name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KillSwitchPatchIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KillSwitchOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    KillSwitchOut:
      properties:
        name:
          type: string
          title: Name
        env_default:
          type: boolean
          title: Env Default
        override:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Override
        effective:
          type: boolean
          title: Effective
        updated_by:
          anyOf:
          - type: string
          - type: 'null'
          title: Updated By
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
      type: object
      required:
      - name
      - env_default
      - override
      - effective
      - updated_by
      - updated_at
      title: KillSwitchOut
    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
    KillSwitchPatchIn:
      properties:
        enabled:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Enabled
      type: object
      required:
      - enabled
      title: KillSwitchPatchIn
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer