18 module contracts · REST & MCP native
Hardware truth contracts
for agents & APIs
DatasheetVend turns unstructured datasheets into typed hardware contracts, with deterministic checks on what the model read. Trigger extractions with Developer API Keys, fetch typed contract envelopes, or connect AI coding agents directly via Model Context Protocol (MCP).
Live API Keys & REST
Trigger async extraction jobs via POST /api/v1/extract with Bearer API keys (dsv_...) or machine payments.
Native MCP Server
The extraction modules are exposed as structured tools at /api/mcp, for any MCP client that can send a Bearer header, plus twin, document-map, and discovery tools. CAD-normalized geometry and the UCM ledger are reached through those extraction and twin tools rather than as standalone MCP tools.
curl -X POST "https://datasheetvend.com/api/v1/extract" \
-H "Authorization: Bearer dsv_..." \
-H "Content-Type: application/json" \
-d '{
"fileUrl": "https://example.com/datasheets/stm32h743zi.pdf",
"filename": "stm32h743zi.pdf",
"modules": ["pinout", "kicad", "thermal", "timing", "logic_levels", "passive_bom"]
}'LINK=$(curl -s -X POST "https://datasheetvend.com/api/v1/uploads" \
-H "Authorization: Bearer dsv_..." -H "Content-Type: application/json" \
-d "{\"filename\":\"part.pdf\",\"size_bytes\":$(wc -c < part.pdf)}")
# Send the file exactly as the answer describes it
jq -r '.upload.headers | to_entries[] | "header = \"\(.key): \(.value)\""' <<<"$LINK" > headers.curl
curl -X PUT "$(jq -r .upload.url <<<"$LINK")" -K headers.curl --data-binary @part.pdf
curl -X POST "https://datasheetvend.com/api/v1/extract" \
-H "Authorization: Bearer dsv_..." -H "Content-Type: application/json" \
-d "{\"uploadId\":\"$(jq -r .upload_id <<<"$LINK")\",\"modules\":[\"pinout\"]}"curl -X POST "https://datasheetvend.com/api/v1/extract" \
-H "Authorization: Bearer dsv_..." -H "Content-Type: application/json" \
-d '{
"fileUrl": "https://example.com/datasheets/stm32h743zi.pdf",
"modules": ["pinout"],
"callbackUrl": "https://example.com/hooks/datasheetvend"
}'
# The secret your receiver verifies with. It belongs to this API key.
curl "https://datasheetvend.com/api/v1/callbacks/signing-secret" -H "Authorization: Bearer dsv_..."
# What we POST to your URL when the job ends (job.completed or job.failed):
# X-DatasheetVend-Signature: t=<unix seconds>,v1=<hex>
# {"id":"<callback_id>","type":"job.completed","job_id":"<job_id>","status":"COMPLETED",
# "status_url":"https://datasheetvend.com/api/v1/jobs/<job_id>","modules":["pinout"]}
# Answer 2xx to confirm. Anything else is retried (7 attempts over about 20 hours).
# Delivery is at least once: de-duplicate on "id", which is the same on every attempt.
# Watch a delivery: state, attempts, last status code, next attempt
curl "https://datasheetvend.com/api/v1/jobs/<job_id>/callback" -H "Authorization: Bearer dsv_..."const { createHmac, timingSafeEqual } = require("node:crypto");
function verifyDatasheetVendCallback(rawBody, signatureHeader, secret) {
const parts = Object.fromEntries(String(signatureHeader).split(",").map((part) => part.split("=")));
const sentAt = Number(parts.t);
if (!Number.isFinite(sentAt) || Math.abs(Date.now() / 1000 - sentAt) > 300) return false;
const expected = createHmac("sha256", secret).update(`${sentAt}.${rawBody}`).digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(String(parts.v1 ?? ""));
return a.length === b.length && timingSafeEqual(a, b);
}curl -X GET "https://datasheetvend.com/api/v1/jobs/<job_id>/pinout" \ -H "Authorization: Bearer dsv_..."
Async Extraction Gateway
POST /api/v1/extract validates inputs, charges credits or a machine payment, creates a job record, and queues it for the extraction workers on Google Cloud Run.
18 Module Contracts
Each hardware extraction domain (Pinout, KiCad, Thermal, Registers, Timing, Logic Levels, BOM) has its own contract and route. The published JSON Schemas are listed at /api/v1/schemas.
Model Context Protocol
Agents don't need to scrape or parse HTML. Connect directly to /api/mcp to call the extraction modules as tools, with Zod output validation.
Agent integration
Connect via Model Context Protocol (MCP)
DatasheetVend runs a hosted MCP server with hardware extraction tools plus twin, document-map, and discovery tools, output schemas, and tool annotations. The server card at /.well-known/mcp.json lists every tool. A client whose config accepts a remote URL and headers, such as Cursor, can use an entry like this one. Not every client reads this format, so check yours:
{
"mcpServers": {
"datasheetvend": {
"url": "https://datasheetvend.com/api/mcp",
"headers": {
"Authorization": "Bearer dsv_..."
}
}
}
}Tool Annotations
Every tool carries MCP annotations and Zod-validated schemas. Most are marked readOnlyHint: true, destructiveHint: false and idempotentHint: true; the twin builder is not idempotent, because each call extracts and bills again.
Auto-Discovery Endpoint
MCP clients can auto-discover tools and schemas at /.well-known/mcp/server-card.json.
Credentials for Paid Tools
Without credentials, /api/mcp lists every tool and runs the free ones: module discovery (datasheetvend_list_hardware_modules), the Document Map instructions, the component-library search (datasheetvend_search_component_library), the part-pack manifest (datasheetvend_get_part_pack_manifest) and the generic land pattern estimate (datasheetvend_calculate_land_pattern). Paid tool calls need a key or a Stripe machine payment, and the tools that act for your account (twins, the document page inspector, the design checks, the source-document and extraction reads, the datasheet assessment) need a key and cost no credits. Every extraction tool takes a public https:// URL for documentPath; we download it server-side and never read local files.
API Catalog
19 API Routes
Each route returns its payload wrapped in the standard { data, metadata } envelope. Source pages travel in the payload where the module recorded them.
Physical & CAD Generation
Universal Pinout Matrix
Pin numbers, coordinate matrices, alternate functions, interface groups, and electrical classes.
KiCad Bundle
.kicad_mod footprint + .kicad_sym symbol, a kicad-cli file-load report (not a DRC), and per-file review status. The land pattern follows the datasheet's own when it prints one, otherwise simplified IPC-7351B math.
Package Dimensions & Geometry
Mechanical package outline dimensions (e, D, E, L, b) and a nominal land-pattern estimate calculated in the spirit of IPC-7351B, marked as calculated and not production-approved. The /pack sub-route downloads the engineer and machine delivery packs.
Altium ASCII Footprint Parser
Parses an Altium ASCII footprint export you supply (not binary .PcbLib or .SchLib) into pad geometry, coordinates, component names and layer maps for review. It does not build Altium files from a datasheet.
CAD-Normalized Geometry
A single CAD-ready block (identity, package, pins, limits) with normalized package/footprint geometry derived deterministically by code from the extracted dimensions rather than read from the page.
Electrical Limits & Operating Characteristics
Absolute Maximum Ratings
Supply rails (VDD/VSS), max pin currents, ESD thresholds, and storage temperatures. The /pack sub-route downloads the engineer and machine delivery packs.
Thermal Resistance & Limits
Junction-to-ambient (θJA), junction-to-case (θJC), power dissipation, and operating temperatures.
AC Timing & Switching
Clock frequencies (fMAX), setup/hold times (tSU, tH), rise/fall times, and bus constraints.
DC Logic Levels & Thresholds
Input/output voltages (VIH, VIL, VOH, VOL), Schmitt trigger hysteresis, and pin tolerances.
Power Domains & Sleep Modes
Current draw in Run, Sleep, Stop, Standby, backup battery (VBAT) switchover, and wakeup latency. The /pack sub-route downloads the engineer pack (CSVs) and machine pack (evidence map + domain scope).
Hardware Intelligence & Architecture
Hardware Register Map
Memory offsets, reset values, access permissions (RO, RW, W1C), and individual bitfield functions.
Peripheral Matrix
On-chip peripheral inventory: one row per instance (UART, SPI, I2C, CAN, USB, timers and more), with its source page where the extraction recorded one, in 13 classes.
Analog Specifications
ADC/DAC resolution bits, ADC sample rates and INL/DNL errors, comparator propagation delay and hysteresis.
Part Number Ordering Decoder
Ordering code breakdown: temperature grades, packaging options (Tape & Reel), memory, and speed. Where the datasheet supports it, also its ordering grammar, its SKU catalog, and how your part number resolves against both.
Passive Support BOM
Decoupling capacitors, crystal load sizing, and pull-up resistors the datasheet calls for.
Unified Contracts & Navigation
Job API Manifest & Navigation
Lightweight per-job manifest exposing status, artifact retention, module availability, and pack download links.
Unified Component Model (UCM)
One digital twin graph fused from the facts the modules extracted, each with its provenance (the page, when recorded) and a quality grade.
Document Map
A deterministic index, built without an LLM, of where each topic lives in the PDF and what each page looks like (table, prose, drawing, scan).
Design Cautions & Rulebook
Pin-level design cautions (bootstrap/strapping restrictions, 5V-tolerance boundaries, reset/debug precautions, oscillator guardrails, power-up order, design traps) plus extracted modality rules (MUST, RECOMMENDED), with /api/v1/jobs/[id]/rules/check verification and /api/v1/rules/catalog taxonomy access.
OpenAPI 3.1 Specification
GET /api/v1/openapi provides a live, unauthenticated OpenAPI 3.1 document covering every REST route above plus the extraction gateway, discovery, schema, rules-catalog and cross-check endpoints, and the public trust feeds: /api/v1/trust/subprocessors and /api/v1/trust/updates.
curl -X GET "https://datasheetvend.com/api/v1/openapi"
Response Example
Envelope for GET /api/v1/jobs/[id]/pinout, abridged from a real RP2040 run (24 September 2026). It came back approved with warnings: 22 of its 57 pins have an UNKNOWN type, so review is required.
{
"data": {
"file_kind": "pinout.api_payload",
"schema_version": "pinout_api_payload_v1",
"module_id": "pinout",
"status": {
"delivery_status": "approved_with_warnings",
"machine_status": "approved_with_warnings",
"human_review_required": true,
"next_action": "Use this pinout as review-level truth. Verify warnings before downstream automation."
},
"machine_use": {
"safe_for_ai_reasoning": true,
"safe_for_cad_symbol_seed": false,
"safe_for_pin_capability_graph": true,
"safe_for_package_crosscheck": true
},
"identity": {
"component": { "manufacturer_part_number": "raspberry-pi-rp2040", "manufacturer": null },
"package": { "family": "QFN", "variant": "QFN56", "context": null, "pin_count": 57 }
},
"summary": { "pin_count": 57, "special_pad_count": 0, "...": "..." },
"data": {
"pins": [
{
"number": "23",
"name": "DVDD",
"functional_type": "POWER",
"eda_electrical_type": "power_input",
"universal_classification": { "confidence_score": 0.9, "review_required": false, "...": "..." },
"...": "..."
}
],
"warnings": [
"Some pins have UNKNOWN type and require manual review.",
"22 pin(s) have UNKNOWN type."
],
"...": "..."
},
"source_contract": "machine_context.json"
},
"metadata": {
"job_id": "<job_id>",
"filename": "raspberry-pi-rp2040.pdf",
"job_status": "COMPLETED",
"generated_from": "audit_outputs.pinout_machine_outputs.files.machine_context.json",
"source_contract": "machine_context.json"
}
}