Skip to main content

Docs

Documentation
Two ways in, four calls

Use the dashboard with no code, or the API and MCP from code. Below are the four calls of one extraction and every contract the API serves. The module table is read from the API registry when this page renders, and the quickstart uses the routes exactly as they exist.

Two ways in

No code

The dashboard

Upload a PDF, choose the modules, check values against the page they came from, download the packs. A new account gets 5 free passes, up to 2 modules each, on a PDF up to 25 MB.

Code

The API, MCP and OpenAPI

Create a key or pay per extraction with Stripe machine payments, post an extraction, poll, then fetch each module's contract. Agents can use the MCP server, which exposes the extraction modules as tools.

Quickstart

One extraction, four calls

  1. Create a key, or pay per extraction

    In the dashboard open Tools, then API, and create a key. Keys start with dsv_ and carry scopes. Without an account the same request is answered with an HTTP 402 Stripe machine-payment challenge, and the response then carries a session id that is the only way to read that job back, and it expires 15 minutes after the response.

    Authorization: Bearer dsv_...
  2. Start the extraction

    A JSON body with a publicly reachable PDF URL and the modules you want. The request is validated before anything is charged: a bad URL or an unknown module name is rejected with 400 and the response lists the supported names.

    curl -X POST https://datasheetvend.com/api/v1/extract \
      -H "Authorization: Bearer dsv_..." \
      -H "Content-Type: application/json" \
      -d '{"fileUrl":"https://example.com/datasheet.pdf","filename":"datasheet.pdf","modules":["document_map","pinout","footprint"]}'
    HTTP 202 (abridged: the real body also carries payment and request blocks)
    {
      "status": "PROCESSING",
      "job_id": "<job_id>",
      "retrieval": {
        "status_url": "/api/v1/jobs/<job_id>",
        "module_urls": {
          "document_map": "/api/v1/jobs/<job_id>/document-map",
          "pinout": "/api/v1/jobs/<job_id>/pinout",
          "footprint": "/api/v1/jobs/<job_id>/footprint"
        }
      },
      "guidance": { "engine": "fast_extraction", "typical_duration_seconds": "10-120", "poll_interval_seconds": 5 }
    }
  3. Poll until it completes

    How long an extraction takes depends on the document and the modules. It can be longer than any HTTP request should wait, so the 202 hands back a job id instead of files; its guidance block names the engine and a typical_duration_seconds range, which is a hint, not a promise. Poll the status URL every 5 seconds. A module URL returns 404 until that module has finished.

    curl https://datasheetvend.com/api/v1/jobs/<job_id> \
      -H "Authorization: Bearer dsv_..."
  4. Fetch the contract, or the pack

    Each module has its own JSON contract and a downloadable delivery pack for engineers and machines. The exact shape of every payload is published as JSON Schema, so an agent can learn it before it spends anything.

    curl https://datasheetvend.com/api/v1/jobs/<job_id>/pinout \
      -H "Authorization: Bearer dsv_..."
    
    curl -OJ https://datasheetvend.com/api/v1/jobs/<job_id>/pinout/pack \
      -H "Authorization: Bearer dsv_..."

Contracts

Every contract the API serves

18 module contracts on /api/v1, 18 of them with a published JSON Schema. Most carry page-level provenance where the module records it, and most carry their own warnings.

ModuleRouteWhat it carriesSchema
cad_normalized/api/v1/jobs/{id}/cad-normalizedResolved package topology, body dimensions and normalized pin entries, with synthesis warnings wherever something was inferred.JSON Schema
ucm/api/v1/jobs/{id}/ucmThe Unified Component Model (UCM): one model of the whole component, fused from the modules' facts, each with its provenance and a quality grade.JSON Schema
document_map/api/v1/jobs/{id}/document-mapThe page-level map of the source document, used to target other extractions.JSON Schema
kicad/api/v1/jobs/{id}/kicadKiCad footprint (.kicad_mod) and symbol (.kicad_sym) libraries.JSON Schema
pinout/api/v1/jobs/{id}/pinoutPin numbers, names, physical classes, alternate functions and interface groups, with per-pin evidence where the extraction recorded it.JSON Schema
footprint/api/v1/jobs/{id}/footprintPackage family and variant, pin count, pitch and body dimensions from the mechanical drawing.JSON Schema
thermal/api/v1/jobs/{id}/thermalJunction and ambient limits, thermal resistances by package, and a computed power budget.JSON Schema
absolute_max/api/v1/jobs/{id}/absolute-maxAbsolute maximum ratings and electrical breakdown limits.JSON Schema
altium/api/v1/jobs/{id}/altiumA reviewable geometry payload parsed from an Altium ASCII footprint export you supply. It does not build Altium files from a datasheet.JSON Schema
analog_intelligence/api/v1/jobs/{id}/analog-intelligenceADC and DAC resolution, ADC sample rates and INL/DNL, comparator delay and hysteresis.JSON Schema
logic_levels/api/v1/jobs/{id}/logic-levelsInput and output voltage thresholds: VIL, VIH, VOL, VOH.JSON Schema
part_decoder/api/v1/jobs/{id}/part-decoderPart-number suffix rules and the package each orderable code resolves to.JSON Schema
passive_bom/api/v1/jobs/{id}/passive-bomDecoupling capacitors, crystal load sizing and pull-up resistors the datasheet requires.JSON Schema
peripheral_matrix/api/v1/jobs/{id}/peripheral-matrixOn-chip peripheral inventory: one row per instance, with its source page where the extraction recorded one, in 13 classes.JSON Schema
pin_cautions/api/v1/jobs/{id}/rulesThe machine-readable design rulebook: modality, numeric limit or range, package scope and, where the run kept it, the verbatim source sentence.JSON Schema
power_battery/api/v1/jobs/{id}/power-batterySupply domains, battery backup, power modes and consumption limits.JSON Schema
register_map/api/v1/jobs/{id}/register-mapRegister names, addresses, bit fields and reset values.JSON Schema
timing/api/v1/jobs/{id}/timingTiming parameters grouped by protocol, and maximum clock frequencies.JSON Schema

Also on /api/v1

  • GET/schemasWhich modules publish a JSON Schema, and where to fetch each one
  • GET/schemas/{module}One module's payload schema
  • GET/rules/catalogThe design-rule vocabulary the engine recognizes
  • GET/jobs/{id}/rulesThe machine-readable rulebook extracted for a job
  • POST/jobs/{id}/rules/checkCheck one design value against the rules extracted for a job
  • POST/workbench/crosscheckAudit a KiCad netlist against extracted datasheet truth
  • GET/jobs/{id}/{module}/packDownload a module's delivery packs

Cookies. Strictly necessary cookies keep you signed in and remember this choice. Optional analytics (Google, Microsoft, PostHog) show us how the site is used. Cookie details