---
title: "Create Layout"
method: POST
path: "/api/layout/create"
tags: ["layout"]
---

# Create Layout

`POST /api/layout/create`

## Request

- Base URL: `https://api.pcbgenerator.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pcbgenerator.com/api/layout/create`
- Auth: none declared

Create PCB layout from RF chain.

Request body:
    rfChain: RF chain data (camelCase or snake_case keys)
    boardWidthMm: Board width in mm (default 100)
    boardHeightMm: Board height in mm (default 100)

Returns:
    placements: List of ComponentPlacement objects

## Request body

- LayoutRequest
  - `rfChain` object, required
  - `boardWidthMm` number
  - `boardHeightMm` number

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api.md) · [All operations](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/revisions/b6084b3ace32?raw)
