Source Parts Inc. Manufacturing API

Manufacturing workflows

GitHub OpenAPI

Operations 54

POST /manufacturing/dfm Submit DFM analysis #
POST /manufacturing/dfm/check Free instant DFM check from an uploaded Gerber #
POST /manufacturing/fab Create a fabrication order (layers, finish, thickness) #
POST /manufacturing/stackup Generate a PCB stackup PDF #
POST /manufacturing/placement Generate component placement (pick-and-place) outputs #
GET /manufacturing/{job_id}/status Check a manufacturing job's status #
POST /fab/quote Get a cross-vendor PCB fabrication quote #
POST /dfm/estimate Estimate DFM complexity + review pricing #
POST /dfm/submit Submit a design for full DFM analysis #
GET /dfm/status/{request_id} Get DFM analysis status #
POST /manufacturing/analysis/vias Find hidden vias in a KiCad PCB file #
POST /manufacturing/aoi Submit an AOI (Automated Optical Inspection) request #
GET /manufacturing/aq List assembly queries with optional filters #
POST /manufacturing/aq Create a new assembly query #
GET /manufacturing/aq/{aq_id} Get assembly query details by ID #
POST /manufacturing/aq/{aq_id}/decision Record a decision for an assembly query #
GET /manufacturing/aq/statistics Get assembly query statistics #
GET /manufacturing/car List corrective action requests with optional filters #
POST /manufacturing/car Create a new corrective action request #
GET /manufacturing/car/{car_id} Get corrective action request details by ID #
POST /manufacturing/car/{car_id}/verify Verify that a corrective action has been implemented #
GET /manufacturing/car/statistics Get corrective action request statistics #
GET /manufacturing/deviations List deviations with optional filters #
POST /manufacturing/deviations Request a new deviation #
GET /manufacturing/deviations/{deviation_id} Get deviation details by ID #
POST /manufacturing/deviations/{deviation_id}/approve Approve a deviation request #
POST /manufacturing/deviations/{deviation_id}/reject Reject a deviation request #
GET /manufacturing/deviations/statistics Get deviation statistics #
POST /manufacturing/dfm/extract Extract PCB layer images from a JLCPCB/HQPCB DFM report PDF #
POST /manufacturing/drc Run KiCad Design Rule Check on a .kicad_pcb file #
POST /manufacturing/drc/converge Iteratively fix DRC violations until the board passes or max iterations reached #
GET /manufacturing/eq List engineering queries with optional filters #
POST /manufacturing/eq Create a new engineering query #
GET /manufacturing/eq/{eq_id} Get engineering query details by ID #
POST /manufacturing/eq/{eq_id}/escalate Escalate an engineering query #
POST /manufacturing/eq/{eq_id}/responses Add a response to an engineering query #
GET /manufacturing/eq/statistics Get engineering query statistics #
POST /manufacturing/gerber/export Export gerber and drill files from a .kicad_pcb file #
POST /manufacturing/gerber/render Render one or more Gerber files as a combined PNG image using gerbv #
GET /manufacturing/ncr List non-conformance reports with optional filters #
POST /manufacturing/ncr Create a new non-conformance report #
GET /manufacturing/ncr/{ncr_id} Get non-conformance report details by ID #
POST /manufacturing/ncr/{ncr_id}/disposition Set disposition for a non-conformance report #
GET /manufacturing/ncr/statistics Get non-conformance report statistics #
GET /manufacturing/orders/jlcpcb List JLCPCB orders from the synced order history #
GET /manufacturing/orders/jlcpcb/{order_id} Get a specific JLCPCB order by order ID #
POST /manufacturing/publish Publish a manufacturing package #
POST /manufacturing/qc Submit a QC (Quality Control) check request #
POST /manufacturing/reports/dvt Generate a Design Verification Test (DVT) report PDF #
POST /manufacturing/sop/assembly Generate an Assembly Specification PDF #
POST /manufacturing/stackup/diff Generate a layer-by-layer diff PDF comparing two gerber zip archives #
POST /manufacturing/stackup/report Generate a structural metadata diff report comparing two gerber packages #
POST /manufacturing/testpoints Generate test point report from a component position file #
POST /manufacturing/xray/report Generate an X-ray inspection report PDF #

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-manufacturing-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-manufacturing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Source Parts Manufacturing 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: manufacturing
  description: Manufacturing workflows
paths:
  /manufacturing/dfm:
    post:
      tags:
      - manufacturing
      summary: Submit DFM analysis
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DfmRequest'
      responses:
        '202':
          description: DFM job created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManufacturingJobResponse'
      operationId: postManufacturingDfm
      x-operation-id-source: derived
  /manufacturing/dfm/check:
    post:
      tags:
      - manufacturing
      summary: Free instant DFM check from an uploaded Gerber
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: postManufacturingDfmCheck
      x-operation-id-source: derived
  /manufacturing/fab:
    post:
      tags:
      - manufacturing
      summary: Create a fabrication order (layers, finish, thickness)
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '202':
          $ref: '#/components/responses/Accepted'
      operationId: postManufacturingFab
      x-operation-id-source: derived
  /manufacturing/stackup:
    post:
      tags:
      - manufacturing
      summary: Generate a PCB stackup PDF
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: postManufacturingStackup
      x-operation-id-source: derived
  /manufacturing/placement:
    post:
      tags:
      - manufacturing
      summary: Generate component placement (pick-and-place) outputs
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: postManufacturingPlacement
      x-operation-id-source: derived
  /manufacturing/{job_id}/status:
    get:
      tags:
      - manufacturing
      summary: Check a manufacturing job's status
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - $ref: '#/components/parameters/jobId'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getManufacturingByJobIdStatus
      x-operation-id-source: derived
  /fab/quote:
    post:
      tags:
      - manufacturing
      summary: Get a cross-vendor PCB fabrication quote
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: postFabQuote
      x-operation-id-source: derived
  /dfm/estimate:
    post:
      tags:
      - manufacturing
      summary: Estimate DFM complexity + review pricing
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: postDfmEstimate
      x-operation-id-source: derived
  /dfm/submit:
    post:
      tags:
      - manufacturing
      summary: Submit a design for full DFM analysis
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '202':
          $ref: '#/components/responses/Accepted'
      operationId: postDfmSubmit
      x-operation-id-source: derived
  /dfm/status/{request_id}:
    get:
      tags:
      - manufacturing
      summary: Get DFM analysis status
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - name: request_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getDfmStatusByRequestId
      x-operation-id-source: derived
  /manufacturing/analysis/vias:
    post:
      tags:
      - manufacturing
      summary: Find hidden vias in a KiCad PCB file
      x-generated: true
      x-handler: manufacturing.find_hidden_vias_endpoint
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingAnalysisVias
      x-operation-id-source: derived
  /manufacturing/aoi:
    post:
      tags:
      - manufacturing
      summary: Submit an AOI (Automated Optical Inspection) request
      x-generated: true
      x-handler: manufacturing.submit_aoi
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingAoi
      x-operation-id-source: derived
  /manufacturing/aq:
    get:
      tags:
      - manufacturing
      summary: List assembly queries with optional filters
      x-generated: true
      x-handler: manufacturing_feedback.list_aq
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingAq
      x-operation-id-source: derived
    post:
      tags:
      - manufacturing
      summary: Create a new assembly query
      x-generated: true
      x-handler: manufacturing_feedback.create_aq
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingAq
      x-operation-id-source: derived
  /manufacturing/aq/{aq_id}:
    parameters:
    - name: aq_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - manufacturing
      summary: Get assembly query details by ID
      x-generated: true
      x-handler: manufacturing_feedback.get_aq
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingAqByAqId
      x-operation-id-source: derived
  /manufacturing/aq/{aq_id}/decision:
    parameters:
    - name: aq_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - manufacturing
      summary: Record a decision for an assembly query
      x-generated: true
      x-handler: manufacturing_feedback.decide_aq
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingAqByAqIdDecision
      x-operation-id-source: derived
  /manufacturing/aq/statistics:
    get:
      tags:
      - manufacturing
      summary: Get assembly query statistics
      x-generated: true
      x-handler: manufacturing_feedback.get_aq_statistics
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingAqStatistics
      x-operation-id-source: derived
  /manufacturing/car:
    get:
      tags:
      - manufacturing
      summary: List corrective action requests with optional filters
      x-generated: true
      x-handler: manufacturing_feedback.list_car
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingCar
      x-operation-id-source: derived
    post:
      tags:
      - manufacturing
      summary: Create a new corrective action request
      x-generated: true
      x-handler: manufacturing_feedback.create_car
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingCar
      x-operation-id-source: derived
  /manufacturing/car/{car_id}:
    parameters:
    - name: car_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - manufacturing
      summary: Get corrective action request details by ID
      x-generated: true
      x-handler: manufacturing_feedback.get_car
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingCarByCarId
      x-operation-id-source: derived
  /manufacturing/car/{car_id}/verify:
    parameters:
    - name: car_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - manufacturing
      summary: Verify that a corrective action has been implemented
      x-generated: true
      x-handler: manufacturing_feedback.verify_car
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingCarByCarIdVerify
      x-operation-id-source: derived
  /manufacturing/car/statistics:
    get:
      tags:
      - manufacturing
      summary: Get corrective action request statistics
      x-generated: true
      x-handler: manufacturing_feedback.get_car_statistics
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingCarStatistics
      x-operation-id-source: derived
  /manufacturing/deviations:
    get:
      tags:
      - manufacturing
      summary: List deviations with optional filters
      x-generated: true
      x-handler: manufacturing_feedback.list_deviations
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingDeviations
      x-operation-id-source: derived
    post:
      tags:
      - manufacturing
      summary: Request a new deviation
      x-generated: true
      x-handler: manufacturing_feedback.create_deviation
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingDeviations
      x-operation-id-source: derived
  /manufacturing/deviations/{deviation_id}:
    parameters:
    - name: deviation_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - manufacturing
      summary: Get deviation details by ID
      x-generated: true
      x-handler: manufacturing_feedback.get_deviation
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingDeviationsByDeviationId
      x-operation-id-source: derived
  /manufacturing/deviations/{deviation_id}/approve:
    parameters:
    - name: deviation_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - manufacturing
      summary: Approve a deviation request
      x-generated: true
      x-handler: manufacturing_feedback.approve_deviation
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingDeviationsByDeviationIdApprove
      x-operation-id-source: derived
  /manufacturing/deviations/{deviation_id}/reject:
    parameters:
    - name: deviation_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - manufacturing
      summary: Reject a deviation request
      x-generated: true
      x-handler: manufacturing_feedback.reject_deviation
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingDeviationsByDeviationIdReject
      x-operation-id-source: derived
  /manufacturing/deviations/statistics:
    get:
      tags:
      - manufacturing
      summary: Get deviation statistics
      x-generated: true
      x-handler: manufacturing_feedback.get_deviation_statistics
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingDeviationsStatistics
      x-operation-id-source: derived
  /manufacturing/dfm/extract:
    post:
      tags:
      - manufacturing
      summary: Extract PCB layer images from a JLCPCB/HQPCB DFM report PDF
      x-generated: true
      x-handler: manufacturing.extract_dfm_images
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingDfmExtract
      x-operation-id-source: derived
  /manufacturing/drc:
    post:
      tags:
      - manufacturing
      summary: Run KiCad Design Rule Check on a .kicad_pcb file
      x-generated: true
      x-handler: manufacturing.run_drc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingDrc
      x-operation-id-source: derived
  /manufacturing/drc/converge:
    post:
      tags:
      - manufacturing
      summary: Iteratively fix DRC violations until the board passes or max iterations reached
      x-generated: true
      x-handler: manufacturing.converge_drc_endpoint
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingDrcConverge
      x-operation-id-source: derived
  /manufacturing/eq:
    get:
      tags:
      - manufacturing
      summary: List engineering queries with optional filters
      x-generated: true
      x-handler: manufacturing_feedback.list_engineering_queries
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingEq
      x-operation-id-source: derived
    post:
      tags:
      - manufacturing
      summary: Create a new engineering query
      x-generated: true
      x-handler: manufacturing_feedback.create_engineering_query
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingEq
      x-operation-id-source: derived
  /manufacturing/eq/{eq_id}:
    parameters:
    - name: eq_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - manufacturing
      summary: Get engineering query details by ID
      x-generated: true
      x-handler: manufacturing_feedback.get_engineering_query
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingEqByEqId
      x-operation-id-source: derived
  /manufacturing/eq/{eq_id}/escalate:
    parameters:
    - name: eq_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - manufacturing
      summary: Escalate an engineering query
      x-generated: true
      x-handler: manufacturing_feedback.escalate_engineering_query
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingEqByEqIdEscalate
      x-operation-id-source: derived
  /manufacturing/eq/{eq_id}/responses:
    parameters:
    - name: eq_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - manufacturing
      summary: Add a response to an engineering query
      x-generated: true
      x-handler: manufacturing_feedback.respond_engineering_query
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingEqByEqIdResponses
      x-operation-id-source: derived
  /manufacturing/eq/statistics:
    get:
      tags:
      - manufacturing
      summary: Get engineering query statistics
      x-generated: true
      x-handler: manufacturing_feedback.get_eq_statistics
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingEqStatistics
      x-operation-id-source: derived
  /manufacturing/gerber/export:
    post:
      tags:
      - manufacturing
      summary: Export gerber and drill files from a .kicad_pcb file
      x-generated: true
      x-handler: manufacturing.export_gerbers
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingGerberExport
      x-operation-id-source: derived
  /manufacturing/gerber/render:
    post:
      tags:
      - manufacturing
      summary: Render one or more Gerber files as a combined PNG image using gerbv
      x-generated: true
      x-handler: gerber.render_gerber
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingGerberRender
      x-operation-id-source: derived
  /manufacturing/ncr:
    get:
      tags:
      - manufacturing
      summary: List non-conformance reports with optional filters
      x-generated: true
      x-handler: manufacturing_feedback.list_ncr
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingNcr
      x-operation-id-source: derived
    post:
      tags:
      - manufacturing
      summary: Create a new non-conformance report
      x-generated: true
      x-handler: manufacturing_feedback.create_ncr
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingNcr
      x-operation-id-source: derived
  /manufacturing/ncr/{ncr_id}:
    parameters:
    - name: ncr_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - manufacturing
      summary: Get non-conformance report details by ID
      x-generated: true
      x-handler: manufacturing_feedback.get_ncr
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingNcrByNcrId
      x-operation-id-source: derived
  /manufacturing/ncr/{ncr_id}/disposition:
    parameters:
    - name: ncr_id
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - manufacturing
      summary: Set disposition for a non-conformance report
      x-generated: true
      x-handler: manufacturing_feedback.dispose_ncr
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingNcrByNcrIdDisposition
      x-operation-id-source: derived
  /manufacturing/ncr/statistics:
    get:
      tags:
      - manufacturing
      summary: Get non-conformance report statistics
      x-generated: true
      x-handler: manufacturing_feedback.get_ncr_statistics
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingNcrStatistics
      x-operation-id-source: derived
  /manufacturing/orders/jlcpcb:
    get:
      tags:
      - manufacturing
      summary: List JLCPCB orders from the synced order history
      x-generated: true
      x-handler: manufacturing.list_jlcpcb_orders
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingOrdersJlcpcb
      x-operation-id-source: derived
  /manufacturing/orders/jlcpcb/{order_id}:
    parameters:
    - name: order_id
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - manufacturing
      summary: Get a specific JLCPCB order by order ID
      x-generated: true
      x-handler: manufacturing.get_jlcpcb_order
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: getManufacturingOrdersJlcpcbByOrderId
      x-operation-id-source: derived
  /manufacturing/publish:
    post:
      tags:
      - manufacturing
      summary: Publish a manufacturing package
      x-generated: true
      x-handler: manufacturing.publish_manufacturing
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingPublish
      x-operation-id-source: derived
  /manufacturing/qc:
    post:
      tags:
      - manufacturing
      summary: Submit a QC (Quality Control) check request
      x-generated: true
      x-handler: manufacturing.submit_qc
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingQc
      x-operation-id-source: derived
  /manufacturing/reports/dvt:
    post:
      tags:
      - manufacturing
      summary: Generate a Design Verification Test (DVT) report PDF
      x-generated: true
      x-handler: manufacturing.generate_dvt_report
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingReportsDvt
      x-operation-id-source: derived
  /manufacturing/sop/assembly:
    post:
      tags:
      - manufacturing
      summary: Generate an Assembly Specification PDF
      x-generated: true
      x-handler: manufacturing.manufacturing_sop_assembly
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingSopAssembly
      x-operation-id-source: derived
  /manufacturing/stackup/diff:
    post:
      tags:
      - manufacturing
      summary: Generate a layer-by-layer diff PDF comparing two gerber zip archives
      x-generated: true
      x-handler: stackup.generate_stackup_diff
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingStackupDiff
      x-operation-id-source: derived
  /manufacturing/stackup/report:
    post:
      tags:
      - manufacturing
      summary: Generate a structural metadata diff report comparing two gerber packages
      x-generated: true
      x-handler: stackup.generate_stackup_report
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingStackupReport
      x-operation-id-source: derived
  /manufacturing/testpoints:
    post:
      tags:
      - manufacturing
      summary: Generate test point report from a component position file
      x-generated: true
      x-handler: testpoints.generate_testpoints_endpoint
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingTestpoints
      x-operation-id-source: derived
  /manufacturing/xray/report:
    post:
      tags:
      - manufacturing
      summary: Generate an X-ray inspection report PDF
      x-generated: true
      x-handler: manufacturing.manufacturing_xray_report
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postManufacturingXrayReport
      x-operation-id-source: derived
components:
  schemas:
    ManufacturingJobResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            job_id:
              type: string
            status_url:
              type: string
    DfmRequest:
      type: object
      required:
      - project_id
      properties:
        project_id:
          type: string
        bom_id:
          type: string
        revision:
          type: string
    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
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        error:
          type: string
        details:
          type: object
    SuccessResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        data:
          type: object
          description: Endpoint-specific payload
  responses:
    Accepted:
      description: Accepted — async job started; poll the returned status URL
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AsyncJobResponse'
    Success:
      description: Success — payload under "data"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SuccessResponse'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  parameters:
    jobId:
      name: job_id
      in: path
      required: true
      schema:
        type: string
      description: Async job id returned by the originating endpoint
    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.

        '
  requestBodies:
    GenericJson:
      required: true
      content:
        application/json:
          schema:
            type: object
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key (sp_live_xxx or sp_test_xxx)