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

# Create a new project via API key

> Create a new project using API key authentication. Requires BUILD_AND_DEPLOY scope.



## OpenAPI

````yaml post /api/projects
openapi: 3.0.0
info:
  title: LeanMCP SDK API
  description: >-
    API endpoints for LeanMCP SDK integration. These endpoints use API key
    authentication and are designed for programmatic access from the CLI and
    SDK.
  version: 1.0.0
servers:
  - url: https://api.leanmcp.com
    description: Production
  - url: http://localhost:3001
    description: Local Development
security: []
tags:
  - name: builds-sdk
  - name: chat-messages-api-key
  - name: chats-api-key
  - name: deployments-api-key
  - name: deployments-sdk
  - name: mapping-sdk
  - name: projects-api-key
paths:
  /api/projects:
    post:
      tags:
        - projects-api-key
      summary: Create a new project via API key
      description: >-
        Create a new project using API key authentication. Requires
        BUILD_AND_DEPLOY scope.
      operationId: ProjectsApiKeyController_createProject
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProjectDto'
      responses:
        '201':
          description: Project created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '401':
          description: Invalid API key or insufficient permissions
        '409':
          description: Project with that name already exists
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateProjectDto:
      type: object
      properties:
        name:
          type: string
          description: Project name
          example: My Project
        description:
          type: string
          description: Project description
          example: A sample project
        repositoryUrl:
          type: string
          description: Repository URL
          example: https://github.com/username/repo
        framework:
          type: string
          description: Framework
          example: react
        s3Location:
          type: string
          description: S3 location for uploaded file
        templateId:
          type: string
          description: Template ID used to create this project
          example: 03b3640c-9e47-4750-be37-2988b742b687
    Project:
      type: object
      properties: {}
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Enter your LeanMCP API key

````