SPAN Circuits API

The Circuits API from SPAN — 2 operation(s) for circuits.

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/span-io-circuits-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 email required.

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

OpenAPI Specification

span-io-circuits-api-openapi.yml Raw ↑
openapi: 3.0.2
info:
  title: Span Auth Circuits API
  description: Span Panel REST API
  version: v1
tags:
- name: Circuits
paths:
  /api/v1/circuits:
    get:
      summary: Get Circuits
      operationId: get_circuits_api_v1_circuits_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CircuitsOut'
      security:
      - HTTPBearer: []
      tags:
      - Circuits
  /api/v1/circuits/{circuitId}:
    get:
      summary: Get Circuit State
      operationId: get_circuit_state_api_v1_circuits__circuitId__get
      parameters:
      - required: true
        schema:
          title: Circuitid
          type: string
        name: circuitId
        in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Circuit'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Circuits
    post:
      summary: Set Circuit State
      operationId: set_circuit_state_api_v1_circuits__circuitId__post
      parameters:
      - required: true
        schema:
          title: Circuitid
          type: string
        name: circuitId
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_set_circuit_state_api_v1_circuits__circuitId__post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Circuit'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Circuits
components:
  schemas:
    Body_set_circuit_state_api_v1_circuits__circuitId__post:
      title: Body_set_circuit_state_api_v1_circuits__circuitId__post
      type: object
      properties:
        relayStateIn:
          $ref: '#/components/schemas/RelayStateIn'
        priorityIn:
          $ref: '#/components/schemas/PriorityIn'
        circuitNameIn:
          $ref: '#/components/schemas/CircuitNameIn'
        userControllableIn:
          $ref: '#/components/schemas/BooleanIn'
        sheddableIn:
          $ref: '#/components/schemas/BooleanIn'
        neverBackupIn:
          $ref: '#/components/schemas/BooleanIn'
    BooleanIn:
      title: BooleanIn
      required:
      - value
      type: object
      properties:
        value:
          title: Value
          type: boolean
    Circuit:
      title: Circuit
      required:
      - id
      - relayState
      - instantPowerW
      - instantPowerUpdateTimeS
      - producedEnergyWh
      - consumedEnergyWh
      - energyAccumUpdateTimeS
      - priority
      - isUserControllable
      - isSheddable
      - isNeverBackup
      type: object
      properties:
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
        relayState:
          $ref: '#/components/schemas/RelayState'
        instantPowerW:
          title: Instantpowerw
          type: number
        instantPowerUpdateTimeS:
          title: Instantpowerupdatetimes
          type: integer
        producedEnergyWh:
          title: Producedenergywh
          type: number
        consumedEnergyWh:
          title: Consumedenergywh
          type: number
        energyAccumUpdateTimeS:
          title: Energyaccumupdatetimes
          type: integer
        tabs:
          title: Tabs
          type: array
          items:
            type: integer
        priority:
          $ref: '#/components/schemas/Priority'
        isUserControllable:
          title: Isusercontrollable
          type: boolean
        isSheddable:
          title: Issheddable
          type: boolean
        isNeverBackup:
          title: Isneverbackup
          type: boolean
    CircuitNameIn:
      title: CircuitNameIn
      required:
      - name
      type: object
      properties:
        name:
          title: Name
          type: string
    Priority:
      title: Priority
      enum:
      - UNKNOWN
      - NON_ESSENTIAL
      - NICE_TO_HAVE
      - MUST_HAVE
      type: string
      description: An enumeration.
    PriorityIn:
      title: PriorityIn
      required:
      - priority
      type: object
      properties:
        priority:
          $ref: '#/components/schemas/Priority'
    ValidationError:
      title: ValidationError
      required:
      - loc
      - msg
      - type
      type: object
      properties:
        loc:
          title: Location
          type: array
          items:
            type: string
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
    RelayState:
      title: RelayState
      enum:
      - UNKNOWN
      - OPEN
      - CLOSED
      type: string
      description: An enumeration.
    RelayStateIn:
      title: RelayStateIn
      required:
      - relayState
      type: object
      properties:
        relayState:
          $ref: '#/components/schemas/RelayState'
    CircuitsOut:
      title: CircuitsOut
      required:
      - circuits
      type: object
      properties:
        circuits:
          title: Circuits
          type: object
          additionalProperties:
            $ref: '#/components/schemas/Circuit'
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer