{
  "openapi": "3.1.0",
  "info": {
    "title": "Cosine Nanoelectronics Semiconductor Procurement & Cross-Reference API",
    "version": "2026.1",
    "description": "Machine-readable API for automated B2B semiconductor sample requests, competitor cross-reference lookup, and custom ASIC feasibility estimation."
  },
  "servers": [
    {
      "url": "https://www.cosinechips.com"
    }
  ],
  "paths": {
    "/api/sample-request": {
      "post": {
        "summary": "Request Semiconductor Engineering Sample Kit",
        "operationId": "orderSemiconductorSampleKit",
        "description": "Submits corporate address and target MPN to dispatch engineering evaluation samples via DHL Express within 24-48 hours.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["fullname", "email", "target_mpn", "address"],
                "properties": {
                  "fullname": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "target_mpn": { "type": "string" },
                  "address": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sample request accepted for dispatch."
          }
        }
      }
    },
    "/api/cross-reference": {
      "get": {
        "summary": "Lookup Drop-In Pin-Compatible IC Alternative",
        "operationId": "checkCrossReferenceMatch",
        "description": "Queries the Cosine parametric database to find form-fit-function direct pin-to-pin drop-in alternatives for TI, ADI, Maxim, and Infineon parts.",
        "parameters": [
          {
            "name": "competitor_part",
            "in": "query",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching Cosine alternative with pinout and electrical parameters."
          }
        }
      }
    }
  }
}
