Source Parts Inc. Eda API

The eda API from Source Parts Inc. — 65 operation(s) for eda.

GitHub OpenAPI

Operations 67

POST /eda/erc Run an electrical rules check on a schematic #
POST /eda/schematic/svg Render a schematic to SVG #
POST /eda/pcb/job Submit an async PCB processing job #
POST /eda/analyze Analyze a PCB for affected nets #
POST /eda/drc Run Design Rule Check on a .kicad_pcb file #
POST /eda/export Export gerbers + drill + positions from a .kicad_pcb file #
POST /eda/invite Operator creates a review invite and emails the customer a launch link #
POST /eda/netlist/diff Compare two netlists and return connectivity changes #
POST /eda/netlist/validate Compare schematic netlist against PCB netlist #
POST /eda/pcb/export Export PCB netlist, component metadata, and sheet mapping #
POST /eda/pcb/export/brep Export PCB as BREP (OpenCascade boundary representation) #
POST /eda/pcb/export/dxf Export PCB as DXF #
POST /eda/pcb/export/gencad Export PCB as GenCAD #
POST /eda/pcb/export/glb Export PCB as GLB (glTF Binary) 3D model #
POST /eda/pcb/export/ipc2581 Export PCB as IPC-2581B XML #
POST /eda/pcb/export/odb Export PCB as ODB++ (ZIP archive) #
POST /eda/pcb/export/pdf Export PCB as PDF #
POST /eda/pcb/export/ply Export PCB as PLY 3D mesh #
POST /eda/pcb/export/pos Export pick-and-place position file #
POST /eda/pcb/export/step Export PCB as STEP 3D model #
POST /eda/pcb/export/stl Export PCB as STL 3D mesh #
POST /eda/pcb/export/vrml Export PCB as VRML 3D model #
POST /eda/pcb/export/xao Export PCB as XAO (SALOME geometry format) #
POST /eda/pcb/highlight Export PCB as SVG with specific nets highlighted in red #
GET /eda/pcb/job/{job_id} Poll for PCB job status #
POST /eda/pcb/place Place new footprints on a PCB #
POST /eda/pcb/reassign Reassign pad nets, merge nets, and/or move footprints #
POST /eda/pcb/refill Refill all zones in a PCB using pcbnew ZONE_FILLER #
POST /eda/pcb/remove Remove footprints by reference designator and clean up orphan copper #
POST /eda/pcb/remove-footprints Deprecated alias for POST /v1/eda/pcb/remove #
POST /eda/pcb/resize Resize footprint pads to a different package size #
POST /eda/pcb/svg Export PCB as SVG with optional net highlighting #
POST /eda/reroute/suggest Suggest routing paths for disconnected nets after rip-up #
GET /eda/review Public provisioning page the customer lands on. Claims the invite (which #
POST /eda/ripup/execute Remove tracks/vias for the given nets and return a unified diff #
POST /eda/ripup/propose Enumerate tracks/vias that would be removed for the given nets #
POST /eda/sch/export/bom Export BOM from a KiCad schematic #
POST /eda/sch/export/dxf Export schematic as DXF #
POST /eda/sch/export/hpgl Export schematic as HPGL plotter format #
POST /eda/sch/export/pdf Export schematic as PDF #
POST /eda/sch/export/ps Export schematic as PostScript #
POST /eda/schematic/annotate Update a component property value in a schematic #
POST /eda/schematic/annotations Check annotation status across all schematic sheets #
POST /eda/schematic/connect Auto-connect a symbol pin to a target coordinate with Manhattan routing #
POST /eda/schematic/diff Compare two schematic files and return structured diff #
POST /eda/schematic/instances/fix Fix project name and UUID paths in symbol instances #
POST /eda/schematic/label Add a net label or global label to a schematic #
POST /eda/schematic/netlist Export a KiCad XML netlist from a schematic #
POST /eda/schematic/pins Get exact wire connection coordinates for all pins of a symbol #
POST /eda/schematic/place Place a symbol instance in a KiCad schematic #
POST /eda/schematic/rebuild Rebuild a schematic sheet from PCB netlist data #
POST /eda/schematic/remove Remove a symbol instance from a schematic #
POST /eda/schematic/render Render a schematic as PDF via kicad-cli #
POST /eda/schematic/wire Add a wire segment between two points in a schematic #
GET /eda/sessions Eda sessions list #
POST /eda/sessions Eda session create #
GET /eda/sessions/{session_id} Eda session get #
DELETE /eda/sessions/{session_id} Eda session terminate #
POST /eda/workspace/audit Record a sync event in the audit log (MinIO sidecar) #
GET /eda/workspace/branches List all branches for a project with their latest snapshot timestamp #
POST /eda/workspace/checkpoint Save a named checkpoint from the latest snapshot in a branch #
GET /eda/workspace/checkpoints List all named checkpoints for a project #
GET /eda/workspace/history Return the audit log for a project #
POST /eda/workspace/merge Promote a branch snapshot to main #
GET /eda/workspace/pull Pull latest snapshot from a branch (default: main) #
POST /eda/workspace/push Push workspace snapshot to the caller's branch (default) or a named branch #
POST /eda/workspace/restore Restore a named checkpoint into a branch as a new snapshot #

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/source-parts:source-parts-eda-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 Specification

source-parts-eda-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Source Parts Eda API
  description: 'The Source Parts v1 API provides programmatic access to electronic parts data,

    inventory management, BOM processing, and manufacturing workflows.


    **Required headers:** every request must include a non-empty `User-Agent`

    header identifying your application (e.g. `User-Agent: your-app/1.0`).

    Requests without one are rejected with `403 Forbidden` before authentication.'
  version: 1.1.0
  contact:
    name: Source Parts Support
    email: support@source.parts
    url: https://source.parts
  license:
    name: Proprietary
    url: https://source.parts/terms
servers:
- url: https://api.source.parts/v1
  description: Production
- url: http://localhost:9900/v1
  description: Local development
security:
- ApiKeyAuth: []
tags:
- name: eda
paths:
  /eda/erc:
    post:
      tags:
      - eda
      summary: Run an electrical rules check on a schematic
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: postEdaErc
      x-operation-id-source: derived
  /eda/schematic/svg:
    post:
      tags:
      - eda
      summary: Render a schematic to SVG
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: postEdaSchematicSvg
      x-operation-id-source: derived
  /eda/pcb/job:
    post:
      tags:
      - eda
      summary: Submit an async PCB processing job
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '202':
          $ref: '#/components/responses/Accepted'
      operationId: postEdaPcbJob
      x-operation-id-source: derived
  /eda/analyze:
    post:
      tags:
      - eda
      summary: Analyze a PCB for affected nets
      x-generated: true
      x-handler: eda_ctrl.eda_analyze
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaAnalyze
      x-operation-id-source: derived
  /eda/drc:
    post:
      tags:
      - eda
      summary: Run Design Rule Check on a .kicad_pcb file
      x-generated: true
      x-handler: eda_ctrl.eda_drc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaDrc
      x-operation-id-source: derived
  /eda/export:
    post:
      tags:
      - eda
      summary: Export gerbers + drill + positions from a .kicad_pcb file
      x-generated: true
      x-handler: eda_ctrl.eda_export
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaExport
      x-operation-id-source: derived
  /eda/invite:
    post:
      tags:
      - eda
      summary: Operator creates a review invite and emails the customer a launch link
      x-generated: true
      x-handler: eda.eda_invite_create
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaInvite
      x-operation-id-source: derived
  /eda/netlist/diff:
    post:
      tags:
      - eda
      summary: Compare two netlists and return connectivity changes
      x-generated: true
      x-handler: eda_ctrl.eda_netlist_diff
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaNetlistDiff
      x-operation-id-source: derived
  /eda/netlist/validate:
    post:
      tags:
      - eda
      summary: Compare schematic netlist against PCB netlist
      x-generated: true
      x-handler: eda_ctrl.eda_netlist_validate
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaNetlistValidate
      x-operation-id-source: derived
  /eda/pcb/export:
    post:
      tags:
      - eda
      summary: Export PCB netlist, component metadata, and sheet mapping
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExport
      x-operation-id-source: derived
  /eda/pcb/export/brep:
    post:
      tags:
      - eda
      summary: Export PCB as BREP (OpenCascade boundary representation)
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_brep
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportBrep
      x-operation-id-source: derived
  /eda/pcb/export/dxf:
    post:
      tags:
      - eda
      summary: Export PCB as DXF
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_dxf
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportDxf
      x-operation-id-source: derived
  /eda/pcb/export/gencad:
    post:
      tags:
      - eda
      summary: Export PCB as GenCAD
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_gencad
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportGencad
      x-operation-id-source: derived
  /eda/pcb/export/glb:
    post:
      tags:
      - eda
      summary: Export PCB as GLB (glTF Binary) 3D model
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_glb
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportGlb
      x-operation-id-source: derived
  /eda/pcb/export/ipc2581:
    post:
      tags:
      - eda
      summary: Export PCB as IPC-2581B XML
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_ipc2581
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportIpc2581
      x-operation-id-source: derived
  /eda/pcb/export/odb:
    post:
      tags:
      - eda
      summary: Export PCB as ODB++ (ZIP archive)
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_odb
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportOdb
      x-operation-id-source: derived
  /eda/pcb/export/pdf:
    post:
      tags:
      - eda
      summary: Export PCB as PDF
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_pdf
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportPdf
      x-operation-id-source: derived
  /eda/pcb/export/ply:
    post:
      tags:
      - eda
      summary: Export PCB as PLY 3D mesh
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_ply
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportPly
      x-operation-id-source: derived
  /eda/pcb/export/pos:
    post:
      tags:
      - eda
      summary: Export pick-and-place position file
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_pos
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportPos
      x-operation-id-source: derived
  /eda/pcb/export/step:
    post:
      tags:
      - eda
      summary: Export PCB as STEP 3D model
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_step
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportStep
      x-operation-id-source: derived
  /eda/pcb/export/stl:
    post:
      tags:
      - eda
      summary: Export PCB as STL 3D mesh
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_stl
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportStl
      x-operation-id-source: derived
  /eda/pcb/export/vrml:
    post:
      tags:
      - eda
      summary: Export PCB as VRML 3D model
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_vrml
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportVrml
      x-operation-id-source: derived
  /eda/pcb/export/xao:
    post:
      tags:
      - eda
      summary: Export PCB as XAO (SALOME geometry format)
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_export_xao
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbExportXao
      x-operation-id-source: derived
  /eda/pcb/highlight:
    post:
      tags:
      - eda
      summary: Export PCB as SVG with specific nets highlighted in red
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_highlight
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbHighlight
      x-operation-id-source: derived
  /eda/pcb/job/{job_id}:
    parameters:
    - name: job_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - eda
      summary: Poll for PCB job status
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_job_status
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaPcbJobByJobId
      x-operation-id-source: derived
  /eda/pcb/place:
    post:
      tags:
      - eda
      summary: Place new footprints on a PCB
      x-generated: true
      x-handler: eda_ctrl.eda_place_footprints
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbPlace
      x-operation-id-source: derived
  /eda/pcb/reassign:
    post:
      tags:
      - eda
      summary: Reassign pad nets, merge nets, and/or move footprints
      x-generated: true
      x-handler: eda_ctrl.eda_reassign_nets
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbReassign
      x-operation-id-source: derived
  /eda/pcb/refill:
    post:
      tags:
      - eda
      summary: Refill all zones in a PCB using pcbnew ZONE_FILLER
      x-generated: true
      x-handler: eda_ctrl.eda_zone_refill
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbRefill
      x-operation-id-source: derived
  /eda/pcb/remove:
    post:
      tags:
      - eda
      summary: Remove footprints by reference designator and clean up orphan copper
      x-generated: true
      x-handler: eda_ctrl.eda_remove_footprints
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbRemove
      x-operation-id-source: derived
  /eda/pcb/remove-footprints:
    post:
      tags:
      - eda
      summary: Deprecated alias for POST /v1/eda/pcb/remove
      deprecated: true
      x-successor-version: /v1/eda/pcb/remove
      x-sunset: Wed, 28 Oct 2026 00:00:00 GMT
      x-generated: true
      x-handler: eda_ctrl.eda_remove_footprints_legacy
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbRemoveFootprints
      x-operation-id-source: derived
  /eda/pcb/resize:
    post:
      tags:
      - eda
      summary: Resize footprint pads to a different package size
      x-generated: true
      x-handler: eda_ctrl.eda_resize_footprints
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbResize
      x-operation-id-source: derived
  /eda/pcb/svg:
    post:
      tags:
      - eda
      summary: Export PCB as SVG with optional net highlighting
      x-generated: true
      x-handler: eda_ctrl.eda_pcb_svg
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaPcbSvg
      x-operation-id-source: derived
  /eda/reroute/suggest:
    post:
      tags:
      - eda
      summary: Suggest routing paths for disconnected nets after rip-up
      x-generated: true
      x-handler: eda_ctrl.eda_reroute_suggest
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaRerouteSuggest
      x-operation-id-source: derived
  /eda/review:
    get:
      tags:
      - eda
      summary: Public provisioning page the customer lands on. Claims the invite (which
      x-generated: true
      x-handler: eda.eda_review_page
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaReview
      x-operation-id-source: derived
  /eda/ripup/execute:
    post:
      tags:
      - eda
      summary: Remove tracks/vias for the given nets and return a unified diff
      x-generated: true
      x-handler: eda_ctrl.eda_ripup_execute
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaRipupExecute
      x-operation-id-source: derived
  /eda/ripup/propose:
    post:
      tags:
      - eda
      summary: Enumerate tracks/vias that would be removed for the given nets
      x-generated: true
      x-handler: eda_ctrl.eda_ripup_propose
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaRipupPropose
      x-operation-id-source: derived
  /eda/sch/export/bom:
    post:
      tags:
      - eda
      summary: Export BOM from a KiCad schematic
      x-generated: true
      x-handler: eda_ctrl.eda_sch_export_bom
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchExportBom
      x-operation-id-source: derived
  /eda/sch/export/dxf:
    post:
      tags:
      - eda
      summary: Export schematic as DXF
      x-generated: true
      x-handler: eda_ctrl.eda_sch_export_dxf
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchExportDxf
      x-operation-id-source: derived
  /eda/sch/export/hpgl:
    post:
      tags:
      - eda
      summary: Export schematic as HPGL plotter format
      x-generated: true
      x-handler: eda_ctrl.eda_sch_export_hpgl
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchExportHpgl
      x-operation-id-source: derived
  /eda/sch/export/pdf:
    post:
      tags:
      - eda
      summary: Export schematic as PDF
      x-generated: true
      x-handler: eda_ctrl.eda_sch_export_pdf
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchExportPdf
      x-operation-id-source: derived
  /eda/sch/export/ps:
    post:
      tags:
      - eda
      summary: Export schematic as PostScript
      x-generated: true
      x-handler: eda_ctrl.eda_sch_export_ps
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchExportPs
      x-operation-id-source: derived
  /eda/schematic/annotate:
    post:
      tags:
      - eda
      summary: Update a component property value in a schematic
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_annotate
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicAnnotate
      x-operation-id-source: derived
  /eda/schematic/annotations:
    post:
      tags:
      - eda
      summary: Check annotation status across all schematic sheets
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_annotations
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicAnnotations
      x-operation-id-source: derived
  /eda/schematic/connect:
    post:
      tags:
      - eda
      summary: Auto-connect a symbol pin to a target coordinate with Manhattan routing
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_connect
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicConnect
      x-operation-id-source: derived
  /eda/schematic/diff:
    post:
      tags:
      - eda
      summary: Compare two schematic files and return structured diff
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_diff
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicDiff
      x-operation-id-source: derived
  /eda/schematic/instances/fix:
    post:
      tags:
      - eda
      summary: Fix project name and UUID paths in symbol instances
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_fix_instances
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicInstancesFix
      x-operation-id-source: derived
  /eda/schematic/label:
    post:
      tags:
      - eda
      summary: Add a net label or global label to a schematic
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_label
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicLabel
      x-operation-id-source: derived
  /eda/schematic/netlist:
    post:
      tags:
      - eda
      summary: Export a KiCad XML netlist from a schematic
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_netlist
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicNetlist
      x-operation-id-source: derived
  /eda/schematic/pins:
    post:
      tags:
      - eda
      summary: Get exact wire connection coordinates for all pins of a symbol
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_pins
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicPins
      x-operation-id-source: derived
  /eda/schematic/place:
    post:
      tags:
      - eda
      summary: Place a symbol instance in a KiCad schematic
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_place
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicPlace
      x-operation-id-source: derived
  /eda/schematic/rebuild:
    post:
      tags:
      - eda
      summary: Rebuild a schematic sheet from PCB netlist data
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_rebuild
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicRebuild
      x-operation-id-source: derived
  /eda/schematic/remove:
    post:
      tags:
      - eda
      summary: Remove a symbol instance from a schematic
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_remove
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicRemove
      x-operation-id-source: derived
  /eda/schematic/render:
    post:
      tags:
      - eda
      summary: Render a schematic as PDF via kicad-cli
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_render
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicRender
      x-operation-id-source: derived
  /eda/schematic/wire:
    post:
      tags:
      - eda
      summary: Add a wire segment between two points in a schematic
      x-generated: true
      x-handler: eda_ctrl.eda_schematic_wire
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSchematicWire
      x-operation-id-source: derived
  /eda/sessions:
    get:
      tags:
      - eda
      summary: Eda sessions list
      x-generated: true
      x-handler: eda.eda_sessions_list
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaSessions
      x-operation-id-source: derived
    post:
      tags:
      - eda
      summary: Eda session create
      x-generated: true
      x-handler: eda.eda_session_create
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaSessions
      x-operation-id-source: derived
  /eda/sessions/{session_id}:
    parameters:
    - name: session_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - eda
      summary: Eda session get
      x-generated: true
      x-handler: eda.eda_session_get
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaSessionsBySessionId
      x-operation-id-source: derived
    delete:
      tags:
      - eda
      summary: Eda session terminate
      x-generated: true
      x-handler: eda.eda_session_terminate
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: deleteEdaSessionsBySessionId
      x-operation-id-source: derived
  /eda/workspace/audit:
    post:
      tags:
      - eda
      summary: Record a sync event in the audit log (MinIO sidecar)
      x-generated: true
      x-handler: eda.eda_workspace_audit
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaWorkspaceAudit
      x-operation-id-source: derived
  /eda/workspace/branches:
    get:
      tags:
      - eda
      summary: List all branches for a project with their latest snapshot timestamp
      x-generated: true
      x-handler: eda.eda_workspace_branches
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaWorkspaceBranches
      x-operation-id-source: derived
  /eda/workspace/checkpoint:
    post:
      tags:
      - eda
      summary: Save a named checkpoint from the latest snapshot in a branch
      x-generated: true
      x-handler: eda.eda_workspace_checkpoint
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaWorkspaceCheckpoint
      x-operation-id-source: derived
  /eda/workspace/checkpoints:
    get:
      tags:
      - eda
      summary: List all named checkpoints for a project
      x-generated: true
      x-handler: eda.eda_workspace_checkpoints
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaWorkspaceCheckpoints
      x-operation-id-source: derived
  /eda/workspace/history:
    get:
      tags:
      - eda
      summary: Return the audit log for a project
      x-generated: true
      x-handler: eda.eda_workspace_history
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaWorkspaceHistory
      x-operation-id-source: derived
  /eda/workspace/merge:
    post:
      tags:
      - eda
      summary: Promote a branch snapshot to main
      x-generated: true
      x-handler: eda.eda_workspace_merge
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaWorkspaceMerge
      x-operation-id-source: derived
  /eda/workspace/pull:
    get:
      tags:
      - eda
      summary: 'Pull latest snapshot from a branch (default: main)'
      x-generated: true
      x-handler: eda.eda_workspace_pull
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getEdaWorkspacePull
      x-operation-id-source: derived
  /eda/workspace/push:
    post:
      tags:
      - eda
      summary: Push workspace snapshot to the caller's branch (default) or a named branch
      x-generated: true
      x-handler: eda.eda_workspace_push
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaWorkspacePush
      x-operation-id-source: derived
  /eda/workspace/restore:
    post:
      tags:
      - eda
      summary: Restore a named checkpoint into a branch as a new snapshot
      x-generated: true
      x-handler: eda.eda_workspace_restore
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postEdaWorkspaceRestore
      x-operation-id-source: derived
components:
  schemas:
    AsyncJobResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        data:
          type: object
          properties:
            job_id:
              type: string
            status:
              type: string
              example: searching_suppliers
            poll_url:
              type: string
              example: /v1/parts/search/status/abc123
    SuccessResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        data:
          type: object
          description: Endpoint-specific payload
  responses:
    Success:
      description: Success — payload under "data"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SuccessResponse'
    Accepted:
      description: Accepted — async job started; poll the returned status URL
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AsyncJobResponse'
  requestBodies:
    GenericJson:
      required: true
      content:
        application/json:
          schema:
            type: object
  parameters:
    UserAgentHeader:
      name: User-Agent
      in: header
      required: true
      schema:
        type: string
        example: your-app/1.0
      description: 'Required on every request. Must be a non-empty string identifying your application; requests without a User-Agent are rejected with 403 Forbidden before authentication.

        '
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key (sp_live_xxx or sp_test_xxx)