VoltPlan Ops API
Operational, feed and meta endpoints: liveness and health probes, region detection diagnostics, IndexNow submission, the RSS feed, the LLM full-text export and this OpenAPI document.
Operational, feed and meta endpoints: liveness and health probes, region detection diagnostics, IndexNow submission, the RSS feed, the LLM full-text export and this OpenAPI document.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/voltplan-app:voltplan-app-ops-api"
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.
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: VoltPlan Ops API
version: 0.3.0
description: 'VoltPlan''s HTTP API. The wiring-diagram MCP server (Model Context Protocol over Streamable HTTP, tag `MCP`, at `/.well-known/mcp`) generates 12V/24V/48V wiring diagrams and performs wire gauge, fuse, battery bank, inverter, solar, and charging-time calculations; it needs no API key or account. The REST endpoints under `/api` serve the VoltPlan web app. Authentication: public endpoints need no credentials; user endpoints expect a PocketBase `users` auth token as `Authorization: Bearer ` (`userBearer`); admin endpoints additionally require `is_admin=true` and answer 403 otherwise (`adminBearer`); the IndexNow trigger uses a shared secret (`indexNowBearer`). Each operation''s `security` field names its requirement.'
contact:
name: VoltPlan
url: https://voltplan.app/developers
email: support@voltplan.app
license:
name: MIT
url: https://github.com/YUZU-Hub/wiring-diagram-mcp/blob/main/LICENSE
servers:
- url: https://voltplan.app
tags:
- name: ops
description: 'Operational, feed and meta endpoints: liveness and health probes, region detection diagnostics, IndexNow submission, the RSS feed, the LLM full-text export and this OpenAPI document.'
paths:
/health:
get:
operationId: getLiveness
tags:
- ops
summary: Liveness probe with the deployed build SHA
description: Plain-text liveness check used by the post-deploy smoke test and the container health check. The body is `ok `; GIT_SHA is baked in at image build time and is `dev` locally. Does not contact PocketBase. Answers 503 `draining ` once the container was told to stop, so its health status turns unhealthy and the proxy takes it out of rotation before it shuts down.
responses:
'200':
description: Service is up.
content:
text/plain:
schema:
type: string
pattern: ^ok \S+$
example: ok dev
'503':
description: Container is draining before shutdown.
content:
text/plain:
schema:
type: string
pattern: ^draining \S+$
example: draining dev
/api/health:
get:
operationId: getHealthStatus
tags:
- ops
summary: Health status including PocketBase reachability
description: 'Checks PocketBase with a health call. Answers 200 when PocketBase is reachable and 503 with `status: degraded` when it is not.'
responses:
'200':
description: All dependencies healthy.
content:
application/json:
schema:
$ref: '#/components/schemas/HealthStatus'
example:
status: ok
pocketbase: ok
timestamp: '2026-01-01T00:00:00.000Z'
'503':
description: PocketBase unreachable; service degraded.
content:
application/json:
schema:
$ref: '#/components/schemas/HealthStatus'
example:
status: degraded
pocketbase: error
timestamp: '2026-01-01T00:00:00.000Z'
/api/debug-region:
get:
operationId: getDebugRegion
tags:
- ops
summary: Diagnose marketplace region detection for the calling client
description: 'Returns the region the affiliate redirects would pick for this request together with the inputs used: client IP from `X-Forwarded-For`/`X-Real-IP`, the GeoIP lookup, `Accept-Language` and all `x-*`, `accept-language` and `host` request headers. Detection order: `region`/`country` query parameter, `X-VoltPlan-Region`/`X-VoltPlan-Country` header, CDN country headers, GeoIP, `Accept-Language`, default `us`.'
parameters:
- name: region
in: query
required: false
description: Force a region or country code (e.g. `de`, `at`); unknown codes are ignored.
schema:
type: string
- name: country
in: query
required: false
description: Alias of `region`, used when `region` is absent.
schema:
type: string
responses:
'200':
description: Detected region and detection inputs.
content:
application/json:
schema:
$ref: '#/components/schemas/DebugRegion'
/api/indexnow:
get:
operationId: submitSitemapToIndexNow
tags:
- ops
summary: Submit every sitemap URL to IndexNow
description: 'Collects all URLs from the sitemap and submits them to IndexNow in one batch. `success`/`status` echo the IndexNow API response; an IndexNow rejection still answers 200 with `success: false`.'
security:
- indexNowBearer: []
responses:
'200':
description: Sitemap URLs submitted.
content:
application/json:
schema:
$ref: '#/components/schemas/IndexNowSitemapSubmission'
'401':
description: 'Missing or wrong `Authorization: Bearer <INDEXNOW_SECRET>` header.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Unauthorized
'500':
description: Building the sitemap or calling IndexNow failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Failed to submit sitemap URLs
details: 'Error: fetch failed'
post:
operationId: submitUrlsToIndexNow
tags:
- ops
summary: Submit specific site paths to IndexNow
description: Each entry of `urls` is a site path (e.g. `/blog/my-post`); it is prefixed with `https://voltplan.app` and the result is submitted to IndexNow. `success`/`status` echo the IndexNow API response.
security:
- indexNowBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/IndexNowSubmitRequest'
example:
urls:
- /blog/my-post
- /de/blog/mein-post
responses:
'200':
description: URLs submitted.
content:
application/json:
schema:
$ref: '#/components/schemas/IndexNowUrlSubmission'
'400':
description: '`urls` is missing, empty or not an array, or the body is not valid JSON. The handler also maps any exception during submission to `Invalid request body`.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
emptyUrls:
value:
error: urls must be a non-empty array of paths
invalidBody:
value:
error: Invalid request body
'401':
description: 'Missing or wrong `Authorization: Bearer <INDEXNOW_SECRET>` header.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Unauthorized
/rss.xml:
get:
operationId: getRssFeed
tags:
- ops
summary: RSS 2.0 feed of the VoltPlan blog
description: RSS 2.0 document with one item per blog post. Served as `application/xml; charset=utf-8` and cached for one hour.
responses:
'200':
description: RSS 2.0 XML document.
content:
application/xml:
schema:
type: string
/llms-full.txt:
get:
operationId: getLlmsFullText
tags:
- ops
summary: Full English guide and blog text for LLMs
description: The contents of /llms.txt followed by the complete English text of every guide and blog post in one plain-text file. Statically generated and revalidated hourly.
responses:
'200':
description: Plain-text knowledge base export.
content:
text/plain:
schema:
type: string
/openapi.json:
get:
operationId: getOpenApiDocument
tags:
- ops
summary: This OpenAPI 3.1 document
description: The OpenAPI 3.1 description of the VoltPlan API, assembled from all API modules. Statically generated and revalidated hourly.
responses:
'200':
description: OpenAPI 3.1 document.
content:
application/json:
schema:
$ref: '#/components/schemas/OpenApiDocument'
components:
schemas:
DebugRegion:
type: object
description: Region detection result and the request data it was derived from.
required:
- detectedRegion
- detectedCountry
- clientIp
- xForwardedFor
- xRealIp
- geoResult
- acceptLanguage
- allHeaders
properties:
detectedRegion:
type: string
enum:
- de
- us
- uk
- fr
- es
- it
- au
description: Amazon marketplace region chosen for this request.
detectedCountry:
type:
- string
- 'null'
description: Visitor country (upper-case ISO code) from the `country` override, CDN headers or GeoIP; null when unknown.
clientIp:
type:
- string
- 'null'
description: First `X-Forwarded-For` entry, else `X-Real-IP`.
xForwardedFor:
type:
- string
- 'null'
xRealIp:
type:
- string
- 'null'
geoResult:
oneOf:
- $ref: '#/components/schemas/GeoIpLookup'
- $ref: '#/components/schemas/ErrorResponse'
- type: 'null'
description: GeoIP lookup for `clientIp`; null without a client IP or without a match; `{ error }` when geoip-lite cannot be loaded.
acceptLanguage:
type:
- string
- 'null'
allHeaders:
type: object
additionalProperties:
type: string
description: Request headers starting with `x-` plus `accept-language` and `host`.
OpenApiDocument:
type: object
description: OpenAPI 3.1 document
HealthStatus:
type: object
description: Health of the web app and its PocketBase backend.
required:
- status
- pocketbase
- timestamp
properties:
status:
type: string
enum:
- ok
- degraded
pocketbase:
type: string
enum:
- ok
- error
timestamp:
type: string
format: date-time
IndexNowSubmitRequest:
type: object
required:
- urls
properties:
urls:
type: array
minItems: 1
items:
type: string
description: Site paths such as `/blog/my-post`; a missing leading slash is added.
ErrorResponse:
type: object
description: Error body returned by VoltPlan REST endpoints.
required:
- error
properties:
error:
type: string
description: Human-readable error message.
details:
type: string
description: Optional extra context about the failure.
GeoIpLookup:
type: object
description: geoip-lite lookup result. The runtime image ships only the country database, so `region`, `city`, `timezone` and `eu` are empty and `ll` is `[null, null]`; `metro` and `area` come only with the city database.
required:
- range
- country
- region
- eu
- timezone
- city
- ll
properties:
range:
type: array
items:
type: integer
minItems: 2
maxItems: 2
country:
type: string
description: ISO 3166-1 alpha-2 code.
region:
type: string
eu:
type: string
enum:
- ''
- '0'
- '1'
timezone:
type: string
city:
type: string
ll:
type: array
items:
type:
- number
- 'null'
minItems: 2
maxItems: 2
description: Latitude, longitude.
metro:
type: integer
area:
type: integer
description: Accuracy radius in km.
IndexNowSitemapSubmission:
type: object
description: Result of submitting all sitemap URLs.
required:
- submitted
- success
- status
properties:
submitted:
type: integer
description: Number of URLs sent.
success:
type: boolean
description: IndexNow answered 2xx.
status:
type: integer
description: HTTP status returned by the IndexNow API.
IndexNowUrlSubmission:
type: object
description: Result of submitting the given paths.
required:
- submitted
- urls
- success
- status
properties:
submitted:
type: integer
description: Number of URLs sent.
urls:
type: array
items:
type: string
format: uri
description: Absolute URLs that were submitted.
success:
type: boolean
description: IndexNow answered 2xx.
status:
type: integer
description: HTTP status returned by the IndexNow API.
securitySchemes:
userBearer:
type: http
scheme: bearer
bearerFormat: JWT
description: 'PocketBase `users` auth token sent as `Authorization: Bearer <token>`. The server validates it per request with a PocketBase `authRefresh` call.'
adminBearer:
type: http
scheme: bearer
bearerFormat: JWT
description: Same PocketBase `users` auth token as `userBearer`, validated with `authRefresh`; the user record must additionally have `is_admin=true`. Missing, invalid and non-admin tokens all receive 403 (`AdminForbidden`).
indexNowBearer:
type: http
scheme: bearer
description: 'Shared secret configured server-side as `INDEXNOW_SECRET`, sent as `Authorization: Bearer <secret>`. A missing or wrong secret receives 401.'
externalDocs:
description: MCP server source, tool parameter schemas, and changelog
url: https://github.com/YUZU-Hub/wiring-diagram-mcp
x-mcp-tools:
- name: generate_wiring_diagram
description: Generate a complete 12V/24V/48V wiring diagram from a list of components (batteries, loads, chargers, solar panels, inverters). Returns PNG or SVG.
- name: calculate_wire_gauge
description: Calculate the correct wire gauge (AWG and mm²), voltage drop, and fuse size for a DC circuit given voltage, current, and cable length.
- name: calculate_battery_bank
description: Size a battery bank for a given daily energy demand, days of autonomy, and depth of discharge.
- name: calculate_battery_config
description: Work out a series/parallel configuration of individual cells or batteries for a target system voltage and capacity.
- name: calculate_charging_time
description: Estimate battery charging time from a given charger or solar array.
- name: calculate_inverter_size
description: Recommend an inverter size based on AC load profile, surge requirements, and system voltage.
- name: calculate_power_budget
description: Build a 24h power budget from loads to size batteries, solar, and wiring.
- name: calculate_solar_size
description: Size a solar array based on daily energy needs, location / sun hours, and system voltage.
- name: list_component_types
description: List the component types VoltPlan knows about (batteries, chargers, loads, inverters, panels, etc.).
- name: find_components
description: Find products in VoltPlan's small, curated component catalogue that match a spec (category, system voltage, watts, Ah/Wh, pure sine, free text), closest rating first, with product pages and buy links plus an always-available Amazon search fallback.
- name: build_bom
description: 'Build the full shopping list (bill of materials) for a system described like generate_wiring_diagram: components with matching catalogue products, cables per gauge, fuses, fuse holders, terminals, heat-shrink, and tools, with buy links.'