Skip to main content
POST
/
pcb
/
autoroute
Autoroute PCB
curl --request POST \
  --url https://api.buildwithtrace.com/api/v2/pcb/autoroute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dsn_content": "<string>",
  "max_passes": 50,
  "thread_count": 4,
  "via_costs": 123,
  "optimization": "<string>"
}
'
"<string>"

Authorizations

Authorization
string
header
required

JWT access token. Get one via POST /auth/login or from the Trace app (Settings → API Token). Tokens expire after 1 hour.

Body

application/json
dsn_content
string
required

DSN file content from PCB export

max_passes
integer
default:50

Maximum routing passes

thread_count
integer
default:4

Parallel routing threads

via_costs
integer

Via cost penalty (higher = fewer vias)

optimization
string

Optimization strategy

Response

200 - text/event-stream

SSE stream with routing progress and result. Event types: progress, result, error, done.

The response is of type string.