Skip to main content
POST
/
api
/
projects
Create a new project via API key
curl --request POST \
  --url https://api.leanmcp.com/api/projects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Project",
  "description": "A sample project",
  "repositoryUrl": "https://github.com/username/repo",
  "framework": "react",
  "s3Location": "<string>",
  "templateId": "03b3640c-9e47-4750-be37-2988b742b687"
}
'
{}

Authorizations

Authorization
string
header
required

Enter your LeanMCP API key

Body

application/json
name
string

Project name

Example:

"My Project"

description
string

Project description

Example:

"A sample project"

repositoryUrl
string

Repository URL

Example:

"https://github.com/username/repo"

framework
string

Framework

Example:

"react"

s3Location
string

S3 location for uploaded file

templateId
string

Template ID used to create this project

Example:

"03b3640c-9e47-4750-be37-2988b742b687"

Response

Project created successfully

The response is of type object.