---
agentTools:
  projectIndex: https://apidocs.macrofab.com/llms.txt
---

# Create PCB Project

Create a new PCB Project.

You can specify the name of the PCB project using a single JSON object passed as the body of
the request. The new project starts with one empty version (version 1). Responds with the ID
and URI of the new PCB upon successful creation.

To set the project's short description, update the project with
`PUT /api/v2/pcb/{pcb_id}` after it is created.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "MacroFab API",
    "description": "MacroFab API\n\n**Authentication**\n\nAuthenticate every request by sending your API key in the `X-MacroFab-API-Key` header.\nRequests act as the user that generated the API key.\n\n**Responses**\n\nSend `Accept: application/json` with every request. Some endpoints return an empty response\nwithout it.\n\n**Versions**\n\nEndpoints are versioned in their path (`/api/v2/`, `/api/v3/`, `/api/v4/`, `/api/v5/`), and\ndifferent endpoints are at different versions. Use the version documented here for each\nendpoint.\n",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.macrofab.com"
    }
  ],
  "paths": {
    "/api/v2/pcbs": {
      "post": {
        "tags": [
          "PCB"
        ],
        "summary": "Create PCB Project",
        "description": "Create a new PCB Project.\n\nYou can specify the name of the PCB project using a single JSON object passed as the body of\nthe request. The new project starts with one empty version (version 1). Responds with the ID\nand URI of the new PCB upon successful creation.\n\nTo set the project's short description, update the project with\n`PUT /api/v2/pcb/{pcb_id}` after it is created.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "pcb": {
                  "name": "The name of the new PCB"
                }
              },
              "schema": {
                "type": "object",
                "properties": {
                  "pcb": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 64,
                        "description": "The name of the new PCB. Defaults to \"New PCB\".",
                        "example": "The name of the new PCB"
                      }
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "The PCB was created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pcb": {
                      "type": "object",
                      "properties": {
                        "pcb_id": {
                          "type": "string",
                          "description": "The new PCB's ID"
                        },
                        "uri": {
                          "type": "string",
                          "description": "Path of the new PCB in the MacroFab platform"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "pcb": {
                    "pcb_id": "kpqt9m",
                    "uri": "/pcb/kpqt9m"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "apikeyHeader": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apikeyHeader": {
        "type": "apiKey",
        "name": "X-MacroFab-API-Key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 251,
      "2": 93,
      "3": 50,
      "4": 34,
      "5": 139,
      "6": 70,
      "7": 0,
      "8": 113,
      "9": 3,
      "10": 149,
      "11": 120
    }
  }
}
```