> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deeppcb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepPCB REST API Overview — Endpoints and Errors

> Integrate DeepPCB's AI PCB routing engine into your tools and workflows using the REST API. Create boards, start placement and routing runs, and download solutions programmatically.

The DeepPCB API lets you integrate AI-powered PCB placement and routing directly into your design software, automation pipelines, and enterprise workflows. You can create boards, start placement and routing runs, receive revisions over webhooks, and download results — all without touching the web app.

## Base URL

All API paths are relative to a base URL ending in `/api/v1`. On the hosted service that is `https://api.deeppcb.com/api/v1`, which the endpoint pages in this reference use. Copy the exact host from the **Integration** page in the app — it differs for enterprise and self-hosted deployments.

## Authentication

Every request to the DeepPCB API requires your API key in the `x-deeppcb-api-key` header. See the [Authentication](https://docs.deeppcb.ai/api/authentication.md) page for full details on obtaining your key and storing it securely.

> [card] [Start here: API Quickstart](https://docs.deeppcb.ai/quickstart/api.md)
>
> A complete job end to end — create the board, start the run, follow progress over webhooks, and download a revision.

## Core Operations

| Operation | Endpoint |
| - | - |
| [Create a board](https://docs.deeppcb.ai/api/boards/create-board.md) | `POST /boards` |
| [Start a run](https://docs.deeppcb.ai/api/boards/start-run.md) | `PATCH /boards/{boardId}/confirm` |
| [Get a board and its revisions](https://docs.deeppcb.ai/api/boards/get-board.md) | `GET /boards/{boardId}` |
| [Download a revision](https://docs.deeppcb.ai/api/results/get-revision-artifact.md) | `GET /boards/{boardId}/revision-artifact` |
| [Stop a run](https://docs.deeppcb.ai/api/boards/stop-run.md) | `PATCH /boards/{boardId}/stop` |
| [Resume a run](https://docs.deeppcb.ai/api/boards/resume-run.md) | `PATCH /boards/{boardId}/resume` |

Progress, revision batches, and billing events are pushed to your webhook while a run is active — there is nothing to poll. The [API Quickstart](https://docs.deeppcb.ai/quickstart/api.md) walks through each call.

## Webhook Events

Set `webhookUrl` and `webhookToken` when you create the board, and these events are delivered there while the run is active.

| Event | Meaning |
| - | - |
| `BoardCreationSucceeded` | The board validated. Carries the cost estimate and any anomalies. |
| `BoardRevisionsBatchGenerated` | New solutions. Each revision carries a `fileUrl` and `stats` — connections routed and missing, nets completed, via counts, total wire length. |
| `BoardConverged` | The engine found a satisfactory solution. It keeps searching for a better one. |
| `BoardHeartBeat` | Still working. |

Every endpoint has its own page in the sidebar, with parameters, schemas, and a playground to try it: board lifecycle, results, validation and conversion, fanout, file upload, and your balance history.

## Error Codes

The API uses standard HTTP status codes to indicate the result of every request.

| Status | Meaning |
| - | - |
| 400 | Bad Request — check your request body and parameters, and that your balance covers the run |
| 401 | Unauthorized — missing or invalid API key |
| 404 | Not Found — the requested resource does not exist |
| 409 | Conflict — the board is not in a state that allows the action, such as stopping a run that has not started |
| 429 | Too Many Requests — wait the number of seconds in the `Retry-After` header |
| 500 | Internal Server Error — retry after a short delay |

## Content Type

Set `Content-Type: application/json` on all requests that include a JSON body. Board creation uploads files, so it uses `multipart/form-data` instead — see the [API Quickstart](https://docs.deeppcb.ai/quickstart/api.md) for which file field to use per format.

## Versioning

The current API version is `v1`, embedded directly in the URL path (e.g. `<base URL>/boards`). When breaking changes are introduced, a new version will be published alongside the current one, giving you time to migrate.

> [!NOTE]
>
> To get an API key, log in at [app.deeppcb.com](https://app.deeppcb.com) and visit the Integration page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.