Skip to main content
The API runs the same engine as the web app, so the workflow is the same: create a board, confirm it to start the job, follow progress, download a revision. Four calls, plus a webhook endpoint if you want live progress.

Before You Start

You need an API key — copy it from Integration in the app, or see Getting Your API Key. Every request carries it in the x-deeppcb-api-key header:
Your base URL ends in /api/v1. Copy the exact host from the Integration page in the app — it differs for enterprise and self-hosted deployments. The API reference lists every endpoint and schema.
Treat the key like a password: anyone holding it can submit jobs and spend the compute time on your account. Keep it in an environment variable or a secrets manager, never in source control.
A request coming back 400 or 401? See API Issues for the cause and the fix of each.

1. Create the Board

Post the board file. Which field you use tells DeepPCB the format — the file extension does not, which is how DeepPCB JSON and EasyEDA Standard both live on .json without ambiguity.
The response is the board ID — keep it, every later call needs it.

Which File Field for Which Format

Send files for one format only. Companion files — the KiCad project and schematics, the Zuken footprint and rules, the EasyEDA Standard schematic — belong to their parent format and don’t count as a second input. Maximum file size is 100 MB.
Uploading the same large board repeatedly? Push it once to temporary storage with POST /files/uploads/board-file, then pass the returned URL as jsonFileUrl instead of the file. The URL is valid for 24 hours. AI agents using the MCP server upload local files the same way.
The board is now Pending. Nothing is running and no compute time has been spent.

2. Start the Job

The board moves to Running. Compute time starts being consumed here, not at upload.

3. Follow Progress

Progress arrives at your webhook — there is nothing to poll. Each event and the fields it carries are listed under Webhook Events in the API reference. Read numConnectionsMissing against numConnections in the stats to see how complete each revision is, and watch numVias and wireLength to judge quality between two equally complete revisions.

4. Download a Revision

revision is the revision number from the webhook, counting from 1. type accepts JsonFile, DsnFile, SesFile, RteFile, ScrFile, KicadFile, ZukenFile, and AltiumFile. Add includeRatsNest=false for a clean file with only completed wiring.

Stopping Early

Happy with a revision before the budget runs out? Stop the job and keep the unused time:
The stop is accepted and completes asynchronously, and the unused time is credited back to your balance. A stopped board can be resumed later with PATCH /boards/{boardId}/resume to keep improving the same result.

Where to Go Next

API Reference

Every endpoint, parameter, and schema.

MCP Server

Give an AI coding agent direct access to DeepPCB.